#689 ZFS devices not consistent

v0.7
open
nobody
5
2012-10-28
2009-09-28
paul_l
No

I created a raidz2 in vmware using the following configuration. Four 1gb scsi disks were created as /dev/da0 thru /dev/da3 and assigned to a vdev called vc_pool1. I then rebooted after adding four 2gb disks, as /dev/da4 through /dev/da7. I removed /dev/da3 and recreated it as a 2gb disk and on reboot, it detected invalid data and rebuilt.

As the replace fucntion didnt work in the UI, from the shell, I zpool replace vc_pool1 /dev/da0 /dev/da4 (and repeated for /dev/da1 and /dev/da2). I shut the machine down, removed all the 1gb disks (so /dev/da4 now appears as /dev/da0, /dev/da5 as /dev/da1 etc) and the zpool completely failed. again, from the shell, as the UI doesnt support import/export, I export/import to redetect the correct devs. the zpool mounts however, the gui is wrong.

This is the correct config from status.

NAME        STATE     READ WRITE CKSUM
vc_pool1    ONLINE       0     0     0
  raidz2    ONLINE       0     0     0
    da2     ONLINE       0     0     0
    da3     ONLINE       0     0     0
    da0     ONLINE       0     0     0
    da1     ONLINE       0     0     0

the GUI shows this as the virtual device control for vc_zaid2
type double parrty
devices
/dev/da0 (1024MB, vmware.....)
/dev/da1 (1024MB, vmware.....)
/dev/da3 (2048MB, vmware.....)

and disk maangement shows

da0 1024MB VMware, VMware Virtual S 1.0 Always on ZFS storage pool device ONLINE
da1 1024MB VMware, VMware Virtual S 1.0 Always on ZFS storage pool device ONLINE
da3 2048MB VMware, VMware Virtual S 1.0 Always on ZFS storage pool device ONLINE
da4 2048MB VMware, VMware Virtual S 1.0 Always on ZFS storage pool device MISSING
da5 2048MB VMware, VMware Virtual S 1.0 Always on ZFS storage pool device MISSING

da0 (wrong size),da1 (wrong size) and da2 (missing) are all 2gb disks

The GUI is inconsistent with the disks in use. The GUI then allows me to create a disk with /dev/da2. this then causes data corruption to the pool

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks