ZFS mirroring


 
Thread Tools Search this Thread
Operating Systems Solaris ZFS mirroring
# 1  
Old 12-21-2011
ZFS mirroring

Hello,
I just build a Solaris 10 server on an x86 box. I forgot to mirror the two disks when I install the OS. Can I get some help with this?

I have this
Code:
# zpool list
rpool 278G 5.77G 272G 2% ONLINE -

# zpool status
  pool: online
  state: ONLINE
 scan: none requested
config:

      rpool   ONLINE
        c0t0d0s0   ONLINE

Anyway I want to add a 2nd disk and mirror it. The other disk is c0t1d0s0.

The rpool a zfs root.

when I try to add the disk it gives me the error 'cannot open '/dev/dsk/c0t1d0s0' : I/O error'

Can someone tell me what I'm doing wrong. I'm not to knowledgeable on zfs.

Thanks

Last edited by Scott; 12-21-2011 at 11:28 AM.. Reason: Code tags
# 2  
Old 12-21-2011
Post output of:
Code:
prtvtoc /dev/rdsk/c0t0d0s2

and
Code:
prtvtoc /dev/rdsk/c0t1d0s2

# 3  
Old 12-21-2011
the output will not paste into this box. What an I looking for?
# 4  
Old 12-21-2011
Quote:
Originally Posted by bitlord
the output will not paste into this box. What an I looking for?
What do you mean by that? Anyway, if my guess is right, then you don't have slice 0 created on the second disk. To copy the VTOC from original disk to the mirror run:
Code:
prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2

Then try to attach ZFS mirror again.
# 5  
Old 12-21-2011
I'm using ILOM and I can't cut & paste out side the ILOM

---------- Post updated at 10:59 AM ---------- Previous update was at 10:46 AM ----------

Anyway the disk shows up with the format command but not with any of the zfs commands. I may need to format the drive as zfs.
# 6  
Old 12-21-2011
Did you try the steps that I described above?
# 7  
Old 12-21-2011
I did but I think I did a typo. had to reboot to recover.
I have been trying zpool attach but I get I/O errors


I'm getting syntactic errors, now

---------- Post updated at 11:24 AM ---------- Previous update was at 11:09 AM ----------

Ok I got the command to work.

Last edited by bitlord; 12-21-2011 at 12:19 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Use of mirroring concept....

hi.... Friends... Why using mirroring ? what is the use of mirroring? just any one tell about clearly.... thanks.... (4 Replies)
Discussion started by: Kannan841
4 Replies

2. Solaris

Help with HDD Mirroring

Hi All Please can I have some help/advice. I am fairly new to unix so any help will be useful. I need to perform HDD Mirroring on a Sun Fire V245 Server running Solaris 10 OS. The system is already up and running and has the partitions and slices already. Is it possible to perform the... (6 Replies)
Discussion started by: pluto.flame
6 Replies

3. Solaris

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 :confused: --- c1t2d0 is the active... (8 Replies)
Discussion started by: pingmeback
8 Replies

4. Solaris

Mirroring

Hi All i wish to mirror the root disk, but i face the below error. root@saturn # metainit d11 1 1 c0t0d0s0 metainit: saturn: c0t0d0s0: is mounted on / kindly assist... (27 Replies)
Discussion started by: SmartAntz
27 Replies

5. Solaris

disk mirroring

hi every body I'm new to solaris and I need your help in how to configure disk mirroring for 4 hard disks so that two of them will be replica to the other two ...??? Thanxx (7 Replies)
Discussion started by: mm00123
7 Replies

6. Shell Programming and Scripting

Mirroring a user?

I'm looking for a way to mirror one user to another. For example: If I have the user ABC and I want to mirror his: -Primary group -Any other groups ABC belongs to -UID -Home directory And create an exact copy over to another server to a user called XYZ. I already have SSH keys set... (1 Reply)
Discussion started by: syndex
1 Replies

7. UNIX for Advanced & Expert Users

Mirroring Hardisk

How make mirror hardisk safe and not have trouble when we chance new hardisk in system live in sun solaris 8 server. (3 Replies)
Discussion started by: athurbayunata
3 Replies

8. SCO

Mirroring

How Can I Do Mirroring In Unix? (0 Replies)
Discussion started by: DIMITRIOSDOUMOS
0 Replies

9. Solaris

Mirroring

I am running Solaris 10 and i need to mirror a 73 gig HD. How do you mirror one in Solaris? (2 Replies)
Discussion started by: dewsdwarfs
2 Replies
Login or Register to Ask a Question