Re: ZFS pool corrupted on upgrade of -current (probably sata renaming)
- From: Freddie Cash <fjwcash@xxxxxxxxx>
- Date: Wed, 15 Jul 2009 09:22:18 -0700
On Tue, Jul 14, 2009 at 8:44 PM, Randy Bush <randy@xxxxxxx> wrote:
# glabel label disk01 /dev/ad4
# glabel label disk02 /dev/ad6
# glabel label disk03 /dev/ad8
# zpool create pool raidz1 label/disk01 label/disk02 label/disk03
After that, you can shuffle the drives around in the system, and the pool
will continue to work correctly.
ooooooo! i wish i had understood that when i built a large set of
mirrored raid.
any way to hack it ex post facto?
Yep. It's as simple as:
* label all the drives using glabel, while they're still attached to the
pool
* use "zpool replace pool ad4 label/disk01" to replace 1 drive
* wait for it to resilver
* use "zpool replace pool ad6 label/disk02" to replace the next drive
* repeat the resilver and replace until all the devices are replaced
This is what I did to one of our servers. Works quite nicely.
There's no need to detach anything.
--
Freddie Cash
fjwcash@xxxxxxxxx
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: ZFS pool corrupted on upgrade of -current (probably sata renaming)
- From: Nenhum_de_Nos
- Re: ZFS pool corrupted on upgrade of -current (probably sata renaming)
- From: Randy Bush
- Re: ZFS pool corrupted on upgrade of -current (probably sata renaming)
- From: Peter Schuller
- Re: ZFS pool corrupted on upgrade of -current (probably sata renaming)
- References:
- ZFS pool corrupted on upgrade of -current
- From: Chris Hedley
- ZFS pool corrupted on upgrade of -current (probably sata renaming)
- From: Chris Hedley
- Re: ZFS pool corrupted on upgrade of -current (probably sata renaming)
- From: Freddie Cash
- Re: ZFS pool corrupted on upgrade of -current (probably sata renaming)
- From: Randy Bush
- ZFS pool corrupted on upgrade of -current
- Prev by Date: Re: UTF-8 on 8.0-CURRENT: Yes We Can!
- Next by Date: Re: ppp triggers GPF panic
- Previous by thread: Re: ZFS pool corrupted on upgrade of -current (probably sata renaming)
- Next by thread: Re: ZFS pool corrupted on upgrade of -current (probably sata renaming)
- Index(es):
Relevant Pages
|