I was hoping that someone could help me out with the following problem - I had previously successfully created my ZFS raidz storage pool but I wanted to add a fourth drive to it.
I made the mistake of using the following command:
I am now unsure how to remove the drive and then add it back correctly. At first my pool was completely nonfunctional. I then preformed a export and and then an import. Next I performed a scrub of the pool. Now when I run a
I am still able to read and write to the pool. It appears as ZFS is seeing the drive as a second raid/mirror configuration.
I have tried the following:
I would like to remove the drive with out losing all of my data however if this is not possible I am open to suggestions.
Please let me know if I have omitted any pertinent data or if any other information is needed.
Any help would be much appreciated.
I made the mistake of using the following command:
zpool add -f storage00 /dev/disk/by-uuid/24a92cd8-265a-4bc5-974e-bdb61d927633
I am now unsure how to remove the drive and then add it back correctly. At first my pool was completely nonfunctional. I then preformed a export and and then an import. Next I performed a scrub of the pool. Now when I run a
zpool status
I get the following:
Code:
pool: storage00
state: UNAVAIL
status: One or more devices could not be used because the label is missing
or invalid. There are insufficient replicas for the pool to continue
functioning.
action: Destroy and re-create the pool from
a backup source.
see: [url]http://www.sun.com/msg/ZFS-8000-5E[/url]
scrub: scrub completed after 4h55m with 0 errors on Tue Aug 9 03:27:21 2011
config:
pool: storage00
state: UNAVAIL
status: One or more devices could not be used because the label is missing
or invalid. There are insufficient replicas for the pool to continue
functioning.
action: Destroy and re-create the pool from
a backup source.
see: [url]http://www.sun.com/msg/ZFS-8000-5E[/url]
scrub: scrub completed after 4h55m with 0 errors on Tue Aug 9 03:27:21 2011
config:
NAME STATE READ WRITE CKSUM
storage00 UNAVAIL 0 0 0 insufficient replicas
raidz1-0 ONLINE 0 0 0
disk/by-id/ata-WDC_WD10EARS-00Y5B1_WD-WCAV5T006995 ONLINE 0 0 0
disk/by-id/ata-WDC_WD10EADS-65L5B1_WD-WCAU49103942 ONLINE 0 0 0
disk/by-id/ata-WDC_WD1001FALS-00J7B0_WD-WMATV0044081 ONLINE 0 0 0
disk/by-id/ata-WDC_WD3200JB-00KFA0_WD-WCAMR2531970 UNAVAIL 0 0 0 corrupted data
errors: No known data errors
I am still able to read and write to the pool. It appears as ZFS is seeing the drive as a second raid/mirror configuration.
I have tried the following:
Code:
:~$ sudo zpool detach storage00 /dev/disk/by-id/ata-WDC_WD3200JB-00KFA0_WD-WCAMR2531970
cannot detach /dev/disk/by-id/ata-WDC_WD3200JB-00KFA0_WD-WCAMR2531970: only applicable to mirror and replacing vdevs
:~$ sudo zpool offline -t storage00 /devdisk/by-id/ata-WDC_WD3200JB-00KFA0_WD-WCAMR2531970
cannot offline /devdisk/by-id/ata-WDC_WD3200JB-00KFA0_WD-WCAMR2531970: no such device in pool
:~$ sudo zpool replace -f storage00 /dev/disk/by-uuid/24a92cd8-265a-4bc5-974e-bdb61d927633
cannot open '/dev/disk/by-uuid/24a92cd8-265a-4bc5-974e-bdb61d927633': No such file or directory
I would like to remove the drive with out losing all of my data however if this is not possible I am open to suggestions.
Please let me know if I have omitted any pertinent data or if any other information is needed.
Any help would be much appreciated.