Operating System - HP-UX
1836599 Members
2006 Online
110102 Solutions
New Discussion

lvextend: ''XXX'': No such file or directory

 
SOLVED
Go to solution
Jakes Louw
Trusted Contributor

lvextend: ''XXX'': No such file or directory

Hi guys

I'm trying to lvextend using PVG functionality.
Some of my lvextends worked 100%, some failed with the message I used as the subject:
lvextend: PVG2: No such file or directory

The PVG is a standard PVG as I have created 100s of times using "vgextend -g ....."

The only workaround is to create the LVOLS using zero size as usual, then lvchange to make them PVG-strict (-s g), and then to extend without specifying the PVG name, but this adds an extra step, and when it comes to Mirror/UX functionality, added complexity.

I found 1 match in the forum search, but the thread has been deleted.
Trying is the first step to failure - Homer Simpson
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor
Solution

Re: lvextend: ''XXX'': No such file or directory

Hi Jakes,

Check this doc,

http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063204466

Document description: Lvextend fails with
Document id: KBRC00000708

Regards,
Robert-Jan
G. Vrijhoeven
Honored Contributor

Re: lvextend: ''XXX'': No such file or directory

Hi,

Can you find PVG2 info /etc/lvmpvg?
You can alter this file with vi ( man lvmpvg)

HTH,

Gideon
Jakes Louw
Trusted Contributor

Re: lvextend: ''XXX'': No such file or directory

Robert-Jan: thanks. That's exactly what I'm doing now.

Gideon: of course, VGEXTEND -g xxxx creates /etc/lvmpvg if it does not exist, and modifies the file if it does exist.
I know you can edit it. Did YOU know that you can set up PVG-strict distributed mirroring by allocating disks in a VG to a PVG-set AFTER you have created the VG, by editing LVMPVG?
Trying is the first step to failure - Homer Simpson
G. Vrijhoeven
Honored Contributor

Re: lvextend: ''XXX'': No such file or directory

Hi Jakes,

I know the vgcreate -g creates the /etc/lvmpvg, but i also know this file can get corrupt.

>Did YOU know that you can set up PVG-strict distributed mirroring by allocating disks in a VG to a PVG-set AFTER you have created the VG, by editing LVMPVG?

The strict distributed mirroring is a combinaton of lvol settings.
I would create an lvol with this settings:

lvcreate -D y -r N -s g -m 1

If you did not do this you can use lvchange to correct it. I hope the sollution RJ gave you solved your problem.

Regards,

Gideon