Operating System - HP-UX
1832589 Members
3135 Online
110043 Solutions
New Discussion

Extending LV in HP-UX 11.20 ia64 problems

 
Martin Evans_1
New Member

Extending LV in HP-UX 11.20 ia64 problems

We have taken delivery of a new
ia64 machine and installed HP-UX 11.20. /home is way too small. /home appears to be in the rootvg but we cannot appear to increase its size with lvextend. We can't even run vgdisplay:

# /sbin/vgdisplay
vgdisplay: /etc/lvmtab: No such file or directory
vgdisplay: No volume group name could be read from "/etc/lvmtab".

The SAM interface just says can't extend this filesystem because it is the wrong filesystem type - something like vfs-lite.

Any ideas?

Thanks
19 REPLIES 19
nancy rippey
Trusted Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

try running 'vgscan -a'. This will recreate your lvmtab.
nancy
nrip
Uday_S_Ankolekar
Honored Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

Hi,

Run bdf and see where exactly /home is located.

Then run vgdisplay -v /dev/vgname ( By the output of bdf command)

The run lvdisplay -v /dev/vgname/lvolname

Strings /etc/lvmtab will show you the list lvols

If you only free extents left then you can extend the logical volume.

Goodluck,
-USA..
Good Luck..
Helen French
Honored Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

Hi,

Check for the file - /etc/lvmtab. Rename it and then run a 'vgscan -a'. That will restore your lvmtab file, if it is currupted.

HTH,
Shiju
Life is a promise, fulfill it!
harry d brown jr
Honored Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

What version (oe, ...) of 11.20 did you install?

what does vgscan do?

after running vgscan do you have an /etc/lvmtab file?

It sounds like you have a very trimmed down version of the OS. Cab you post the output from swlist as an attachment?

You can't extend Filesystems while they are mounted, unless you have purchased ONlineJFS.


live free or die
harry
Live Free or Die
eran maor
Honored Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

Hi

if the lvmtab is not there just create it with vgscan .

if you have online JFS you need just to increate the logical voulme with lvextnd and then fsadm -b to increase the size of the file system .

love computers
Martin Evans_1
New Member

Re: Extending LV in HP-UX 11.20 ia64 problems

Thanks, but:

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vx/dsk/rootdg/rootvol
204800 75826 120974 39% /
/dev/vx/dsk/rootdg/standvol
307200 34246 255952 12% /stand
/dev/vx/dsk/rootdg/varvol
2578896 101790 2322330 4% /var
/dev/vx/dsk/rootdg/usrvol
1182658 899161 265818 77% /usr
/dev/vx/dsk/rootdg/tmpvol
204800 61057 135401 31% /tmp
/dev/vx/dsk/rootdg/optvol
324245 219418 98305 69% /opt
/dev/vx/dsk/rootdg/homevol
20480 12554 7686 62% /home

# vgdisplay -v /dev/vx/dsk/rootdg/homevol
vgdisplay: /etc/lvmtab: No such file or directory
vgdisplay: No volume group name could be read from "/etc/lvmtab
nancy rippey
Trusted Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

After you run 'vgscan -a' do you have an lvmtab file.
nancy
nrip
Martin Evans_1
New Member

Re: Extending LV in HP-UX 11.20 ia64 problems

vgscan output:

# vgscan -a
Creating "/etc/lvmtab".
vgscan: Physical volume "/dev/dsk/c0t1d0" is not a block special file.
Couldn't stat physical volume "/dev/dsk/c0t0d0":
Invalid argument
Couldn't stat physical volume "/dev/dsk/c0t1d0":
Invalid argument
Physical Volume "/dev/dsk/c2t0d0" contains no LVM information
Physical Volume "/dev/dsk/c2t1d0" contains no LVM information
Physical Volume "/dev/dsk/c2t2d0" contains no LVM information
Physical Volume "/dev/dsk/c2t3d0" contains no LVM information

eran maor
Honored Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

Hi

as you can see all your file system are belong to vxvm and not to lvm to you need to work with the interface of the vxvm to define to unit for the /home .

i m surry that i cant give you a guide line of to do it with vxvm but i will check it out and try to find the rigth answer.

