ZFS Rpool Mirroring + Solaris 10 (SPARC)

2 views
Skip to first unread message

Sriram Mohan

unread,
May 5, 2011, 3:10:36 AM5/5/11
to UNIX_Storage
Steps for mirroring ZFS rpool after the OS installation.

Please confirm the source and destination disk with "format" and
"zpool status" commands

# echo|format

# zpool status rpool

Here,

Source Disk : c0t5000C5002C174467d0s0
Dest.Disk : c0t5000C5002C193DE7d0s0

Attaching the new disk to mirror

# prtvtoc /dev/rdsk/c0t5000C5002C174467d0s0 | fmthard -s - /dev/rdsk/
c0t5000C5002C193DE7d0s0

# zpool attach -f rpool c0t5000C5002C174467d0s0
c0t5000C5002C193DE7d0s0

# installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/
rdsk/c0t5000C5002C193DE7d0s0

# zpool status rpool


NAME STATE READ WRITE CKSUM

rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0

c0t5000C5002C174467d0s0 ONLINE 0 0 0
c0t5000C5002C193DE7d0s0 ONLINE 0 0 0 2.14G
resilvered

errors: No known data errors

#



Addn.Info :

"zpool attach" Command Does Not Copy bootblock Information

Refer this link :

http://download.oracle.com/docs/cd/E19253-01/821-0381/ghjhr/index.html
Reply all
Reply to author
Forward
0 new messages