LVM and VxVM

Is there a VxVM equivalent to lvdisplay?

 
Tony Williams
Regular Advisor

Is there a VxVM equivalent to lvdisplay?

I had a disk failure in a VxVM controlled disk array, and got a few troubling messages (see below).

I'm not totally sure what those messages were trying to tell me, but I came to the conclusion that I could safely replace the disk and rebuild it.

The disk array is setup for RAID-1, and I wanted to re-assure myself of the mirroring and I really couldn't find a suitable VxVM command to do it.

vxprint -hrt was OK, but is there a VxVM command equivalent to something like:
lvdisplay -v /dev/vg00/lvol1

Failures have been detected by the VERITAS Volume Manager:

failed disks:
data1.001.m1

failed plexes:
pdata1.001.m1

failed log plexes:
pdata1.001.m1

The Volume Manager will attempt to find spare disks, relocate failed subdisks and then recover the data in the failed plexes.

Unable to relocate failed subdisk from plex pdata1.001.m1 because no suitable mirror was found from which to recover data.

DRL pdata1.001.m1 detached, Creating new DRL for volume data1.001 failed.

8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: Is there a VxVM equivalent to lvdisplay?

Shalom,

http://www.docs.hp.com/en/B7961-90017/ch03s01.html

A table exists there.

The syntax will not be the same.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tony Williams
Regular Advisor

Re: Is there a VxVM equivalent to lvdisplay?

Thanks Steven,

That's doco is either good or bad news. It doesn't list an equivalent for lvdisplay, and I haven't found one in researching it. You can get info for a specific entity in VxVM but its difficult to get global info like mirroring info:

Tnis command should do it, but it comes back empty:
vxprint -sF "%vname" -e 'sd_disk = "data1.001.m1-01"'

This command only shows info specific to that plex and not its mirror.

vxprint -l pdata1.001.m1
Disk group: rootdg

Plex: pdata1.001.m1
info: len=17779733
type: layout=CONCAT
state: state=ACTIVE kernel=ENABLED io=read-write
assoc: vol=data1.001 sd=data1.001.m1-01
flags: complete
logging: logsd=data1.001.m1-log (enabled)
Sameer_Nirmal
Honored Contributor

Re: Is there a VxVM equivalent to lvdisplay?

The VxVM equivalent would be

# vxprint -ht

In this case

# vxprint -ht data1.001

Tony Williams
Regular Advisor

Re: Is there a VxVM equivalent to lvdisplay?

Thanks Sameer,

Thats the command thats most confusing. I don't see anywhere in the output that tells me that I am mirrored:


vxprint -ht data1.001
Disk group: rootdg

V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO

v data1.001 - ENABLED ACTIVE 17779733 ROUND - fsgen
pl pdata1.001.m1 data1.001 ENABLED ACTIVE 17779733 CONCAT - RW
sd data1.001.m1-log pdata1.001.m1 data1.001.m1 0 1024 LOG c4t1d0 ENA
sd data1.001.m1-01 pdata1.001.m1 data1.001.m1 1024 17779733 0 c4t1d0 ENA
pl pdata1.001.m2 data1.001 ENABLED ACTIVE 17779733 CONCAT - RW
sd data1.001.m2-log pdata1.001.m2 data1.001.m2 0 1024 LOG c5t9d0 ENA
sd data1.001.m2-01 pdata1.001.m2 data1.001.m2 1024 17779733 0 c5t9d0 ENA
Kapil Jha
Honored Contributor

Re: Is there a VxVM equivalent to lvdisplay?

vxprint -thA output is the one which shows maximum configuration for any volume manager.

well I have not understood you completely though ur last post says you want to find how to find if ur plex is mirrored or not.

very simple

the number od plex in volume is the number of mirror copies you have.
SO you have 2 plex in volume data1.001
1)pdata1.001.m1
2)pdata1.001.m2

and these 2 are mirrored.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Tony Williams
Regular Advisor

Re: Is there a VxVM equivalent to lvdisplay?

Thanks Kapil,

VxVM forces you to make assumptions, yes the vxprint has a single entry that says the plexes are mirrored, and shows two subdisks that the plexes are mirrored on. Ronald Reagan said Trust but Verify, and I'd like a way to verify the mirroring configuration.

vxprint is more like vgdisplay. vgdisplay tells me that I have a volume, that it is sync'd and that there are two physical volumes.

lvdisplay shows me the physical layout so that I can verify my mirroring configuration.
Steven E. Protter
Exalted Contributor

Re: Is there a VxVM equivalent to lvdisplay?

Shalom,

If I had a choice, I'd ditch vxvm in favor of lvm.

I find my lvm skills from HP-UX serve me well in Linux anyway. One less thing to learn.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kapil Jha
Honored Contributor

Re: Is there a VxVM equivalent to lvdisplay?

No Tony,

Your plex is not mirrored to the 2 subdisks inside it, its mirrored with the other plex
inside the volume.
A plex can be made of more than one subdisks.

v
pl1
sd1-01
sd2-01
pl2
sd1-02
sd2-02
sd3-02

Now here....first column of the vxprint.
Plex 1 (pl1) is made od 2 subdisks
pl2 is from 3 subdisks.

And pl1 and pl2 are mirrored.

BR,
Kapil+
I am in this small bowl, I wane see the real world......