Run format, if no space allocated to s7, please allocate around 500M to it.
Label 2nd disk using 1st disk labels
prtvtoc /dev/dsk/<first disk>s2 | fmthard -s - /dev/rdsk/<second disk>s2
i.e.
prtvtoc /dev/dsk/c0t5000C50047BB345Bd0s2 | fmthard -s - /dev/rdsk/c0t5000C50047BED3F3d0s2
Create metadatabase on slice 7
metadb -a -c 3 -f <1st disk>s7 <2nd disk>s7
i.e.
metadb -a -c 3 -f c0t5000C50047BB345Bd0s7 c0t5000C50047BED3F3d0s7
Configure metadevice
metainit -f d10 1 1 <1st disk>s0
i.e.
metainit -f d10 1 1 c0t5000C50047BB345Bd0s0
metainit d20 1 1 <2nd disk>s0
i.e.
metainit d20 1 1 c0t5000C50047BED3F3d0s0
create mirror
metainit d0 -m d10
Set system files for root
metaroot d0
Configuration meta device for s1, s3, s5, s6
metainit -f d11 1 1 <1st disk>s1
i.e.
metainit -f d11 1 1 c0t5000C50047BB345Bd0s1
metainit d21 1 1 <2nd disk>s1
i.e.
metainit d21 1 1 c0t5000C50047BED3F3d0s1
create mirror
metainit d1 -m d11
metainit -f d13 1 1 c0t5000C50047BB345Bd0s3
metainit d23 1 1 c0t5000C50047BED3F3d0s3
metainit d3 -m d13
metainit -f d15 1 1 c0t5000C50047BB345Bd0s5
metainit d25 1 1 c0t5000C50047BED3F3d0s5
metainit d5 -m d15
metainit -f d16 1 1 c0t5000C50047BB345Bd0s6
metainit d26 1 1 c0t5000C50047BED3F3d0s6
metainit d6 -m d16
Modify /etc/vfstab
/dev/md/dsk/d1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/md/dsk/d3 /dev/md/rdsk/d3 /usr ufs 1 no -
/dev/md/dsk/d6 /dev/md/rdsk/d6 /var ufs 1 no -
/dev/md/dsk/d5 /dev/md/rdsk/d5 /opt ufs 2 yes -
restart server
attach device to mirrored slice accordingly
metattach d0 d20
metattach d1 d21
metattach d3 d23
metattach d5 d25
metattach d6 d26
Discover new LUN and mount it
powermt config
powermt save
powermt display dev=all
metainit d9 1 1 emcpower0a
newfs /dev/md/rdsk/d9
Mount SAN Storage
add below line into /etc/vfstab
/dev/md/dsk/d9 /dev/md/rdsk/d9 /lDoms ufs 2 yes -
mkdir /lDoms
mount /dev/md/dsk/d9
No comments:
Post a Comment