> I've just tried to install 2008.11 RC2 on a 8GB usb > stick and I've come up against some problems... ... > but I noticed that there are 2 rpools in there. > > -------------------- > jack at opensolaris:~$ pfexec zpool import > pool: rpool > id: 16215459398042661922 > state: FAULTED > status: The pool was last accessed by another system. > action: The pool cannot be imported due to damaged devices or data. > The pool may be active on another system, but can be imported using the '-f' > flag. > see: http://www.sun.com/msg/ZFS-8000-EY > config: > > rpool FAULTED corrupted data > c4t0d0s2 UNAVAIL corrupted data > > pool: rpool > id: 14395867608961197668 > state: ONLINE > status: The pool was last accessed by another system. > action: The pool can be imported using its name or numeric identifier and the > '-f' flag. > see: http://www.sun.com/msg/ZFS-8000-EY > config: > > rpool ONLINE > c4t0d0s0 ONLINE > -------------------- > > I can't zpool import the first rpool, but the 2nd one works.
I had the same problem, and root cause is that the RC2 installer created and s0 slice that didn't use all of the available space. The last "cylinder" on the usb flash media is unused. I had previously installed RC1 on the same flash memory stick, so there is still some old zpool label data that can be found via the s2 slice on the last cylinder. # format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0d0 <DEFAULT cyl 24379 alt 2 hd 64 sec 63> /pci at 0,0/pci-ide at 1f,1/ide at 0/cmdk at 0,0 1. c2t0d0 <DEFAULT cyl 3821 alt 2 hd 128 sec 32> USB8GB /pci at 0,0/pci1179,ff10 at 1d,7/storage at 1/disk at 0,0 Specify disk (enter its number): 1 selecting c2t0d0: USB8GB [disk formatted] ... partition> print Volume: USB8GB Current partition table (original): Total disk cylinders available: 3821 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 1 - 3819 7.46GB (3819/0/0) 15642624 1 unassigned wm 0 0 (0/0/0) 0 2 backup wu 0 - 3820 7.46GB (3821/0/0) 15650816 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 8 boot wu 0 - 0 2.00MB (1/0/0) 4096 9 unassigned wm 0 0 (0/0/0) 0 Note that partition 0 ends on cylinder 3819, cylinder 3820 is not used! # prtvtoc /dev/rdsk/c2t0d0s2 * /dev/rdsk/c2t0d0s2 (volume "USB8GB") partition map * ... * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 4096 15642624 15646719 <<<< 4096 unused sectors at the end of the disk 2 5 01 0 15650816 15650815 8 1 01 0 4096 4095 Apparently this is a known problem: http://defect.opensolaris.org/bz/show_bug.cgi?id=5284 TI doesn't utilize last cylinder when creating VTOC with default layout To get rid of the second corrupted "rpool" on slice 2 I created a new slice in the format utility for the last cylinder. I used slice s7, with start cylinder 3820 and size of 1 cylinder. After that I scrambled the contents of that last cylinder with dd if=/dev/dsk/c?t?d?s7 of=/dev/dsk/c?t?d?s7 conv=swab Now "zpool import" finds exactly one "rpool" on the usb flash memory stick, on the s0 slice. -- This message posted from opensolaris.org