Operating System - HP-UX
1753344 Members
5325 Online
108792 Solutions
New Discussion юеВ

Lvextend without Extendfs

 
SOLVED
Go to solution
Bob Ferro
Regular Advisor

Lvextend without Extendfs

I need to clarify something. On Unix Server A (11.23) using SAM, I extend a logical volume while a script was running because the FS was becoming full. I continued to extend just the LV and when I did a BDF, the size was changing on the FS. I noticed on another FS, that it was 100% full(12GB) but when I used SAM to extend that LV upto 25GB, the FS still shows 12GB. This is the same server. I didn't have to use extendfs on the first FS. What can cause this?
14 REPLIES 14
Mel Burslan
Honored Contributor
Solution

Re: Lvextend without Extendfs

It is very hard to tell from the information you have provided. But in order to increase the filesystem size with fsa, you will need some room available. I think 99% full filesystem will do. B, filesystems full to the brim, will refuse to resize to a larger value. Since you are using SAM and not seeing any output or not provided here, it is hard to tell. Try moving a large file from this filesystem to another, temporaryly and try your filesystem extension. See if it works, if not, provide more details here. If it works you can move your file back to where it originally was.

Hope this hepls
________________________________
UNIX because I majored in cryptology...
Lijeesh N G_1
Respected Contributor

Re: Lvextend without Extendfs

Hi,

I think due to the usage of the volume;100%.

Remove some unwanted files from that volume or move to some other volumes and then try to do the extend.

Regards,
LIJEESH N G
Bob Ferro
Regular Advisor

Re: Lvextend without Extendfs

Currently, that FS shows 77% full at 12GB but the LV shows 25GB. I guess my question is why did the first LV increase change the FS too, I didn't have to extend the FS. Is that the way it's supposed to work? Or do you have to do a extendfs?
Roopesh Francis_1
Trusted Contributor

Re: Lvextend without Extendfs

can you post lvdisplay and bdf output of the file system which you need to extend.
if lvdisplay shows 25Gb and bdf shows 12Gb ,you may user fsadm to extend the file systems
#fsadm -F vxfs -b 25850M

Thanks,
Bob Ferro
Regular Advisor

Re: Lvextend without Extendfs

--- Logical volumes ---
LV Name /dev/vgx4/lvol5
VG Name /dev/vgx4
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 25000
Current LE 3125
Allocated PE 3125
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default




Filesystem kbytes used avail %used Mounted on
/dev/vgx4/lvol5 12288000 9344691 2759353 77% /medapps
Roopesh Francis_1
Trusted Contributor

Re: Lvextend without Extendfs

use
fsadm -F vxfs -b 25000M /medapps
to extend the filesystem
Steven E. Protter
Exalted Contributor

Re: Lvextend without Extendfs

Shalom,

frans command requires Online JFS to run.

extendfs requires a umount prior to the command succeeding.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bob Ferro
Regular Advisor

Re: Lvextend without Extendfs

I will but I didn't have to do anything to the other FS to extend it. When you use SAM to extend an LV, does it automatically extend the FS? If so, is that because OnlineJFS is installed?
Lijeesh N G_1
Respected Contributor

Re: Lvextend without Extendfs

Hi,

==>When you use SAM to extend an LV,
does it automatically extend the FS?
Yes, It will extend FS as well if OnlineJFS is installed on your system.

Regards,
LIJEESH N G