MachineA --- Sun-Fire-V210
----------------
c1t0d0 (HDD1) (146G)
||
||
c1t1d0 (HDD2)(146G)
----------------
MachineB --- Sun-Fire-V210
----------------
c1t1d0(HDD3)
----------------
Currently on 'machine A' below mentioned slices are available.
/dev/md/dsk/d0 (/)
/dev/md/dsk/d1 (swap)
/dev/md/dsk/d2 (/export/home)
/dev/rdsk/c1t0d0s4 --- used for metadatabase replica.
/dev/rdsk/c1t0d0s5 --- used for metadatabase replica.
/dev/rdsk/c1t0d0s6 --- used for metadatabase replica.
# metastat -p
d2 -m d25 d26 1
d25 1 1 c1t0d0s7
d26 1 1 c1t1d0s7
d1 -m d23 d24 1
d23 1 1 c1t0d0s1
d24 1 1 c1t1d0s1
d0 -m d21 d22 1
d21 1 1 c1t0d0s0
d22 1 1 c1t1d0s0
# metadb
flags first blk block count
a m p luo 16 8192 /dev/dsk/c1t0d0s4
a p luo 16 8192 /dev/dsk/c1t0d0s5
a p luo 16 8192 /dev/dsk/c1t0d0s6
a p luo 16 8192 /dev/dsk/c1t1d0s4
a p luo 16 8192 /dev/dsk/c1t1d0s5
a p luo 16 8192 /dev/dsk/c1t1d0s6
I would like to replace HDD2 on machineA with HDD3 of MachineB so that I can clone hdd3 as hdd1.
Now
c1t0d0 (HDD1)
||
||
c1t1d0 (HDD3) ------> we have replace hdd2 with hdd3, where hdd3 needs to be cloned.
Below are the steps which I will perform
Boot in single user mode..
step 1)
#cp /etc/system /etc/system.orig.raid
2)
Edit the /etc/system file and add "set md:mirrored_root_flag=1" to the last line.
3)
#/usr/sbin/prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2
4)
#newfs -v /dev/rdsk/c1t1d0s0
#newfs -v /dev/rdsk/c1t1d0s1
#newfs -v /dev/rdsk/c1t1d0s4
#newfs -v /dev/rdsk/c1t1d0s5
#newfs -v /dev/rdsk/c1t1d0s6
#newfs -v /dev/rdsk/c1t1d0s7
5)
Next reboot the system in multiuser mode init 3 or ctrl + d
6)
metareplace -e d0 c1t1d0s0
wait for the sync
metareplace -e d1 c1t1d0s1
wait for the sync
metareplace -e d2 c1t1d0s7
wait for the sync
After restoring HDD2 in place will mirror work fine between HDD1 and HDD2? (Here we have not deleted any of the metastat replica).
The current system is production server and I am worried if the above steps wont do any harm.
Can some one suggest whether the above step will work fine.
Thanks
D'Souza
----------------
c1t0d0 (HDD1) (146G)
||
||
c1t1d0 (HDD2)(146G)
----------------
MachineB --- Sun-Fire-V210
----------------
c1t1d0(HDD3)
----------------
Currently on 'machine A' below mentioned slices are available.
/dev/md/dsk/d0 (/)
/dev/md/dsk/d1 (swap)
/dev/md/dsk/d2 (/export/home)
/dev/rdsk/c1t0d0s4 --- used for metadatabase replica.
/dev/rdsk/c1t0d0s5 --- used for metadatabase replica.
/dev/rdsk/c1t0d0s6 --- used for metadatabase replica.
# metastat -p
d2 -m d25 d26 1
d25 1 1 c1t0d0s7
d26 1 1 c1t1d0s7
d1 -m d23 d24 1
d23 1 1 c1t0d0s1
d24 1 1 c1t1d0s1
d0 -m d21 d22 1
d21 1 1 c1t0d0s0
d22 1 1 c1t1d0s0
# metadb
flags first blk block count
a m p luo 16 8192 /dev/dsk/c1t0d0s4
a p luo 16 8192 /dev/dsk/c1t0d0s5
a p luo 16 8192 /dev/dsk/c1t0d0s6
a p luo 16 8192 /dev/dsk/c1t1d0s4
a p luo 16 8192 /dev/dsk/c1t1d0s5
a p luo 16 8192 /dev/dsk/c1t1d0s6
I would like to replace HDD2 on machineA with HDD3 of MachineB so that I can clone hdd3 as hdd1.
Now
c1t0d0 (HDD1)
||
||
c1t1d0 (HDD3) ------> we have replace hdd2 with hdd3, where hdd3 needs to be cloned.
Below are the steps which I will perform
Boot in single user mode..
step 1)
#cp /etc/system /etc/system.orig.raid
2)
Edit the /etc/system file and add "set md:mirrored_root_flag=1" to the last line.
3)
#/usr/sbin/prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2
4)
#newfs -v /dev/rdsk/c1t1d0s0
#newfs -v /dev/rdsk/c1t1d0s1
#newfs -v /dev/rdsk/c1t1d0s4
#newfs -v /dev/rdsk/c1t1d0s5
#newfs -v /dev/rdsk/c1t1d0s6
#newfs -v /dev/rdsk/c1t1d0s7
5)
Next reboot the system in multiuser mode init 3 or ctrl + d
6)
metareplace -e d0 c1t1d0s0
wait for the sync
metareplace -e d1 c1t1d0s1
wait for the sync
metareplace -e d2 c1t1d0s7
wait for the sync
After restoring HDD2 in place will mirror work fine between HDD1 and HDD2? (Here we have not deleted any of the metastat replica).
The current system is production server and I am worried if the above steps wont do any harm.
Can some one suggest whether the above step will work fine.
Thanks
D'Souza