I had a bit of a problem with zfs today. Most of it stems from being told that zfs can do a bunch of things that it can''t really do. I''m not really concerned about any of that right now, I just want to see if there''s a way to get my data back. Here''s an abbreviated version of what happened: I created a raidz array of two disks. The pool was called share I put all of my data on share I tried to add a third disk to the raidz array The third disk didn''t get added to the raidz array, it was added to the pool, but ''parallel'' to the raidz I tried to remove the third disk. In the process, the pool got exported I tried to re-import the pool, but it can''t import because that third disk isn''t present (it''s still in the system, but zpool import refuses to recognize that it''s there The real kicker, there was no data on that third disk when this all happened. I''m unable to access any of my data because zfs can''t find an empty disk to import. Is there any way to just import the raidz part of the pool so I can at least get my data back so I can come up with some other solution for how to keep it safe from hard drive failure? This message posted from opensolaris.org
> I tried to add a third disk to the raidz array > The third disk didn''t get added to the raidz array, it was added to the pool, but ''parallel'' to the raidzThis is because it is not currently possible to add disks to a raidz/raidz2. Adding storage is typically done by adding an additional raidz/raidz2 array that you then stripe between. I believe zpool should have warned you about trying to add a non-redundant component alongside the redundant raidz, requiring you to force (-f) the addition. -- / Peter Schuller PGP userID: 0xE9758B7D or ''Peter Schuller <peter.schuller at infidyne.com>'' Key retrieval: Send an E-Mail to getpgpkey at scode.org E-Mail: peter.schuller at infidyne.com Web: http://www.scode.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 250 bytes Desc: OpenPGP digital signature URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20070612/0b00806b/attachment.bin>
I thought of a few options today, I was hoping someone could tell me what my odds are of success. 1) That third disk had a copy of all my data on it before I added it to the zpool. I''m thinking r-studio should be able to recover most of the stuff on there. I''ll lose a little bit of data, but hopefully it''s nothing irreplaceable. 2) Somehow make a new raidz array of two disks and bit copy the data from my existing broken raidz array outside of solaris (note, I''m pretty sure this one won''t work, but it''s worth asking because I''m desperate) 3) Go ZFS source diving and figure out how the data is stored on those raidz disks. Crank out some software that will read the data off of the disks and rebuild it Disclamer: I know I''m an idiot and this is all my fault. Feel free to tell me that anyway though, it''s the only way I''ll learn not to lose all my data. This message posted from opensolaris.org