Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
5Activity
0 of .
Results for:
No results containing your search query
P. 1
Solaris_Volume_Manager_case_study

Solaris_Volume_Manager_case_study

Ratings: (0)|Views: 362|Likes:
Published by Sudhakar Kakileti
Uploaded from Google Docs
Uploaded from Google Docs

More info:

Published by: Sudhakar Kakileti on Aug 10, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

11/06/2013

pdf

text

original

 
Hi Guys,this is my first posting on to this joinforce tech forum,hope you will find intersting withthis..
Is it possible to mount a submirror ,while the submirror is attched to the mirror ?
 If you said no ,you are wrong ..we can able to mount the submirror while its in attachedstate..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 beno use ,but we can came to know that we should be very much careful while designing thesolutions in SVM .First we wil see how to perform this ..
Mounting submirror :
 /dev/md/dsk/d0 14367 1041 11890 9% /mnt_mirrord0# metastat -pd0 -m d10 d20 1d10 1 1 c2t0d0s0d20 1 1 c2t1d0s0created the filesystem on d0 and mounted on /mnt_mmirrord0. Now created file named test_mirror of size 8mb . # mkfile 8m test_mirror # cd /mnt_mirrord0 # ls -ltr total 16416 drwx------ 2 root root 8192 Dec 5 00:04 lost+found -rw------T 1 root root 8388608 Dec 5 00:07 test_mirror Now trying to mount the attached submirror d20 .# mount /dev/md/dsk/d20 /mnt_submirrord20 mount: /dev/md/dsk/d20 write-protected 
 
So as it is write protected tried to mount as read only.# mount -r /dev/md/dsk/d20 /mnt_submirrord20its mounted /dev/md/dsk/d0 14367 9241 3690 72% /mnt_mirrord0 /dev/md/dsk/d20 14367 9241 3690 72% /mnt_submirrord20 #cd /mnt_submirrord20# ls -ltrtotal 16416drwx------ 2 root root 8192 Dec 5 00:04 lost+found-rw------T 1 root root 8388608 Dec 5 00:07 test_mirrorBut 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.# mount -o remount /dev/md/dsk/d20 /mnt_submirrord20# df -k /mnt_submirrord20Filesystem kbytes used avail capacity Mounted on /dev/md/dsk/d20 14367 9241 3690 72% /mnt_submirrord20# cd /mnt_submirrord20# ls -ltrtotal 16416drwx------ 2 root root 8192 Dec 5 00:04 lost+found-rw------T 1 root root 8388608 Dec 5 00:07 test_mirror#Now tried to create a file on d20 ie on the mount point /mnt_submirrord20.# mkfile 2m test1_submirrord20 /dev/md/dsk/d0 14367 9241 3690 72% /mnt_mirrord0
 
 /dev/md/dsk/d20 14367 11297 1634 88% /mnt_submirrord20So Finally we have achieved that the above statement .. "able to mount the submirror whileattached and perfoming the write operations".
Consequences if we done the above case
:Yep,we succesfully mounted the submirror and we are able to write the data (withor without having conscious that this using as submirror). Now we will see the consequence forthis. Now created the file called test1_mirrord0 in /mnt_mirrord0.# cd /mnt_mirrord0# ls -ltrtotal 6176drwx------ 2 root root 8192 Dec 5 00:04 lost+found-rw------T 1 root root 3145728 Dec 5 01:21 test1_mirrord0and now switch to the directory /mnt_submirrord20# cd /mnt_submirrord20# ls -ltrtotal 6176drwx------ 2 root root 8192 Dec 5 00:04 lost+found-rw------T 1 root root 3145728 Dec 5 01:21 test1_mirrord0then remove the test1_mirrord0 from /mnt_submirrord20 .Again unmount and mount the d0. Now we will get the below I/o error# ls -ltr./test1_mirrord0: I/O errortotal 16drwx------ 2 root root 8192 Dec 5 00:04 lost+foundThis is due to inconsistences in d0 and d20.And hence SVM checks there is no syn between thesevolumes and hence it throws I/O error.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->