Disk mismatch while trying to zfs mirroring non-root disks


 
Thread Tools Search this Thread
Operating Systems Solaris Disk mismatch while trying to zfs mirroring non-root disks
# 1  
Old 03-18-2010
Disk mismatch while trying to zfs mirroring non-root disks

Hello All,

I am trying to mirror two non-root hard drives using zfs. But "fmthard" fails when I try to copy the vtoc due to disk mismatch. Please help me.

--- iostat command shows the disk to be similiar
--- format command shows disk to be different Smilie

--- c1t2d0 is the active disk and I need to mirror data to c1t3d0. I have formatted c1t3d0 twice. But this did not help. Any suggestions are welcome.

Here's info regarding the disks:

a) Output of iostat:
Code:
c1t2d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE  Product: ST314670LSUN146G Revision: 045A Serial No: 060443G1AE
Size: 146.81GB <146810536448 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

c1t3d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE  Product: ST314670LSUN146G Revision: 045A Serial No: 060443HD5F
Size: 146.81GB <146810536448 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

b) Output of format:
Code:
2. c1t2d0 <SEAGATE-ST314670LSUN146G-045A-136.73GB>
          /pci@1c,600000/scsi@2/sd@2,0
3. c1t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@1c,600000/scsi@2/sd@3,0

# 2  
Old 03-18-2010
why do you use fmthard for a zfs mirror?
# 3  
Old 03-18-2010
Thanks for replying Smilie

I did that to copy the VTOC. Is that wrong? I tried to follow the procedure for ZFS Root mirror. Please let me know the correct procedure.
# 4  
Old 03-18-2010
just create a mirrored zpool with the two disks and you are done...

Code:
# zpool create <poolname> mirror yourdrive1 yourdrive2

# 5  
Old 03-18-2010
I would say because the pool is on a slice and not the whole disk. What says "zpool status" ?

@pingmeback: can you post the commands you run to copy the vtoc and the errors you got ?
# 6  
Old 03-18-2010
Thanks guys for helping me out!
Here's complete output of "zpool status" which includes
- root pool (rpool) which is mirrored
- "data" pool containing c1t2d0 which I need to mirror to c1t3d0

Code:
#zpool status
  pool: data
 state: ONLINE
status: The pool is formatted using an older on-disk format.  The pool can
        still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
        pool will no longer be accessible on older software versions.
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        data   ONLINE       0     0     0
          c1t2d0    ONLINE       0     0     0

errors: No known data errors

  pool: rpool
 state: ONLINE
status: The pool is formatted using an older on-disk format.  The pool can
        still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
        pool will no longer be accessible on older software versions.
 scrub: none requested
config:

        NAME          STATE     READ WRITE CKSUM
        rpool         ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c1t0d0s0  ONLINE       0     0     0
            c1t1d0s0  ONLINE       0     0     0

errors: No known data errors

# 7  
Old 03-18-2010
then add the new disk to the pool... which command do you use?

Re: [zfs-discuss] Add mirror to an existing Zpool
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Root disk mirroring in Solaris 10

I would like to perform root disk mirroring task. Can someone please help me out on this. Thanks !! Regards, Rama (2 Replies)
Discussion started by: ramagore85
2 Replies

2. Solaris

Root disk mirroring in SVM

I tried doing rootdisk mirroring in my local host , i added a new Ide disk in my system and copied the prtvtoc from root disk to the newly added disk, and then when i tried to add database replicas on both the disks, it was added for boot disk but for the newly added disk i gave the error, which... (6 Replies)
Discussion started by: Laxxi
6 Replies

3. Solaris

root disk mirroring in solaris volume manager for solaris 10

Need a procedure document to do "root disk mirroring in solaris volume manager for solaris 10". I hope some one will help me asap. I need to do it production environment. Let me know if you need any deatils on this. Thanks, Rama (1 Reply)
Discussion started by: ramareddi16
1 Replies

4. Solaris

Root Disk mirroring in SVM

Dear All, Please help me to configure root mirroring using SVM in Solaris 9. Thanks and Regards, Lakkireddy BR (3 Replies)
Discussion started by: lbreddy
3 Replies

5. Solaris

mirroring root disk using svm - but no free slices for metadb's

Hi all, we have an existing system that was configured using just one of the (two) internal disks. I want to mirror the disk using SVM, but have realised there is no free slice for creating the metadb's. Is there a workaround I can use for this? In the past we have always kept slice 7 free -... (8 Replies)
Discussion started by: badoshi
8 Replies

6. Solaris

Mirroring 2 disks with Solstice Disk Suite

hello everybody, I have a system in Solaris 8 with SDS 4.2.1 I need to mirror the system disk which has the following characteristics : * /dev/rdsk/c0t0d0s2 partition map * * Dimensions: * 512 bytes/sector * 133 sectors/track * 27 tracks/cylinder * 3591 sectors/cylinder... (3 Replies)
Discussion started by: aribault
3 Replies

7. Solaris

Veritas root disk mirroring

Hi there, My task is to replace the two 73 G disks with two 143 G disks , which has vxvm 4.1 running on it. I would like to know whether the steps iam following are correct. 1. Break the sub-disks, plexes of the root mirror. 2. Remove the sub-disks,plexes of the root mirror. 3. Remove one of... (10 Replies)
Discussion started by: Jartan
10 Replies

8. Solaris

Solaris mirroring / non-root disk

Hi Guys, Need to add 2 disks into a JBOD array (3310). Does anyone see anything wrong with my Procedure / Doco below? 1> Logon to system, check system logs for abnormal entries. 2> Make backups of related system files: A>cp -p /etc/system /etc/system.backup.081505 B>cp -p /etc/vfstab... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies
Login or Register to Ask a Question