11.20 - nice one
love computers
nancy rippey
Trusted Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

Do you know what disk has the OS loaded. What is the output from 'lvlnboot -v', did you check to see if /etc/lvmtab now exists. If it does you may be okay to increase /home and it may just be complaining about devices it once knew about.
nancy
nrip
Steve Steel
Honored Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

Hi


IA64 True Veritas

The VERITAS name for JFS is VxFS-Lite and the VERITAS name for OnLineJFS is VxFS-Full

the sam has changed for the adjusted commands so use the vgscan -v first then try again.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
eran maor
Honored Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

HI Again .

try to ask some pepole if the 11.20 is avlib. in hp computer and heard that it is on the itanoum ( think that it is like this ) .

i will advise you to go to this link to get all the info that you need .

http://www.docs.hp.com/hpux/os/11iV1.5/index.html

here you will see the menual for it .
love computers
Patrick Wallek
Honored Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

As Eran said, 11.20 does NOT use LVM, it uses VxVM (Veritas Volume Manager). Here are some instructions from Veritas' web site on how to extend VxVM volume:

***********************************

How to grow a volume and file system.


TechNote ID: 187220 Last Updated: February 08 2000 01:15 AM GMT

Caution! The information in this TechNote is based upon certain assumptions, including product, operating system and platform versions. You can review this information in the TechNote Summary portion of this document.
This document (187220) is provided subject to the disclaimer at the end of this document.


--------------------------------------------


Symptom:

How to grow a volume and file system.


Solution:

1) Determine the device name with df -k command:
#df -k
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/rootvol 4030518 1201027 2789186 31% /
/dev/vx/dsk/usr 962134 404374 500032 45% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
/dev/vx/dsk/opt 2877758 443170 2377033 16% /opt
swap 371456 272 371184 1% /tmp
/dev/vx/dsk/datadg/mail 3445728 3132232 313496 81% /mail


2) Determine the file system type with fstyp command:
fstyp

also

fstyp /dev/vx/dsk//

#fstyp /dev/vx/dsk/datadg/mail
vxfs

3) To grow 2g volume and file system to 5g, use the vxresize command:
vxresize -F -g

#vxresize -F vxfs -g rootdg mail 5g

note: will not be accepted with a decimal. The default is sectors unless specified.

*************************************
Martin Evans_1
New Member

Re: Extending LV in HP-UX 11.20 ia64 problems

Thanks, vxsize looks useful but now:

$ ./vxresize -F vxfs -g rootdg homevol 1g
vxvm:vxresize: ERROR: Cannot resize volume homevol (file system type VXFS_LITE)
harry d brown jr
Honored Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

Martin,

You have to umount /home first.

live free or die
harry
Live Free or Die
Helen French
Honored Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

Hi,

You may need to 'umount' the file system first, before changing the size !

HTH,
Shiju
Life is a promise, fulfill it!
Martin Evans_1
New Member

Re: Extending LV in HP-UX 11.20 ia64 problems

Thanks to everyone who helped.
I have never come across vxfs (until now).

umount /home
./vxresize -F vxfs -g rootdg homevol 1g

result:

# df -k
/home (/dev/vx/dsk/rootdg/homevol) : 984096 total allocated Kb
971294 free allocated Kb
12802 used allocated Kb
1 % allocation used
Patrick Wallek
Honored Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

Have a look at the following manual:

http://docs.hp.com/hpux/onlinedocs/B7961-90019/B7961-90019.html

Once there click on 'Volume Manager Commands' and then have a look at the 'vxassist' command. It sounds like this may be what you want.
Patrick Wallek
Honored Contributor

Re: Extending LV in HP-UX 11.20 ia64 problems

Also have a look at:

VERITAS Volume Manager 3.1 Administrator's Guide
http://docs.hp.com/hpux/onlinedocs/B7961-90018/B7961-90018.html

Once there go down to 'Volume Tasks' and then 'Resizing a Volume'

With HP-UX 11.20 (11i v1.5) VxVM is what is used. You really need to read up and familiarize yourself with this as it is a bit different from what you are used to with LVM.