This discussion is archived
5 Replies Latest reply: Jan 18, 2013 12:29 PM by M10vir RSS

ZFS: can't format 2nd disk to create a mirror

984266 Newbie
Currently Being Moderated
Hi all,

I hit a problem when I try to create a mirror for one newly setup server using zfs:
So sorry,I have to admitted that I am new to ZFS, but I think the concept is the same.
In order to mirror, we need to create the same partition table for disk0 and disk1,
However, it can't let me to format the 2nd hard disk.
It shows that:
fmthard: Partition 0 overlaps partition 2. Overlap is allowed only on partition on the full disk partition).

(I done the same in Oracle virtual box on Solaris10 x86, it works)


# bash
bash-3.2# zpool status
pool: rpool
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c0t0d0s0 ONLINE 0 0 0

errors: No known data errors
bash-3.2# echo |format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0 <TOSHIBA-MBF2600RC-3706 cyl 64986 alt 2 hd 27 sec 668>
/pci@0,600000/pci@0/pci@0/scsi@0/sd@0,0
1. c0t1d0 <TOSHIBA-MBF2600RC-3706-558.91GB>
/pci@0,600000/pci@0/pci@0/scsi@0/sd@1,0
2. c0t2d0 <TOSHIBA-MBF2600RC-3706-558.91GB>
/pci@0,600000/pci@0/pci@0/scsi@0/sd@2,0
3. c0t3d0 <TOSHIBA-MBF2600RC-3706-558.91GB>
/pci@0,600000/pci@0/pci@0/scsi@0/sd@3,0
Specify disk (enter its number): Specify disk (enter its number):
bash-3.2# prtvtoc /dev/rdsk/c0t0d0s2 |fmthard -s - /dev/rdsk/c0t1d0s2
fmthard: Partition 0 overlaps partition 2. Overlap is allowed only on partition on the full disk partition).
bash-3.2#


please help

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points