Re: Cloning a gmirrored hard drive
Sasa Stupar wrote: Hi! My situation: I have a server with FBSD 7 installed with two 40 GB disks in RAID 1 (gmirror) config. Now I have noticed the lack of space on the drive so I am thinking to change these disks for two 160 GB. What is the best way to clone the main hard disk in raid 1 config? Is this possible or is it better to switch back from RAID 1 to single disk system and then do cloning with dump/restore (or dd) and then make RAID 1 again? You'll need to dump/restore (not dd) from an old drive to a new one. signature.asc Description: OpenPGP digital signature
Re: Cloning a gmirrored hard drive
Hi! My situation: I have a server with FBSD 7 installed with two 40 GB disks in RAID 1 (gmirror) config. Now I have noticed the lack of space on the drive so I am thinking to change these disks for two 160 GB. What is the best way to clone the main hard disk in raid 1 config? Is gmirror remove yourmirrorname /dev/oneofdisk shutdown and replace this one with 160GB boot single user make gmirror with this new 160GB drive (only one drive now so not real mirror) newfs and copy all data make it bootable, shutdown, remove second 40GB drive, add second 160GB drive, boot and then gmirror insert yournewmirror seconddrive that's all. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cloning a gmirrored hard drive
Stupid question: can't you use growfs on the existing gmirror (after replace /dev/oneofdisk, resync, replace /dev/otherdisk, resync) ? Is it mandatory to create a *new* gmirror ? Thanks On Mon, 2008-08-25 at 14:37 +0200, Wojciech Puchar wrote: Hi! My situation: I have a server with FBSD 7 installed with two 40 GB disks in RAID 1 (gmirror) config. Now I have noticed the lack of space on the drive so I am thinking to change these disks for two 160 GB. What is the best way to clone the main hard disk in raid 1 config? Is gmirror remove yourmirrorname /dev/oneofdisk shutdown and replace this one with 160GB boot single user make gmirror with this new 160GB drive (only one drive now so not real mirror) newfs and copy all data make it bootable, shutdown, remove second 40GB drive, add second 160GB drive, boot and then gmirror insert yournewmirror seconddrive that's all. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Julien Cigar Belgian Biodiversity Platform http://www.biodiversity.be Université Libre de Bruxelles (ULB) Campus de la Plaine CP 257 Bâtiment NO, Bureau 4 N4 115C (Niveau 4) Boulevard du Triomphe, entrée ULB 2 B-1050 Bruxelles Mail: [EMAIL PROTECTED] @biobel: http://biobel.biodiversity.be/person/show/471 Tel : 02 650 57 52 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cloning a gmirrored hard drive
Sasa Stupar wrote: My situation: I have a server with FBSD 7 installed with two 40 GB disks in RAID 1 (gmirror) config. Now I have noticed the lack of space on the drive so I am thinking to change these disks for two 160 GB. What is the best way to clone the main hard disk in raid 1 config? Is this possible or is it better to switch back from RAID 1 to single disk system and then do cloning with dump/restore (or dd) and then make RAID 1 again? I use a variation of this guide[1] when I'm setting up gmirror. The last time I increased the size of the array, I removed one drive from the array (gmirror remove). I rebooted with the bigger drive. I created /dev/mirror/gm1 with the new drive. I followed the dump/restore steps from the guide, switching up the logic a little bit. I then booted the system from the new, larger mirror (gm1) with the other large disk inserted, and did a `gmirror insert'. In the process of building the new mirror on gm1, I made bigger labels in the labeling step for the ones that were filling up. [1] http://people.freebsd.org/~rse/mirror/ -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley pgpU3D7uhPgt8.pgp Description: PGP signature
Re: Cloning a gmirrored hard drive
On Monday 25 August 2008 11:50:41 am Julien Cigar wrote: Stupid question: can't you use growfs on the existing gmirror (after replace /dev/oneofdisk, resync, replace /dev/otherdisk, resync) ? Is it mandatory to create a *new* gmirror ? There is no way to resize a gmirror provider without creating a new one. You could possibly insert the new large drive into the mirror, deactivate it, make a new gmirror on it (clobbering the old one), THEN use growfs.. but that's a lot mor ecomplicated and error-prone than doing it the right way using dump/restore. If downtime is a concern then use Ivan's method below but without going into single-user--just be sure to give -L to dump. On Mon, 2008-08-25 at 14:37 +0200, Wojciech Puchar wrote: Hi! My situation: I have a server with FBSD 7 installed with two 40 GB disks in RAID 1 (gmirror) config. Now I have noticed the lack of space on the drive so I am thinking to change these disks for two 160 GB. What is the best way to clone the main hard disk in raid 1 config? Is gmirror remove yourmirrorname /dev/oneofdisk shutdown and replace this one with 160GB boot single user make gmirror with this new 160GB drive (only one drive now so not real mirror) newfs and copy all data make it bootable, shutdown, remove second 40GB drive, add second 160GB drive, boot and then gmirror insert yournewmirror seconddrive that's all. ___ 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]
Cloning a gmirrored hard drive
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi! My situation: I have a server with FBSD 7 installed with two 40 GB disks in RAID 1 (gmirror) config. Now I have noticed the lack of space on the drive so I am thinking to change these disks for two 160 GB. What is the best way to clone the main hard disk in raid 1 config? Is this possible or is it better to switch back from RAID 1 to single disk system and then do cloning with dump/restore (or dd) and then make RAID 1 again? Regards, Sasa -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkixhrMACgkQNT6IH6ilQwipWgCfV8ij/9WF9/G3NKWmiS2hccRu +bUAniDXI+FYSKFB/r9UJKs/qb4Fn0i/ =2E5k -END PGP SIGNATURE- smime.p7s Description: S/MIME Cryptographic Signature