Re: gmirror and resizing partitions..
more exact info please. gmirror status mount or cat /etc/fstab now much better - i know that you mirrored whole drives and then partitioned. are whole mirror labeled? if yes - what partition you have to trim down? if now - where are place (give me bsdlabel gm0s1 output) as you have 2 drives it's quite easy: it would be like that: gmirror remove gm0 ad6 gmirror forget ad6 gmirror clear /dev/ad6 gmirror label -b round-robin -s 1048576 m0 /dev/ad6 that's options i use, use what you think it's good for you. now - you have 2 degraded mirrors. old - gm0, new - m0 now partition m0 as you like. then - get the system down to single user, unmount everything except /, make / read-only then: with partition that are same sized use dd if=/dev/oldpartition of=/dev/newpartition bs=1m others - use newfs and tar|tar to copy files after all done, mount new root partition somewhere read write, and fix etc/fstab at the end - don't forget to bsdlabel -B then reboot from ad6. after successful boot: gmirror stop gm0 gmirror clear ad4 gmirror insert m0 ad4 to get all new things mirrored. PS. my advice. make one big partition+swap instead of so many. you won't have such problems again NameStatus Components mirror/gm0 COMPLETE ad4 ad6 # DeviceMountpoint FStype Options DumpPass# /dev/mirror/gm0s1b noneswapsw 0 0 /dev/mirror/gm0s1a / ufs rw 1 1 /dev/mirror/gm0s1h /exportsufs rw 2 2 /dev/mirror/gm0s1g /home ufs rw 2 2 /dev/mirror/gm0s1d /usrufs rw 2 2 /dev/mirror/gm0s1e /usr/local ufs rw 2 2 /dev/mirror/gm0s1f /varufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 #/dev/da0s1 /mnt/root ufs ro 0 0 #/dev/da0s1bnoneswapsw 0 0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: gmirror and resizing partitions..
On Jun 9, 2008, at 12:12 PM, Wojciech Puchar wrote: there is an /exports and /home that need to be resized. (right now they each are about 55G and /home needed to have been 100G and exports 10G) more exact info please. gmirror status mount or cat /etc/fstab NameStatus Components mirror/gm0 COMPLETE ad4 ad6 # DeviceMountpoint FStype Options DumpPass# /dev/mirror/gm0s1b noneswapsw 0 0 /dev/mirror/gm0s1a / ufs rw 1 1 /dev/mirror/gm0s1h /exportsufs rw 2 2 /dev/mirror/gm0s1g /home ufs rw 2 2 /dev/mirror/gm0s1d /usrufs rw 2 2 /dev/mirror/gm0s1e /usr/local ufs rw 2 2 /dev/mirror/gm0s1f /varufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 #/dev/da0s1 /mnt/root ufs ro 0 0 #/dev/da0s1bnoneswapsw 0 0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: gmirror and resizing partitions..
there is an /exports and /home that need to be resized. (right now they each are about 55G and /home needed to have been 100G and exports 10G) more exact info please. gmirror status mount or cat /etc/fstab ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: gmirror and resizing partitions..
Written by B. Cook on 06/09/08 10:23>> > Hello all, > > I have a FreeBSD 7 machine that I am running gmirror on (ad4 and ad6). > > there is an /exports and /home that need to be resized. > > (right now they each are about 55G and /home needed to have been 100G > and exports 10G) > > what do I need to do to fix this. > > I am assuming break the mirror, fdisk the /exports and /home then remake > them, and then rebuild the mirror.. > > right? > > What do I need to do with as little impact on the running server as > possible.. as many services are already configured on this box and it's > running :P > > (of course.. ) > > Thanks in advance, > > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" What I would do is break the mirror, then resize the partitions and newfs them on one disk. Then dump|restore the data from the other disk to your new partitions, and recreate the mirror with the newly resized disk and insert the other disk into that mirror. That disk should then rebuild with the new partitioning. Of course, you can only do this while the mirror is unused. So you're going to have to have some degree of downtime on those filesystems. You can minimize the downtime by killing the mirror and remounting the filesystems direct from one disk while you work on repartitioning the other. You may want to mount read-only, however, as the dump|restore may take a significant amount of time and you wouldn't want to lose any data that may be written to the other disk while you're busy copying from it. When you've built the new mirror with the repartitioned disk and dump|restored to it (don't forget the -L option on dump), remount the partitions from the new mirror and then insert the second disk. That's what I'd do, anyhow. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"