Dear ZFS experts, I have 2 SATA 500 GB Hard Drive on my Dual Core PC I have installed OpenSolaris 2008.11 using Live CD I got from Sun Tech Days in Singapore Now, using all the guidelines I got here at Indiana Discussion, I can''t attach my second drive to rpool to make them mirror Initially I was playing around with similar configuration in VirtualBox, and it does not succeed. Finally I am trying it with my real machine, and it still hasn''t work I Logged the steps, and attach it here. I hope someone who is expert can tell me which part that I did went wrong. Thank You, Handojo These are the description of the first drive using "format" : =====================================================================Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c3d0 <DEFAULT cyl 60797 alt 2 hd 255 sec 63> /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0 1. c4d0 <DEFAULT cyl 60797 alt 2 hd 255 sec 63> /pci at 0,0/pci-ide at 1f,2/ide at 1/cmdk at 0,0 Specify disk (enter its number): 0 selecting c3d0 No defect list found [disk formatted, no defect list found] /dev/dsk/c3d0s0 is part of active ZFS pool rpool. Please see zpool(1M). 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 show - translate a disk address 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 volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit format> part PARTITION MENU: 0 - change `0'' partition 1 - change `1'' partition 2 - change `2'' partition 3 - change `3'' partition 4 - change `4'' partition 5 - change `5'' partition 6 - change `6'' partition 7 - change `7'' partition select - select a predefined table modify - modify a predefined partition table name - name the current table print - display the current table label - write partition map and label to the disk !<cmd> - execute <cmd>, then return quit partition> print Current partition table (original): Total disk cylinders available: 60797 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 1 - 60795 465.71GB (60795/0/0) 976671675 1 unassigned wm 0 0 (0/0/0) 0 2 backup wu 0 - 60796 465.73GB (60797/0/0) 976703805 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 7.84MB (1/0/0) 16065 9 unassigned wm 0 0 (0/0/0) 0 partition> quit 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 show - translate a disk address 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 volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit format> quit ===================================================================== These are the log that I capture to change EFI labeling to SMI before adding to rpool ( and it failed. I followed this guide, and several other guide, which is exactly the same, but it doesn''t work for me ) Here''s the links : http://opensolaris.org/jive/thread.jspa?messageID=331284 Here''s the log : =====================================================================handojoh at opensolaris:~# zpool add rpool c4d0 cannot label ''c4d0'': EFI labeled devices are not supported on root pools. handojoh at opensolaris:~# format -e c4d0 selecting c4d0 No defect list found [disk formatted, no defect list found] 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 show - translate a disk address 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 volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit format> part PARTITION MENU: 0 - change `0'' partition 1 - change `1'' partition 2 - change `2'' partition 3 - change `3'' partition 4 - change `4'' partition 5 - change `5'' partition 6 - change `6'' partition 7 - change `7'' partition 9 - change `9'' partition select - select a predefined table modify - modify a predefined partition table name - name the current table print - display the current table label - write partition map and label to the disk !<cmd> - execute <cmd>, then return quit partition> label [0] SMI Label [1] EFI Label Specify Label type[0]: 0 Ready to label disk, continue? y partition> print Current partition table (original): Total disk cylinders available: 60797 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 1 - 60795 465.71GB (60795/0/0) 976671675 1 unassigned wm 0 0 (0/0/0) 0 2 backup wu 0 - 60796 465.73GB (60797/0/0) 976703805 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 7.84MB (1/0/0) 16065 9 unassigned wm 0 0 (0/0/0) 0 partition> quit 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 show - translate a disk address 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 volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit format> fdisk Total disk size is 60800 cylinders Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== == 1 Solaris 1 60799 60799 100 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. Exit (update disk configuration and exit) 6. Cancel (exit without updating disk configuration) Enter Selection: 6 format> quit handojoh at opensolaris:~# zpool add rpool c4d0 cannot label ''c4d0'': EFI labeled devices are not supported on root pools. handojoh at opensolaris:~# ===================================================================== I''ve been changing the partition type to "Solaris", "Solaris2", "Unix System", etc other than "EFI", but the result is still the same. Everytime I add c4d0 to rpool, it always says : Cannot label ''c4d0'': EFI labeled devices are not supported on root pools. Hoping to get some enlightment on this Simple ZFS Problem -- This message posted from opensolaris.org
Jonathan Adams
2009-Feb-03 17:44 UTC
[zfs-code] Cannot Mirror RPOOL, Can''t Label Disk to SMI
On Tue, Feb 03, 2009 at 12:51:27AM -0800, Handojo wrote:> Dear ZFS experts, > handojoh at opensolaris:~# zpool add rpool c4d0 > cannot label ''c4d0'': EFI labeled devices are not supported on root pools.I think you want: zpool attach rpool c3d0s0 c4d0s0 That will create a mirror; ("add" would make it a RAID-1 stripe, which is not what you want). The reason it is complaining is that by specifying "c4d0", you are telling ZFS that you want to use the whole disk, which implies relabeling it as EFI. You need to specify a slice, as I have above. Cheers, - jonathan> > > =====================================================================> > I''ve been changing the partition type to "Solaris", "Solaris2", "Unix System", etc other than "EFI", but the result is still the same. Everytime I add c4d0 to rpool, it always says : Cannot label ''c4d0'': EFI labeled devices are not supported on root pools. > > Hoping to get some enlightment on this Simple ZFS Problem > -- > This message posted from opensolaris.org > _______________________________________________ > zfs-code mailing list > zfs-code at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-code
Hi I''m sitting here for hours now and tried to mirror my rpool. nothing worked. I have 2008.11 installed when I try zpool attach rpool c4t0d0s0 c4t1d0s0 I get - cannot open /dev/dsk/c4t1d0s0: I/O error if i try zpool attach rpool c4t0d0 c4t1d0 I get c4t1d0 EFI labeled devices are not supported on root pools. Tried everything from format -e and writing label (SMI) - nothing helps ... Is anyone out there to kill my pain ;-) my HELP nearly looks like - HELL (if someone now madagaskar the film) thx Michael -- This message posted from opensolaris.org
Michael Widmann wrote:> Hi > > I''m sitting here for hours now and tried to mirror my rpool. nothing worked. > > I have 2008.11 installed > > when I try > > zpool attach rpool c4t0d0s0 c4t1d0s0 > > I get - cannot open /dev/dsk/c4t1d0s0: I/O error > > if i try > zpool attach rpool c4t0d0 c4t1d0 > > I get c4t1d0 EFI labeled devices are not supported on root pools. > > Tried everything from format -e and writing label (SMI) - nothing helps ... > >This error would occur if s0 is size 0. What size is it? -- richard> Is anyone out there to kill my pain ;-) > > my HELP nearly looks like - HELL (if someone now madagaskar the film) > > thx > > Michael >
On 04/13/09 12:53, Michael Widmann wrote:> Hi > > I''m sitting here for hours now and tried to mirror my rpool. nothing worked. > > I have 2008.11 installed > > when I try > > zpool attach rpool c4t0d0s0 c4t1d0s0 > > I get - cannot open /dev/dsk/c4t1d0s0: I/O error >make sure that this slice really exists and is big enough to to mirror the existing device in the pool. And that the disk it''s on has an SMI label (prtvtoc(1M) and format(1M) should report cylinder data for the disk. i.e. tracks/cylinder or the number of the cylinders on the disk. )> if i try > zpool attach rpool c4t0d0 c4t1d0 > >This won''t work. In order to attach a device to a root pool, the device must be specified as a slice.> I get c4t1d0 EFI labeled devices are not supported on root pools. > > Tried everything from format -e and writing label (SMI) - nothing helps ... > > Is anyone out there to kill my pain ;-) > > my HELP nearly looks like - HELL (if someone now madagaskar the film) > > thx > > Michael >
And yet the recommendation is to not use slices with ZFS but whole disks. This is very conflicting...... -- This message posted from opensolaris.org
On Thu, May 21, 2009 at 09:06:48AM -0700, Johan Eliasson wrote:> And yet the recommendation is to not use slices with ZFS but whole > disks. This is very conflicting......In general, this is true. For root pools, we''re constrained to what BIOSes support, and most do not support EFI labels. Cheers, - jonathan> -- > This message posted from opensolaris.org > _______________________________________________ > zfs-code mailing list > zfs-code at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-code
I seem to be in that very situation right now. Trying to mirror the rpool on my new SuperMicro X7SBA mobo, I have two 320GB SATA-disks. No matter what I do I seem to get the EFI label complaint.... I installed the system on the first disk and tried to mirror it to the second: EFI! I installed the system on the second disk and tried to mirror it to the first: EFI! Well.. still reading up and trying fixes... -- This message posted from opensolaris.org
On Thu, 21 May 2009, Johan Eliasson wrote:> I seem to be in that very situation right now. Trying to mirror the rpool on my new SuperMicro X7SBA mobo, I have two 320GB SATA-disks. No matter what I do I seem to get the EFI label complaint.... > I installed the system on the first disk and tried to mirror it to the second: EFI! > I installed the system on the second disk and tried to mirror it to the first: EFI!You''ve tried ''format -e'' or ''fdisk -B'' ? Regards, markm
On Thu, May 21, 2009 at 10:59:56AM -0700, Johan Eliasson wrote:> I seem to be in that very situation right now. Trying to mirror the > rpool on my new SuperMicro X7SBA mobo, I have two 320GB SATA-disks. No > matter what I do I seem to get the EFI label complaint.... I > installed the system on the first disk and tried to mirror it to the > second: EFI! > > I installed the system on the second disk and tried > to mirror it to the first: EFI! Well.. still reading up and trying > fixes...The main point is you *cannot* have an EFI label. That means that you must have a normal fdisk Solaris partition, and a slice that is the same size as the other disk''s. To do this, do: # zpool status rpool ... config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 c5t0d0s0 ONLINE 0 0 0 ... # format -e c5t0d0 ... format> fdisk ... Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== == 1 Active Solaris2 1 60800 60800 100 ... 6. Cancel (exit without updating disk configuration) Enter Selection: 6 format> partition ... format> print Part Tag Flag Cylinders Size Blocks 0 root wm 1 - 60797 465.73GB (60797/0/0) 976703805 1 unassigned wm 0 0 (0/0/0) 0 2 backup wm 0 - 60797 465.74GB (60798/0/0) 976719870 ... format> quit ... format> quit # format -e c6t0d0 # the new disk ... format> fdisk ... Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== == 1 EFI 0 60801 60802 100 ... SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Specify the active partition 3. Delete a partition ... Enter Selection: 3 Specify the partition number to delete (or enter 0 to exit): 1 Are you sure you want to delete...: y ... Partition 1 has been deleted. ... 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). 100Should 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 ... Enter Selection: 5 ... format> partition ... Then make the partition table match the partition table for the original disk we printed up above. and then do: format> label ... format> quit format> quit # zpool attach rpool c5t0d0s0 c6t0d0s0 And everything should work. Cheers, - jonathan
Hello Johan, Thursday, May 21, 2009, 6:59:56 PM, you wrote: JE> I seem to be in that very situation right now. Trying to mirror JE> the rpool on my new SuperMicro X7SBA mobo, I have two 320GB JE> SATA-disks. No matter what I do I seem to get the EFI label complaint.... JE> I installed the system on the first disk and tried to mirror it to the second: EFI! before you set-up mirror and after OS has been installed on a first disk make sre you put SMI label on the second disk and partition it exactly the same. Use format -e disk2 and then issue ''label'' - it will ask you if you want smi or efi label, choose smi. then do: prtvtoc /dev/rdsk/disk1s2 | fmthard -s - /dev/rdsk/disk2s2 then, assuming your os is instaled in s0 setup an mirror like: zpool attach rpool disk1s0 disk2s0 -- Best regards, Robert Milkowski http://milek.blogspot.com
I got it to work, thanks for the help guys!! -- This message posted from opensolaris.org
hi I have some problems here format -e c7d1 selecting c7d1 Controller working list found [disk formatted, defect list found] format> label WARNING - This disk may be in use by an application that has modified the fdisk table. Ensure that this disk is not currently in use before proceeding to use fdisk. root at solaris:~# prtvtoc /dev/dsk/c7d0s0 | fmthard -s - /dev/dsk/c7d1s0 fmthard: /dev/dsk/c7d1s0 must be a raw device. What is wrong? -- This message posted from opensolaris.org
On Sat, 06 Jun 2009 03:52:28 -0700 (PDT) Marek <marwooj at wp.pl> wrote:> hi I have some problems here > format -e c7d1 > selecting c7d1 > Controller working list found > [disk formatted, defect list found] > format> label > WARNING - This disk may be in use by an application that has > modified the fdisk table. Ensure that this disk is > not currently in use before proceeding to use fdisk. > > root at solaris:~# prtvtoc /dev/dsk/c7d0s0 | fmthard -s - /dev/dsk/c7d1s0 > fmthard: /dev/dsk/c7d1s0 must be a raw device. > > What is wrong?You didn''t specify the raw device, you specified the block device. Try this instead: # prtvtoc /dev/rdsk/c7d0s0 | fmthard -s - /dev/rdsk/c7d1s0 ^ ^ James C. McPherson -- Senior Kernel Software Engineer, Solaris Sun Microsystems http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog Kernel Conference Australia - http://au.sun.com/sunnews/events/2009/kernel