I'm trying to create a mirror of my root drive, but I get this error when trying to attach the 2nd drive: "cannot attach c8t1d0s0 to c8t0d0s0: no such device in pool". Does anyone know where my mistake could be? I followed this guide here: http://darkstar-solaris.blogspot.com/2008/09/zfs-root-mirror.html
geoff at zfs_fileserver:~$ pfexec format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c8t0d0 <DEFAULT cyl 36478 alt 2 hd 255 sec 63> /pci at 0,0/pci15d9,d880 at 1f,2/disk at 0,0 1. c8t1d0 <ATA-ST3300631AS-3.04 cyl 36478 alt 2 hd 255 sec 63> /pci at 0,0/pci15d9,d880 at 1f,2/disk at 1,0 2. c8t2d0 <ATA-ST3300631AS-3.04 cyl 36479 alt 2 hd 255 sec 63> /pci at 0,0/pci15d9,d880 at 1f,2/disk at 2,0 3. c8t3d0 <ATA-ST3300831AS-3.03-279.46GB> /pci at 0,0/pci15d9,d880 at 1f,2/disk at 3,0 4. c8t4d0 <ATA-ST3300831AS-3.03-279.46GB> /pci at 0,0/pci15d9,d880 at 1f,2/disk at 4,0 5. c8t5d0 <ATA-ST3320620AS-C-298.09GB> /pci at 0,0/pci15d9,d880 at 1f,2/disk at 5,0 6. c9d1 <drive type unknown> /pci at 0,0/pci8086,244e at 1e/pci-ide at 3/ide at 1/cmdk at 1,0 Specify disk (enter its number): 1 selecting c8t1d0 [disk formatted] FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk fdisk - run the fdisk program repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit format> fdisk Total disk size is 36481 cylinders Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== === 1 Active Solaris2 1 36480 36480 100SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Specify the active partition 3. Delete a partition 4. Change between Solaris and Solaris2 Partition IDs 5. Edit/View extended partitions 6. Exit (update disk configuration and exit) 7. Cancel (exit without updating disk configuration) Enter Selection: 3 Specify the partition number to delete (or enter 0 to exit): 1 Are you sure you want to delete partition 1? This will make all files and programs in this partition inaccessible (type "y" or "n"). y Partition 1 has been deleted. This was the active partition. Total disk size is 36481 cylinders Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== ===WARNING: no partitions are defined!SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Specify the active partition 3. Delete a partition 4. Change between Solaris and Solaris2 Partition IDs 5. Edit/View extended partitions 6. Exit (update disk configuration and exit) 7. Cancel (exit without updating disk configuration) Enter Selection: 1 Select the partition type to create: 1=SOLARIS2 2=UNIX 3=PCIXOS 4=Other 5=DOS12 6=DOS16 7=DOSEXT 8=DOSBIG 9=DOS16LBA A=x86 Boot B=Diagnostic C=FAT32 D=FAT32LBA E=DOSEXTLBA F=EFI 0=Exit? 1 Specify the percentage of disk to use for this partition (or type "c" to specify the size in cylinders). 100 Should this become the active partition? If yes, it will be activated each time the computer is reset or turned on. Please type "y" or "n". y Partition 1 is now the active partition. Total disk size is 36481 cylinders Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== === 1 Active Solaris2 1 36480 36480 100SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Specify the active partition 3. Delete a partition 4. Change between Solaris and Solaris2 Partition IDs 5. Edit/View extended partitions 6. Exit (update disk configuration and exit) 7. Cancel (exit without updating disk configuration) Enter Selection: 6 format> quit geoff at zfs_fileserver:~$ pfexec prtvtoc /dev/rdsk/c8t0d0s2 | pfexec fmthard -s - /dev/rdsk/c8t1d0s2 fmthard: New volume table of contents now in place. geoff at zfs_fileserver:~$ pfexec zpool attach -f rpool c8t0d0s0 c8t1d0s0 cannot attach c8t1d0s0 to c8t0d0s0: no such device in pool :( -- This message posted from opensolaris.org