Re: LVM Mount point

 
SOLVED
Go to solution
Ed Rockhold
Occasional Contributor

LVM Mount point

We lost the main OS drive on an old C3000 system running HP-UX 10.2 doing online production testing. We have an external disk box with 4 scsi dives configured by logical volume manager. how can I determine how they where configured and mounted?
5 REPLIES 5
TTr
Honored Contributor
Solution

Re: LVM Mount point

You can connect the external disk box to another server. Ensure the SCSI interface is of the same type and if there are existing disks on taht interface, there are no SCSI ID conflicts.

Run ioscan and insf -e to recognize disks and create device files.

run the command "vgscan -apv". The -p makes this command nondestructive. It runs in preview mode. You will get output that looks like this


xxxxxxxx:/># vgscan -apv
vgscan: The physical volume "/dev/dsk/c2t5d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t6d0" is already recorded in the "/etc/lvmtab" file.
Physical Volume "/dev/dsk/c0t0d0" contains no LVM information


/dev/vg00
/dev/dsk/c2t5d0
/dev/dsk/c2t6d0

The first messages pertain to the existing disks. Then below those you will see the existing and non existing volume group information. You should be able to recognize the new disk devices and the volume group or groups that they belong.

Then you follow the standard procedure to create and import the new volume groups, create mount points, fsck (be careful with the filesystem type) and mount.

Read "man vgscan" and pay much attention to the Description section. Also "man vgimport".
Ed Rockhold
Occasional Contributor

Re: LVM Mount point

Thanks for the Info. I ran the commands and got the following output

#vgscan -apv

/dev/vg00
/dev/dsk/c0t6d0


Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c0t9d0

Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c0t10d0

Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c0t12d0

Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c0t13d0

Are all these disks part of the same logical volume.
Tim Nelson
Honored Contributor

Re: LVM Mount point

use vgimport on one of the devices and see if it complains about the other missing three.

Once you import you can vgdisplay -v to see the lvols and how it was configured.

Ed Rockhold
Occasional Contributor

Re: LVM Mount point

Thanks for the info, the OS is running and the disks are mounted.
YAQUB_1
Respected Contributor

Re: LVM Mount point

Hi Ed,

Assign some points, who provide the solution. He deserves this.

BR/
Yaqub