Creation raid1 zfs (mirror) sur opensolaris apres install du systeme

Par défaut

root@opensolaris:~# df -h


Filesystem            Size  Used Avail Use% Mounted on
rpool/ROOT/avgraf      72G  4,3G   68G   6% /
swap                  420M  408K  419M   1% /etc/svc/volatile
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
72G  4,3G   68G   6% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
72G  4,3G   68G   6% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
swap                  419M   72K  419M   1% /tmp
swap                  419M  120K  419M   1% /var/run
rpool/export           68G   23K   68G   1% /export
rpool/export/home      68G   21K   68G   1% /export/home
rpool                  68G   67K   68G   1% /rpool
/dev/dsk/c2t2d0s2     451M  451M     0 100% /media/OpenSolaris

root@opensolaris:~# zpool status
pool: rpool
state: ONLINE
scrub: none requested
config:

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

errors: No known data errors

root@opensolaris:~# prtvtoc /dev/rdsk/c2t0d0s2 |  fmthard -s – /dev/rdsk/c2t1d0s2
fmthard:  New volume table of contents now in place.

root@opensolaris:~# zpool attach -f rpool c2t0d0s0 c2t1d0s0
Please be sure to invoke installboot(1M) to make ‘c2t1d0s0’ bootable.
Make sure to wait until resilver is done before rebooting.

root@opensolaris:~# format
Searching for disks…done

AVAILABLE DISK SELECTIONS:
0. c2t0d0 <ST380011A cyl 38307 alt 2 hd 16 sec 255>
/pci@1e,600000/ide@d/dad@0,0
1. c2t1d0 <ST380021A cyl 38307 alt 2 hd 16 sec 255>
/pci@1e,600000/ide@d/dad@1,0

root@opensolaris:~# installboot -F zfs /usr/platform/SUNW,Sun-Blade-1500/lib/fs/zfs/bootblk /dev/rdsk/c2t1d0s0

root@opensolaris:~# zpool status
pool: rpool
state: ONLINE
status: One or more devices is currently being resilvered.  The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scrub: resilver in progress for 0h1m, 31,07% done, 0h3m to go
config:

NAME          STATE     READ WRITE CKSUM
rpool         ONLINE       0     0     0
mirror-0    ONLINE       0     0     0
c2t0d0s0  ONLINE       0     0     0
c2t1d0s0  ONLINE       0     0     0  1,59G resilvered

root@opensolaris:~# zpool status
pool: rpool
state: ONLINE
scrub: resilver completed after 0h5m with 0 errors on Wed Sep 15 10:46:54 2010
config:

NAME          STATE     READ WRITE CKSUM
rpool         ONLINE       0     0     0
mirror-0    ONLINE       0     0     0
c2t0d0s0  ONLINE       0     0     0
c2t1d0s0  ONLINE       0     0     0  5,11G resilvered

errors: No known data errors

Laisser un commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.