Re: Creating vinum RAID 1 on place
On Friday, 7 July 2006 at 11:29:46 +0700, Olivier Nicole wrote: > Hi, > > Is there a trick on the way to build a vinum RAID 1 without backup-in > the data first? Sometimes. It's described in "The Complete FreeBSD", page 236 or so. See http://www.lemis.com/grog/Documentation/CFBSD/ for how to get the book. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers. pgp9bRktZRlpn.pgp Description: PGP signature
Re: Creating vinum RAID 1 on place
On Friday 07 July 2006 08:04, John Nielsen wrote: > On Friday 07 July 2006 00:29, Olivier Nicole wrote: > > Is there a trick on the way to build a vinum RAID 1 without backup-in > > the data first? > > > > I have the two disk that will get mirrored. One of the disk if > > formated as UFS 4.2 and already holds all the data. The second disk is > > blank. > > > > NormallyI should start with 2 blank disks, label them as vinum, create > > the vinum plex, then push the data on that RAID. Is there a way to do > > it without blanking both disk first (a RAID 0 on a single disk, copy > > the data on the RAID 0), label the other disk as vinum and create a > > RAID1? > > This is quite possible. The 100% safe way would be to configure the blank > disk as the sole member of a (degraded) mirror set, use dump / restore to > transfer the data from the existing filesystem to the "mirror", then wipe > the old filesystem and add the original disk to the mirror. > > The faster but only 90% safe way would be to "gmirror label" the partition > containing the existing filesystem and then adding the second disk as a > member. This is not safe if the last sector of the existing provider (where > gmirror stores its metadata) is (or could be in the future) used by the > filesystem. Frequently the geometry works out such that there are spare > sectors at the end of a partition that are not used by newfs, but if you're > not sure then don't go this route. See the archives of this and other lists > for details about this situation. Sorry, I completely missed the "vinum" in your message the first time through. My comments above apply to GEOM mirroring (gmirror) and not to vinum. I would recommend gmirror over vinum for RAID 1, though, as it's much simpler to get going and at least as robust. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Creating vinum RAID 1 on place
On Friday 07 July 2006 00:29, Olivier Nicole wrote: > Is there a trick on the way to build a vinum RAID 1 without backup-in > the data first? > > I have the two disk that will get mirrored. One of the disk if > formated as UFS 4.2 and already holds all the data. The second disk is > blank. > > NormallyI should start with 2 blank disks, label them as vinum, create > the vinum plex, then push the data on that RAID. Is there a way to do > it without blanking both disk first (a RAID 0 on a single disk, copy > the data on the RAID 0), label the other disk as vinum and create a > RAID1? This is quite possible. The 100% safe way would be to configure the blank disk as the sole member of a (degraded) mirror set, use dump / restore to transfer the data from the existing filesystem to the "mirror", then wipe the old filesystem and add the original disk to the mirror. The faster but only 90% safe way would be to "gmirror label" the partition containing the existing filesystem and then adding the second disk as a member. This is not safe if the last sector of the existing provider (where gmirror stores its metadata) is (or could be in the future) used by the filesystem. Frequently the geometry works out such that there are spare sectors at the end of a partition that are not used by newfs, but if you're not sure then don't go this route. See the archives of this and other lists for details about this situation. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Creating vinum RAID 1 on place
Hi, Is there a trick on the way to build a vinum RAID 1 without backup-in the data first? I have the two disk that will get mirrored. One of the disk if formated as UFS 4.2 and already holds all the data. The second disk is blank. NormallyI should start with 2 blank disks, label them as vinum, create the vinum plex, then push the data on that RAID. Is there a way to do it without blanking both disk first (a RAID 0 on a single disk, copy the data on the RAID 0), label the other disk as vinum and create a RAID1? best regards, Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"