Hi all, I attempted to mirror my rpool with a USB drive. I tried to create a partition with the same size so the pools would be identical. I believe the command completed successfully, but I ran zpool attach rpool dev1 dev2. And that is when my computer hung. I powered down and started back up to find grub didn''t have any configurations and I cannot import my rpool. After having booted into the live cd, my root partition did not exist. I updated it using the format command and now see this: [code] jack at opensolaris:~$ pfexec zpool import pool: rpool id: 3281909672341943803 state: UNAVAIL status: The pool was last accessed by another system. action: The pool cannot be imported due to damaged devices or data. see: http://www.sun.com/msg/ZFS-8000-EY config: rpool UNAVAIL insufficient replicas c4t0d0s0 UNAVAIL corrupted data [/code] [code] Total disk cylinders available: 30398 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wu 1 - 30394 232.83GB (30394/0/0) 488279610 1 unassigned wu 0 0 (0/0/0) 0 2 backup wu 0 - 30394 232.84GB (30395/0/0) 488295675 3 unassigned wu 0 0 (0/0/0) 0 4 unassigned wu 0 0 (0/0/0) 0 5 unassigned wu 0 0 (0/0/0) 0 6 unassigned wu 0 0 (0/0/0) 0 7 unassigned wu 0 0 (0/0/0) 0 8 boot wu 0 - 0 7.84MB (1/0/0) 16065 9 unassigned wu 0 0 (0/0/0) 0 [/code] [code] jack at opensolaris:~$ pfexec prtvtoc /dev/rdsk/c4t0d0s2 * /dev/rdsk/c4t0d0s2 partition map * * Dimensions: * 512 bytes/sector * 63 sectors/track * 255 tracks/cylinder * 16065 sectors/cylinder * 30400 cylinders * 30398 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * Unallocated space: * First Sector Last * Sector Count Sector * 0 16065 16064 * 488311740 32130 488343869 * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 01 16065 488279610 488295674 2 5 01 0 488295675 488295674 8 1 01 0 16065 16064 [/code] Can I recover my files? Please let me know if you need more information. Thanks, Walter -- This message posted from opensolaris.org
After having rebooted from the live cd back to the actual system, I thought I was home-free. I can now see my GRUB menu and it does start to boot. However, after about 2 seconds, it reboots as I am guessing it cannot find the other important labels. Is there some way I can restore these labels to recover my data? Thanks, Walter -- This message posted from opensolaris.org
Hi Walter, did you try the procedure described in the ZFS Trouble Shooting Guide? http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide#Resolving_ZFS_Mount_Point_Problems_That_Prevent_Successful_Booting -- richard Walter White wrote:> Hi all, > > I attempted to mirror my rpool with a USB drive. I tried to create a partition with the same size so the pools would be identical. I believe the command completed successfully, but I ran zpool attach rpool dev1 dev2. And that is when my computer hung. I powered down and started back up to find grub didn''t have any configurations and I cannot import my rpool. > > After having booted into the live cd, my root partition did not exist. I updated it using the format command and now see this: > > [code] > jack at opensolaris:~$ pfexec zpool import > pool: rpool > id: 3281909672341943803 > state: UNAVAIL > status: The pool was last accessed by another system. > action: The pool cannot be imported due to damaged devices or data. > see: http://www.sun.com/msg/ZFS-8000-EY > config: > > rpool UNAVAIL insufficient replicas > c4t0d0s0 UNAVAIL corrupted data > [/code] > > [code] > Total disk cylinders available: 30398 + 2 (reserved cylinders) > > Part Tag Flag Cylinders Size Blocks > 0 root wu 1 - 30394 232.83GB (30394/0/0) 488279610 > 1 unassigned wu 0 0 (0/0/0) 0 > 2 backup wu 0 - 30394 232.84GB (30395/0/0) 488295675 > 3 unassigned wu 0 0 (0/0/0) 0 > 4 unassigned wu 0 0 (0/0/0) 0 > 5 unassigned wu 0 0 (0/0/0) 0 > 6 unassigned wu 0 0 (0/0/0) 0 > 7 unassigned wu 0 0 (0/0/0) 0 > 8 boot wu 0 - 0 7.84MB (1/0/0) 16065 > 9 unassigned wu 0 0 (0/0/0) 0 > [/code] > > [code] > jack at opensolaris:~$ pfexec prtvtoc /dev/rdsk/c4t0d0s2 > * /dev/rdsk/c4t0d0s2 partition map > * > * Dimensions: > * 512 bytes/sector > * 63 sectors/track > * 255 tracks/cylinder > * 16065 sectors/cylinder > * 30400 cylinders > * 30398 accessible cylinders > * > * Flags: > * 1: unmountable > * 10: read-only > * > * Unallocated space: > * First Sector Last > * Sector Count Sector > * 0 16065 16064 > * 488311740 32130 488343869 > * > * First Sector Last > * Partition Tag Flags Sector Count Sector Mount Directory > 0 2 01 16065 488279610 488295674 > 2 5 01 0 488295675 488295674 > 8 1 01 0 16065 16064 > > [/code] > > Can I recover my files? Please let me know if you need more information. > > > Thanks, > Walter >
Hi, I figured it out on my own ... My hd had 30398 usable cylinders, I had to fix the partition table. The starting cylinders were correct, but the ending cyclinders were not. I guess I learned a little bit about Solaris partitions ... I guess in order for it to import a zpool, part of the information is at the very beginning of a partition, and some is at the very end to mark it accordingly. Thanks, Walter -- This message posted from opensolaris.org