Operating System - HP-UX
1752273 Members
4933 Online
108786 Solutions
New Discussion юеВ

Re: How to check root partation is mirrored or not?

 
SOLVED
Go to solution
Torsten.
Acclaimed Contributor

Re: How to check root partation is mirrored or not?

The modern servers can also use hardware mirrors, so LVM is not aware of this.

Because different controllers are using different commands, you should consider to post an "ioscan -fn" here to clarify.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
fizan
Super Advisor

Re: How to check root partation is mirrored or not?

LV Name /dev/vg01/lvol3
LV Status available/syncd
LV Size (Mbytes) 40960
Current LE 10240
Allocated PE 20480
Used PV 4
---------------------------------------------
so how to find in which 4 pv its logical extents are spread?
fizan
Super Advisor

Re: How to check root partation is mirrored or not?

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
/dev/dsk/c2t0d0s2 (0/1/1/0.0.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
Root: lvol3 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
Swap: lvol2 on: /dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
Dump: lvol2 on: /dev/dsk/c2t1d0s2, 0

its mirored, primary is /dev/dsk/c2t1d0s2 ,
secondary mirror is /dev/dsk/c2t0d0s2 ...
bullz
Super Advisor

Re: How to check root partation is mirrored or not?

Hello Guruz,

Thanks all for ur views.. But i am bit confused :(

Finlay seeing all the above comments i came to know that my root partation is not mirrored :)

/dev/vg00/lvol3 589824 382256 206008 65% /

bash-4.0# lvdisplay -v /dev/vg00/lvol3 | more
--- Logical volumes ---
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 576
Current LE 18
Allocated PE 18
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t0d0 18 18

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c2t0d0 00138 current
00001 /dev/dsk/c2t0d0 00139 current
00002 /dev/dsk/c2t0d0 00140 current
00003 /dev/dsk/c2t0d0 00141 current
00004 /dev/dsk/c2t0d0 00142 current
00005 /dev/dsk/c2t0d0 00143 current
00006 /dev/dsk/c2t0d0 00144 current
00007 /dev/dsk/c2t0d0 00145 current
00008 /dev/dsk/c2t0d0 00146 current
00009 /dev/dsk/c2t0d0 00147 current
00010 /dev/dsk/c2t0d0 00148 current
00011 /dev/dsk/c2t0d0 00149 current
00012 /dev/dsk/c2t0d0 00150 current
00013 /dev/dsk/c2t0d0 00151 current
00014 /dev/dsk/c2t0d0 00152 current
00015 /dev/dsk/c2t0d0 00153 current
00016 /dev/dsk/c2t0d0 00154 current
00017 /dev/dsk/c2t0d0 00155 current


1) after seeing mirror copies 0, Since vol3 is part of vg00 i need to mirror entire vg00 for root mirroring, if i am not worng.

2) However, i could see disk c2t0d0 is a primary disk, how can i see the other alternative disk for mirroring?

bash-4.0# ioscan -C disk
H/W Path Class Description
=====================================================
0/0/2/0.0.0.0 disk TEAC DV-28E-N
0/1/1/0.0.0 disk HP 146 GMAW3147NC
0/1/1/0.1.0 disk HP 146 GMAW3147NC


3) In case if i found a new disk, how could i do root mirroring?
Lijeesh N G_1
Respected Contributor

Re: How to check root partation is mirrored or not?

Hi,


Finlay seeing all the above comments i came to know that my root partation is not mirrored :)

/dev/vg00/lvol3 589824 382256 206008 65% /

bash-4.0# lvdisplay -v /dev/vg00/lvol3 | more
--- Logical volumes ---
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0 <<<<<===========Its not mirrored
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 576
Current LE 18
Allocated PE 18
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t0d0 18 18 <<<==========Its not mirrored

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c2t0d0 00138 current
00001 /dev/dsk/c2t0d0 00139 current



1) after seeing mirror copies 0, Since vol3 is part of vg00 i need to mirror entire vg00 for root mirroring, if i am not worng??
==>If you want to make it as a alternate boot volume, you should mirror entire VG00,otherwise no use for mirroring.\
So you shoul mirror entire volume group.


2) However, i could see disk c2t0d0 is a primary disk, how can i see the other alternative disk for mirroring?

bash-4.0# ioscan -C disk
H/W Path Class Description
=====================================================
0/0/2/0.0.0.0 disk TEAC DV-28E-N
0/1/1/0.0.0 disk HP 146 GMAW3147NC <<<<====This is your primary disk
0/1/1/0.1.0 disk HP 146 GMAW3147NC <<<<====Alternate disk

==>use
#ioscan -fnC disk
and find the disk with hardware path 0/1/1/0.1.0, this is your alternate disk.Ensure that this disk is not used for any other volume group or any application before mirroring.


3) In case if i found a new disk, how could i do root mirroring?
==>With above output, I could tell it is PA-RISC based server, so follow steps for "Mirroring in PA-RISC servers" which I provided above, replace the actuall disk with your alternate disk.

Regards,
LIJEESH N G
bullz
Super Advisor

Re: How to check root partation is mirrored or not?

Hello... Souds gr8...

I could able to compleate half of this..
When i trying to extend my logical volume, i am geting the below error.

bash-4.0# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
"m": Illegal option.

Any idea?
bullz
Super Advisor

Re: How to check root partation is mirrored or not?

Additionaly is it wen can do it onlie (or) we have to perform this in Single user mode..
Lijeesh N G_1
Respected Contributor

Re: How to check root partation is mirrored or not?

Hi,

There is no Mirror software installed on your system.

Check the below command output,
#swlist -l product|grep -i mirror

You have to install the product to enable the mirroring.

Regards,
LIJEESH N G
R.K. #
Honored Contributor

Re: How to check root partation is mirrored or not?

Hello Bullz,

For mirroring there is no need to go into Single User Mode.

You need to install mirror disk ux software which you need to BUY from HP.

Regds..
Don't fix what ain't broke
bullz
Super Advisor

Re: How to check root partation is mirrored or not?

Thanks folks...

Could some one tell me from where i can download this mirror?