Mirror disk on Solaris


show disk layout on 1st harddisk partition
# format
0
p
p

create copy of Volume Table of Contents from 1st harddisk partition
# prtvtoc /dev/rdsk/c1t0d0s2 | fmthard –s - /dev/rdsk/c1t1d0s2

create metadb as database that contain all mirror configuration.
slice 7 is unused partition
# metadb –a –c 3 –f c1t0d0s7 c1t1d0s7

create virtual device for each slice
# metainit –f d11 1 1 c1t0d0s0
# metainit –f d12 1 1 c1t1d0s0
# metainit d10 –m d11
# metainit –f d21 1 1 c1t0d0s1
# metainit –f d22 1 1 c1t1d0s1
# metainit d20 –m d21
# metainit –f d31 1 1 c1t0d0s3
# metainit –f d32 1 1 c1t1d0s3
# metainit d30 –m d31
# metainit –f d41 1 1 c1t0d0s4
# metainit –f d42 1 1 c1t1d0s4
# metainit d40 –m d41
# metainit –f d51 1 1 c1t0d0s5
# metainit –f d52 1 1 c1t1d0s5
# metainit d50 –m d51
# metainit –f d61 1 1 c1t0d0s6
# metainit –f d62 1 1 c1t1d0s6
# metainit d60 –m d61

Tell system that root actually virtual device, not slice anymore
# metaroot d10

Reboot system
# shutdown -g0 -i6 -y

Add virtual device from 2nd disk to mirror
# metattach d10 d12
# metattach d20 d22
# metattach d30 d32
# metattach d40 d42
# metattach d50 d52
# metattach d60 d62

Show status mirror
# metastat

Popular posts from this blog

Howto configure boot device order on ILOM

Installing Depot files on HP-UX 11.23 ia64

SAN Switch Config Command