Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
this..
If you said no ,you are wrong ..we can able to mount the submirror while its in attached
state..Sounds intersting right!! But this is possible.Yes ofcourse , it creates lot of problems.
I think you might started thinking what is the use of this ,absolutely you are right ,there might be
no use ,but we can came to know that we should be very much careful while designing the
solutions in SVM .
Mounting submirror :
# metastat -p
d0 -m d10 d20 1
d10 1 1 c2t0d0s0
d20 1 1 c2t1d0s0
# mkfile 8m test_mirror
# cd /mnt_mirrord0
# ls -ltr
total 16416
its mounted
#cd /mnt_submirrord20
# ls -ltr
total 16416
But want to mount this d20 to perform write operations also on d20. then use remount option
,then it will mount the read only filesystem as read write filesystem.
# df -k /mnt_submirrord20
# cd /mnt_submirrord20
# ls -ltr
total 16416
# mkfile 2m test1_submirrord20
So Finally we have achieved that the above statement .. "able to mount the submirror while
attached and perfoming the write operations".
Yep,we succesfully mounted the submirror and we are able to write the data (with
or without having conscious that this using as submirror). Now we will see the consequence for
this.
# cd /mnt_mirrord0
# ls -ltr
total 6176
# cd /mnt_submirrord20
# ls -ltr
total 6176
Again unmount and mount the d0. Now we will get the below I/o error
# ls -ltr
total 16
This is due to inconsistences in d0 and d20.And hence SVM checks there is no syn between these
volumes and hence it throws I/O error.
Assume at this situation we will reboot the box and this do is in vfstab entry ,In this situation
while booting the system will ask for fsck on d0 ,if you performed that fsck,there might be the
data loss on this d0.In worst case if teh backup is not availble then the data will be lost.Consider
this sitauion in production environment which will cause very high impact.
After reboot
# cd /mnt_mirrord0
# ls -ltr
total 16
Note : In the above case it is assuming that system administartor dont have the idea that the d20
is separelty mounted.So asusal when d0 asks for fsck at the time of boot he will run the fsck on
d0 which causes the dataloss on d0 .
Source: The same situation is happend in our environment.Hence simulated the same .
Lesson learnt :
need to check the mount points from df -k before rebooting / performing any
changes :-)
Additional Info :
CONTINUE? y
** /dev/md/dsk/d0
SALVAGE? y
NAME=/test1_mirrord0
RECONNECT? y
FIX? y
4 files, 8313 used, 1942 free (14 frags, 241 blocks, 0.1% fragmentation)
VSolaris-10#