Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
===================================================================================
====
# boot the secondary mirror
ok> boot disk1
# Now you can physically replace the disk, reconfigure it and bring it online
cfgadm -c configure c1::dsk/c0t0d0
zpool online rpool c0t0d0
# if the replace above fails the detach and reattach the primary mirror
zpool deatch rpool c0t0d0s0
zpool attach rpool c0t1d0s0 c0t0d0s0
# make checks
zpool status rpool
# Now activate the swap and check the size, if the -a option does not work then use
"swapadd" command
swap -a /dev/zvol/dsk/rpool/swap
swap -l
Note: if you cannot delete the original swap area due to being too busy then simple
add another swap area, the same procedure is used for dump areas but using the
"dumpadm" command
## option one
ok> boot -F failsafe
whne requested follow the instructions to mount the rpool on /a
cd /a/etc
vi passwd|shadow
init 6
## Option two
ok boot cdrom|net -s (you can boot from the network or cdroml)
zpool import -R /a rpool
zfs mount rpool/ROOT/zfsBE
cd /a/etc
vi passwd|shadow
init 6
# scrub the pool to check for anymore errors (this depends on the size of the
zpool as it can take a long time to complete
zpool scrub data01
# you can now remove the failed disk in the normal way depending on your hardware