Operating System - HP-UX
1836636 Members
1835 Online
110102 Solutions
New Discussion

Re: How to increase the filesystem with Online JFS?

 
SOLVED
Go to solution
Gulam Mohiuddin
Regular Advisor

How to increase the filesystem with Online JFS?

I would like to online extend the existing filesystem to 6GB more with OnlineJFS.

The filesystem /exports is mounted on /dev/vg02/lvol18.

--- Logical volumes ---
LV Name /dev/vg02/lvol18
LV Status available/syncd
LV Size (Mbytes) 8128
Current LE 2032
Allocated PE 2032
Used PV 1

rpludb02:/#bdf /exports
Filesystem kbytes used avail %used Mounted on
/dev/vg02/lvol18 8323072 5110822 3011494 63% /exports

Thanks,

Gulam.
Everyday Learning.
11 REPLIES 11
Patrick Wallek
Honored Contributor
Solution

Re: How to increase the filesystem with Online JFS?


# lvextend -L 14000 /dev/vg02/lvol18

# fsadm -b 14000m /exports

# bdf /exports

You are now done.
Steven E. Protter
Exalted Contributor

Re: How to increase the filesystem with Online JFS?

fsadm -F fstype -B
fsadm -F vxfs -B 60000 /dev/vg02/lvol10

Can not be used to expand root fs

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
Steven E. Protter
Exalted Contributor

Re: How to increase the filesystem with Online JFS?

Typo alert. My post should have said lower case -b. Apologies.

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
Leif Halvarsson_2
Honored Contributor

Re: How to increase the filesystem with Online JFS?

Hi,
The easiest way is to use SAM. Start SAM, select "Disks and Filesystems", select "Logical Volumes", select the locical volume you want to extend and then select "Increase size" from the Actions menu.
Gulam Mohiuddin
Regular Advisor

Re: How to increase the filesystem with Online JFS?

I did as mentioned above but got the following message. It didn't increase the filesystem size?


rpludb02:/#fsadm -F vxfs -b 8192m /exports
vxfs fsadm: /dev/vg02/rlvol18 is currently 8323072 sectors - size will be increased
rpludb02:/#
rpludb02:/#bdf /exports
Filesystem kbytes used avail %used Mounted on
/dev/vg02/lvol18 8388608 5110838 3072919 62% /exports

Gulam.
Everyday Learning.
Patrick Wallek
Honored Contributor

Re: How to increase the filesystem with Online JFS?

YOu didn't follow my post. You HAVE to do an 'lvextend' FIRST. BEFORE you try an fsadm.

Look at my post again and follow it. Note that the numbers I mention are the NEW SIZE you want the filesystem and LV to be.
Alex Lavrov.
Honored Contributor

Re: How to increase the filesystem with Online JFS?

Did you extend the logical volume?

First of all you should extend lvol, as it was posted above with "lvextend" command and then use fsadm, to extend the file system.

Lvol must be equal or bigger than file system
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Gulam Mohiuddin
Regular Advisor

Re: How to increase the filesystem with Online JFS?

Yes, I did the same as instructed, see:

rpludb02:/#bdf /exports
Filesystem kbytes used avail %used Mounted on
/dev/vg02/lvol18 8323072 5110822 3011494 63% /exports
rpludb02:/#lvextend -L 8192 /dev/vg02/lvol18
Logical volume "/dev/vg02/lvol18" has been successfully extended.
Volume Group configuration for /dev/vg02 has been saved in /etc/lvmconf/vg02.conf
rpludb02:/#fsadm -F vxfs -b 8192m /exports
vxfs fsadm: /dev/vg02/rlvol18 is currently 8323072 sectors - size will be increased
rpludb02:/#
rpludb02:/#bdf /exports
Filesystem kbytes used avail %used Mounted on
/dev/vg02/lvol18 8388608 5110838 3072919 62% /exports

Gulam
Everyday Learning.
Patrick Wallek
Honored Contributor

Re: How to increase the filesystem with Online JFS?

You only expanded it from 8,128 MB to 8,192 MB. YOu said you wanted an additional 6,000 MB, which would be a total of about 14,000 MB.

You need to re-run the commands with the correct size information.
Bharat Katkar
Honored Contributor

Re: How to increase the filesystem with Online JFS?

see if the link below helps...
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=487407
Regards,
You need to know a lot to actually know how little you know
Gulam Mohiuddin
Regular Advisor

Re: How to increase the filesystem with Online JFS?

It worked now.

Thanks to all of you for quick help.

Gulam.


rpludb02:/var/adm/syslog#bdf /exports
Filesystem kbytes used avail %used Mounted on
/dev/vg02/lvol18 8388608 5063686 3117124 62% /exports
rpludb02:/var/adm/syslog#lvextend -L 16384 /dev/vg02/lvol18
rpludb02:/var/adm/syslog#lvextend -L 16384 /dev/vg02/lvol18
Logical volume "/dev/vg02/lvol18" has been successfully extended.
Volume Group configuration for /dev/vg02 has been saved in /etc/lvmconf/vg02.conf
rpludb02:/var/adm/syslog#fsadm -F vxfs -b 16384m /exports
vxfs fsadm: /dev/vg02/rlvol18 is currently 8388608 sectors - size will be increased
rpludb02:/var/adm/syslog#bdf /exports
Filesystem kbytes used avail %used Mounted on
/dev/vg02/lvol18 16777216 5065742 10979517 32% /exports


Gulam.
Everyday Learning.