Operating System - HP-UX
1753705 Members
5012 Online
108799 Solutions
New Discussion юеВ

Disks missing from /etc/lvmtab

 
SOLVED
Go to solution
WSS
Frequent Advisor

Disks missing from /etc/lvmtab


Hi All,

I have some disks missing from /etc/lvmtab and need to get them back in there via vgextend etc, but wanted your advice on the best way to do it - This is the output from strings /etc/lvmtab -

root@ugos388# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0s2
/dev/dsk/c3t0d0s2
/dev/vgapp
/dev/dsk/c4t0d1
/dev/dsk/c8t0d1
/dev/vgclwss
/dev/dsk/c4t0d3
/dev/dsk/c4t0d4
/dev/dsk/c4t0d5
/dev/dsk/c4t0d6
/dev/vgclord
/dev/dsk/c4t0d7
/dev/dsk/c8t0d7
root@ugos388#

The volume group /dev/vgclwss should have the alternate disks in the lvmtab, which should be /dev/dsk/c8 ...

Can someone tell me how to identify the 4 disks that need to be put into the /etc/lvmtab file and the syntax to do that.

Thanks alot
Trev
16 REPLIES 16
Ninad_1
Honored Contributor

Re: Disks missing from /etc/lvmtab

Hi,

When you say the alternate disks are missing - do you mean the disks shown in vgdisplay -v output as Alternate Link ?
Then they will not show in the lvmtab as they are just differnt path to same disk.
Regards,
Ninad
James R. Ferguson
Acclaimed Contributor

Re: Disks missing from /etc/lvmtab

Hi Trev:

First, one does not edit '/etc/lvmtab'. It is a binary file maintained by 'vgscan', 'vgextend', 'vgreduce', 'vgimport' and 'vgexport'.

If you want to add alternate links (pvlinks) to the volume group "/dev/vgclwss", use 'vgextend':

# vgextend /dev/vgclwss /dev/dsk/cXtYdZ

Regards!

...JRF...
HGN
Honored Contributor

Re: Disks missing from /etc/lvmtab

Hi

The alternate disks will not show up on the /etc/lvmtab file.

Rgds

HGN
Victor Fridyev
Honored Contributor
Solution

Re: Disks missing from /etc/lvmtab

Hi,

AFAIK, the simplest way to see alternate pth disks in /etc/lvmtab is to add the disks to volume group.

If the alternate path is dev/dsk/c8t0 , then the needed command is
vgextend /dev/vgclwss dev/dsk/c8t0d3 /dev/dsk/c8t0d4 /dev/dsk/c8t0d5 /dev/dsk/c8t0d6

HTH

Entities are not to be multiplied beyond necessity - RTFM
Josiah Henline
Valued Contributor

Re: Disks missing from /etc/lvmtab

Both the primary link and the alternate link should be included in the VG and the lvmtab.

If you are not sure and are not on a clustered system, you could do the following steps:

mv /etc/lvmtab /etc/lvmtab.bak
vgscan -v # This will take awhile to run
strings /etc/lvmtab
#You should see the pvlinks in the vgdisplay and the lvmtab
vgchange -a y /dev/vgclwss
vgdisplay -v /dev/vgclwss

If you have a way to find out which devices are suppose to be the alternate links, you can simply vgextend them into the VG.

vgextend /dev/vgclwss /dev/dsk/cXtXdX
If at first you don't succeed, read the man page.
Ninad_1
Honored Contributor

Re: Disks missing from /etc/lvmtab

WSS,

Sorry - the disks should be visible in /etc/lvmtab.
And you can add those disks using vgextend vgname disk1 disk2 ..
No points for my posts please.

Regards,
Ninad
Darrel Louis
Honored Contributor

Re: Disks missing from /etc/lvmtab

Hi,

Before using vgextend check with pvdisplay -v /dev/dsk/c8t?d? if the disk belongs to a Volume Group.

Darrel
Sivakumar TS
Honored Contributor

Re: Disks missing from /etc/lvmtab

Hi,

to rescan and recreate the /etc/lvmtab,

do move the existing lvmtab and rin #vgscan

Regards,

Siva.
Nothing is Impossible !
Enrico P.
Honored Contributor

Re: Disks missing from /etc/lvmtab

Hi,
if the commmand

vgdisplay -v /dev/vgclwss

not shows the Alternate Link disk, Es:

PV Name /dev/dsk/c6t3d4
PV Name /dev/dsk/c4t4d3 Alternate Link

You need to add them:

vgextend /dev/vgclwss /dev/dsk/c8t0d3 /dev/dsk/c8t0d4 /dev/dsk/c8t0d5 /dev/dsk/c8t0d6

and

strings /etc/lvmtab should to show them

If the vgdisplay show them and lvmtan not show them, you need to run the vgscan command:

mv /etc/lvmtab /etc/lvmtab.old
vgscan -a -v -p (preview)
then
vgscan -a -v

Enrico