11.Shuting down the system
# shutdown -i0 -g0 -y
-----------------------------------------------------------------------------------------------------------------------------------------------------
12.Booting the system up
# boot
After system is booted up, please execute metadb/metastat and then you may see
the message "there are no existing databases" for confirming there is no meta device.
confirm that the root partition in /etc/vfstab is metadevice and rooddev is added in the
/etc/systme.
15. Invalidating device ID
# vi /kernel/drv/md.conf
(before editing)
---------------------------------------------
#
#pragma ident "@(#)md.conf 2.1 00/07/07 SMI"
#
# Copyright (c) 1992-1999 by Sun Microsystems, Inc.
# All rights reserved.
#
name="md" parent="pseudo" nmd=128 md_nsets=4;
# Begin MDD database info (do not edit)
mddb_bootlist1="sd:15:16:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:15:8208:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:15:16400:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:135:16:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/ sd:135:8208:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/ sd:135:16400:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/";
# End MDD database info (do not edit)
---------------------------------------------
(after editing)
---------------------------------------------
#
#pragma ident "@(#)md.conf 2.1 00/07/07 SMI"
#
# Copyright (c) 1992-1999 by Sun Microsystems, Inc.
# All rights reserved.
#
name="md" parent="pseudo" nmd=128 md_nsets=4;
md_devid_destroy=1;(add it)
md_keep_repl_state=1;(add it)
# Begin MDD database info (do not edit)
mddb_bootlist1="sd:15:16:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:15:8208:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:15:16400:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V7B/ sd:135:16:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/ sd:135:8208:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/ sd:135:16400:id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800V3D/";
# End MDD database info (do not edit)
---------------------------------------------
16.Locking the file system and then reboot it once.
# lockfs -fa
# shutdown -i6 -g0 -y
Confirming the result of executing metastat turns to be that device ID is invalid.
valid
Device Relocation Information:
Device Reloc Device ID
c1t0d0 Yes id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800UFU
c0t0d0 Yes id1,sd@SFUJITSU_MAW3147NC_______DAF4P7800ULK
invalid
Device Relocation Information:
Device Reloc Device ID
c1t0d0 No
c0t0d0 No
17.Creating mirror of the rest of partitions.
# metainit -f d21 1 1 c0t8d0s1
# metainit -f d22 1 1 c0t0d0s1
# metainit d2 -m d21
# metainit -f d51 1 1 c0t0d0s5
# metainit -f d52 1 1 c1t0d0s5
# metainit d50 -m d51
# metainit -f d61 1 1 c0t0d0s6
# metainit -f d62 1 1 c1t0d0s6
# metainit d60 -m d61
18.Editing /etc/vfstab
# vi /etc/vfstab
(before editing)
--------------------------------------------------------------------------------
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /export/home ufs 2 yes -
/dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /opt ufs 2 yes -
swap - /tmp tmpfs - yes -
#RMS#/dev/dsk/c4t1d0s6 /dev/rdsk/c4t1d0s6 /opt/goat ufs 2 yes -
---------------------------------------------------------------------------------
(after editing)
--------------------------------------------------------------------------------
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d10 - - swap - no -
/dev/md/dsk/d100 /dev/md/rdsk/d100 / ufs 1 no -
/dev/md/dsk/d60 /dev/md/rdsk/d60 /export/home ufs 2 yes -
/dev/md/dsk/d50 /dev/md/rdsk/d50 /opt ufs 2 yes -
swap - /tmp tmpfs - yes -
#RMS#/dev/dsk/c4t1d0s6 /dev/rdsk/c4t1d0s6 /opt/goat ufs 2 yes -
---------------------------------------------------------------------------------
19.Rebooting the system
# shutdown -i6 -g0 -y
20.Synchronizing the mirror disks
# metattach d1 d12
# metattach d2 d22
*You can confirm the status of mirror synchronization by executing the command below.
# metastat | grep %
As a result, please confirm all the status are Okay.
21. Setting the dump device.
# dumpadm -d swap作者: morrow 时间: 2009-02-20 15:42
很强大