mirroring disks

Mirroring disks with solstice disk suite

Format
– Check the disks with format
– Create partitions for metadb’s (2c is enough)

prtvtoc
Copy the partition table from the first disk to the second disk with prtvtoc.
– prtvtoc –h /dev/rdsk/c0t0d0s2 | fmthard –s – /dev/rdsk/c0t1d0s2
– check the result with
– prtvtoc /dev/rdsk/c0t0d0s2

metadb’s
Make metadb’s with metadb
– in total we make four
– metadb –a –f c0t0d0s6
– metadb –a c0t0d0s7
– metadb –a c0t1d0s6
– metadb –a c0t1d0s7
– check result with
– metadb –i

metadevices
Configure metadevices with metainit
– metainit –f d101 1 1 c0t0d0s0
– metainit –f d100 -m d101
– metainit –f d102 1 1 c0t1d0s0
– create as many metadevices as you need

boot
Before you are going to connect the mirror you need to reboot, so the system can boot from the new boot device.
Make the system ready for booting with metaroot
– metaroot d100
– check the result in /etc/vfstab

connect the mirrors
connect the mirrors with metattach
– metattach d101 d102

while true
do
metastat | grep %
echo `uname -n`
echo
sleep 5
done

Bookmark de permalink.

Geef een reactie

Je e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *