Operating System - HP-UX
1838670 Members
5890 Online
110128 Solutions
New Discussion

Logical Volume size increase

 
SOLVED
Go to solution
Nyck_1
Super Advisor

Logical Volume size increase

I have a logical volume that is 100GB in size and I want to increase the size of it. So first attempt I used sam and it would not allow me to increase the size, there was 19GB left of available space. So I tried command line instead and i got the following error:-

lvextend -L 110000 /dev/vg_p400/lv_proj
Warning: rounding up logical volume size to extent boundary at size "110016" MB.
lvextend: "LogicalExtentsNumber" is not bigger than current setting.

This I thought was a bit strange so I then ran the extendfs command and it ran for a while and finished with no errors. Then I remounted the file system that I was trying to increase and below is the result:-

bdf /proj
Filesystem kbytes used avail %used Mounted on
/dev/vg_p400/lv_proj
122650624 69931579 49442692 59% /proj

From the result above it looks like the increase using sam did work. Can someone explain what is going on here please?
9 REPLIES 9
Ganesan R
Honored Contributor
Solution

Re: Logical Volume size increase

Hi,

Did you get any error while try to extend the lv using SAM? How did you confirm that SAM didn't allow to increase the LV.

The current LV size is approx 116GB. That is the reason why lvextend command didn't allow you to extend with lesser than current size.

you should have checked lvdisplay output after using SAM to extend it. As far as LVM is concern SAM may not provide errors or message at times. That is why it is preferred to do LVM activities through command line.

Now what you need at this stage? The filesystem is already extended.
Best wishes,

Ganesh.
Nyck_1
Super Advisor

Re: Logical Volume size increase

There was an error when I first attempted to increase the size of this file system using sam but I cannot remember what it was as I was in a rush. Is there a sam log somewhere on the system that I could look at?

Vivek Bhatia
Trusted Contributor

Re: Logical Volume size increase

Hi,

You can have a look at the log present at this location.

/var/sam/log/samlog

Thanks
Vivek Bhatia
Nyck_1
Super Advisor

Re: Logical Volume size increase

Well the file system is now at the size I required, not 100% sure what I was doing but in the future I will stick to command line as you know where you are with it!

cheers
Vivek Bhatia
Trusted Contributor

Re: Logical Volume size increase

Hello,

Please use the following procedure for extening the logical volume and the filesystem.

Example: Extend the file system in /dev/vg01/data to fill the 32 MB logical volume.
(extend the logical volume containing the file system)

# fsadm â F vxfs â b 32M /data
# bdf /data


Regards,
Vivek Bhatia
Ganesan R
Honored Contributor

Re: Logical Volume size increase

Hi,

You can use this command to view the SAM log,

#/usr/sam/bin/samlog_viewer
Best wishes,

Ganesh.
Nyck_1
Super Advisor

Re: Logical Volume size increase

The way I extended it cmd was as follows:-

lvextend -L /dev/vg_p400/lv_proj
extendfs /dev/vg_vg_p400/rlv_proj

This is the usual way that I do this, is this not correct?
Nyck_1
Super Advisor

Re: Logical Volume size increase

That samlog gui is rather nice:-)

Below is the error message I got when I first attempted to increase the size of /proj via sam:-

Command completed with exit status 32

The command used to resize a VxFS file system has failed. The stderr output from the command is shown below/
UX:vxfs fsadm: ERROR V-3-20279: /proj is not the root inode of a vxfs file system.

I have had issues before using SAM on this server and I believe the latest SAM patch should fix this. The server in question is an rx6600 running 11.23, could you advise me on the latest sam patch?
Ganesan R
Honored Contributor

Re: Logical Volume size increase

Hi,

There are two ways we can extend the filesystem. One is with the help of extendfs command. but that needs filesystem should be unmounted. it is considered to be offline.

Another method is online filesystem extension where we can extend without unmounting the FS. We need online JFS product should be installed to achieve this.
To check online JFS is install use the command
#swlist -l product |grep -i online

Commands to extend the fs online,
# lvextend â L
# fsadm â F vxfs â b

Regarding SAM patch on 11.23 these are the latest one.

PHCO_34974 --> HP recommanded
PHCO_38185 --> Most recent

You can install either of the one.
Best wishes,

Ganesh.