About Us

RSInfoMinds, a web based IT Training and Consultancy firm. It is established with high dreams in training people in IT Infrastructure Field. We provide Online and Class Room training in various fields of IT Infrastructure Management.

Join Us: http://www.facebook.com/RSInfoMinds
Mail Us: rsinfominds@gmail.com
Twitter: @RSInfoMinds

We are specialized in the below courses:

Redhat Linux Admin Redhat Linux Cluster
Redhat Virutualization IBM AIX Admin
IBM AIX Virtualization IBM AIX Cluster
HP Unix Admin HP Unix Cluster
HP Unix Virtualization Shell Scripting
Veritas Volume Manager Veritas Cluster
Oracle Core DBA VMWare


We provide training in such a way, So that you get in depth knowledge on the Courses you look for.

And we ensure you are very confident from each and every Techincal aspect that the IT Industry needs and expects from you.

We also conduct Workshops on the latest technology and the real time faculties sharing their work experiences to make you the best.

Monday 2 April 2012

Unmirrorvg Cont...

Now, we discuss the mirroring using 3 disks.


bash-3.2# lsvg -p data
data:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk4            active            1084        1019        217..152..216..217..217
hdisk3            active            1084        1084        217..217..216..217..217
hdisk5            active            542         542         109..108..108..108..109

hdisk4 : Original Copy.

bash-3.2# mirrorvg -c 3 data hdisk3 hdisk5
0516-1125 mirrorvg: Quorum requirement turned off, varyoff and varyon
        volume group for this to take effect.
bash-3.2# lsvg -p data
data:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk4            active            1084        1019        217..152..216..217..217
hdisk3            active            1084        1019        217..152..216..217..217
hdisk5            active            542         477         109..43..108..108..109
bash-3.2# lsvg -l data
data:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
loglv01             jfs2log    1     3     3    open/syncd    N/A
fslv01              jfs2       64    192   3    open/syncd    /data
bash-3.2#

So, as per the command executed. I can say,

hdisk4: Original.
hdisk3: 1st mirror.
hdisk5: 2nd mirror.

Now, will try this.

bash-3.2# lsvg -p data
data:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk4            active            1084        1019        217..152..216..217..217
hdisk3            active            1084        1019        217..152..216..217..217
hdisk5            active            542         477         109..43..108..108..109
bash-3.2# unmirrorvg -c 2 data
bash-3.2# lsvg -p data
data:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk4            active            1084        1019        217..152..216..217..217
hdisk3            active            1084        1019        217..152..216..217..217
hdisk5            active            542         542         109..108..108..108..109
bash-3.2#

The above command proves that the 2nd copy was in hdisk5 and its removed. 

Now we will mirror it back.

bash-3.2# mirrorvg data hdisk5

0516-1118 mirrorvg: No logical volumes in volume group to mirror.
0516-1200 mirrorvg: Failed to mirror the volume group.
bash-3.2# lsvg -l data
data:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
loglv01             jfs2log    1     2     2    open/syncd    N/A
fslv01              jfs2       64    128   2    open/syncd    /data

The above command failed to mirror. But the command is correct. 

But it worked when I executed like this,

bash-3.2# mirrorvg -c 3 data hdisk5
bash-3.2# lsvg -l data
data:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
loglv01             jfs2log    1     3     3    open/syncd    N/A
fslv01              jfs2       64    192   3    open/syncd    /data
bash-3.2# lsvg -p data
data:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk4            active            1084        1019        217..152..216..217..217
hdisk3            active            1084        1019        217..152..216..217..217
hdisk5            active            542         477         109..43..108..108..109

This needs an explanation...


No comments:

Post a Comment