Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Ques

Status
Not open for further replies.

KOG

MIS
Jan 31, 2002
303
0
0
GB
Hi Folks,

Pls excuse for this simple ques but I need to know how and what commands do I run to find/check if the vg is mirrored or not?

Thanking you all in advance.

Regards

K
 
Hello ,

You can run lslv -n hd5 to see if the logical volume in the volume group is mirrored and if it shows like this then the volume group is mirrored as this is the bootdisk on the vg.
LP PP1 PV1 PP2 PV2
0001 0001 hdisk0 0001 hdisk1

i hope i answered your query.

SA
 
Hi SA

Tried running the command you have given but got error message?

# lslv -n hd3
0516-602 lslv: Logical volume name not entered.
Usage: lslv [-L] [-l | -m] [-n DescriptorPV] LVname
lslv: [-L] [-n DescriptorPV] -p PVname [LVname]
Lists the characteristics of a logical volume.

What have I done wrong?

Thanking you in advance.

Cheers

K
 
for a soft mirror ( i mean 2 copy of one lv on separate hdisk ) you can :
lsvg -l <your vg>
foreach LV if number of PP is double of number of LV , then LV is mirrored.
you can do : lslv -m <lvname> to see on what disk the LV is installed.

for hard mirror : lspv gives you the name of disk for each VG .
lsdev -Cc disk return a list of disk. if you see RAID in the description it should be good.
 
Or on the logical volume level: lslv -m <lvname>
(not -n)
 
One caveat: neither of these solutions apply if the mirroring is done at the hardware level -- for example, if you have the LV on an SSA RAID1.
 
Hello ,

It was typo error , sorry for the inconvenience caused , as my meaning was

lslv -m hd5 and not -n

anyways by now you might have already figured out your answer,let know if there is anything else you may wish to know.

thanx
sa
 
The easiest and least confusing way to see if a volume group is mirrored is to run `lsvg -l rootvg`.

If the PP's are double LP's then there are two copies, etc.

Using lslv -m hd2 will show you which disks the copies reside on.
 
Many thanks to all of you who has responded to my query.

Much appreciated.

Regards

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top