Operating System - HP-UX
1834483 Members
2804 Online
110067 Solutions
New Discussion

Re: How to check whether a disk is part of VxVM

 
SOLVED
Go to solution
sreekanthtm
Trusted Contributor

How to check whether a disk is part of VxVM

In my scenario, I have presented 10 LUNs from SAN to 2 servers. Both are running HPUX. Iam using veritas as well as LVM. 5 Disk used to create veritas disk grp from 1st srvr, and other 5disk used to create LVM. Now from the 2nd srvr, (veritas volume mngr is not installed) how can I check whether the disk is part of VxVM?
I have to run one script, and have to exclude those which is part of VxVM.
5 REPLIES 5
TTr
Honored Contributor

Re: How to check whether a disk is part of VxVM

Which disk array are you using?

Typically the disk array manufacturer provides a utility that you install on the server and you use this utility to get a listing that contains the LUN names or IDs and the server device files for each LUN.
Ivan Krastev
Honored Contributor

Re: How to check whether a disk is part of VxVM

Take a LVM headers for one of the LVM disks on node1:
for example:
# xd -j8200 -N16 -tu /dev/rdsk/c1t2d0
0000000 2000252410 965817345 2000252410 965817462

After that check on the second node VG ID's on all the 10 disks.

regards,
ivan
sreekanthtm
Trusted Contributor

Re: How to check whether a disk is part of VxVM

Like LVM header is there anythihng for VxVM.
What is the command to display the VxVM header, and how can we list those disks, perticularly in a server, where VxVM is not installed?
Hasan  Atasoy
Honored Contributor

Re: How to check whether a disk is part of VxVM

hi ;

vxdisk list will print vxdisk information on the disk or

vxdisk scandisks
vxdisk -o alldgs list


Hasan
Mridul Shrivastava
Honored Contributor
Solution

Re: How to check whether a disk is part of VxVM

>> Hasan

The commands mentioned are vxvm commands and they will work only if VxVm is installed.

>> Sreekanth
VxVM and LVM are different, however you will find docs correlating the terms used in LVM and VxVM.
As far as I know base VxVM product comes for free so you could install that on the other server and initialise the vxvm. Hence it would be easy for you to list the disks managed by VxVM using the commands mentioned by Hasan above.
Time has a wonderful way of weeding out the trivial