Operating System - HP-UX
1834461 Members
2745 Online
110067 Solutions
New Discussion

Want to Resize the size of logical volume(mount point)

 
SOLVED
Go to solution
Mohammed Ahmed_2
Occasional Advisor

Want to Resize the size of logical volume(mount point)

Hi,
Good Day,

Can any one help me to resize the size of logical Volume(/product/abcxx) coz its size 5 GB and I wanna Increase it to 10 GB.

repaly will be appreciated.
Thanks in Advance.


21 REPLIES 21
Robert-Jan Goossens
Honored Contributor

Re: Want to Resize the size of logical volume(mount point)

Hi,

could you post a bdf and a lvdisplay -v /dev/vgxx/lvolname. Do you have OnlineJFS installed ?

Best regards
Robert-Jan
Mohammed Ahmed_2
Occasional Advisor

Re: Want to Resize the size of logical volume(mount point)

Hi,

The server Configuration is
HP-UX abc-prd B.11.11 U 9000/800

Bye.
MarkSyder
Honored Contributor

Re: Want to Resize the size of logical volume(mount point)

I would do this via SAM.

Disks and filesystems -> logical volumes -> select the LV you want to increase -> actions -> increase size.

You may want to substitute filesystems for logical volumes in the above sequence. That way you will increase the lv and the fs in one go.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Leif Halvarsson_2
Honored Contributor

Re: Want to Resize the size of logical volume(mount point)

Hi,

The easiest way is to use SAM. Satrt SAM, select "Disk and Filesystems", select "Logical Volumes" and then open the "Action" menu. Select "Increase size" from the menu.

If Online JFS is installed, the filesystem is increased online. If not, SAM unmounts the filesystem if it not is in use.
Ernesto Cappello
Trusted Contributor

Re: Want to Resize the size of logical volume(mount point)

Hi Mohammed Ahmed

You must use SAM
1)Select 'Disk and Filesystems'
2)Select 'Logical Volumes'
3)Select 'Action'
4)Select 'Increase size

If you have installed JFS the filesystem is increased online, otherwise SAM unmounts the filesystem if it not is in use.
If the filesystem is in use launch this command:
# fuser filesystem_name
and after kill the porcess.

Regards, Ernesto.
Mohammed Ahmed_2
Occasional Advisor

Re: Want to Resize the size of logical volume(mount point)

Hi
The bdf is here
Filesystem kbytes used
/dev/vg00/lvol3 4194304 1510528
/dev/vg00/lvol1 505392 82320
/dev/vg00/lvol7 5242880 1428392
/dev/vg00/lvol6 2097152 1517616
/dev/vg00/lvol5 1048576 4224
/dev/vg04/lvol1 5120000 4524481

avail %used Mounted on
2664480 36% /
372528 18% /stand
3785096 27% /var
575024 73% /usr
1037728 0% /tmp
559200 89% /product/abcde
and there are many mounted points these are some for reference.
I wanna Increase /product/abcde .
I tried by SAM but in Actions menu there is no sub menu called {Increase Size}.
Please Guide me in some details.
Thanks.
Leif Halvarsson_2
Honored Contributor

Re: Want to Resize the size of logical volume(mount point)

Hi,
In the SAM main window, you must first open "Disk and Filesystem", in thet window you should open "Logical volumes". Highligt the volume you want to increase, then open the "Action " menu. Now, you should find "Increase size".
Jannik
Honored Contributor

Re: Want to Resize the size of logical volume(mount point)

You could use the command prompt:
bdf /product/abcxx
would give info about volume lets say:
/dev/vg01/lvol1

To get info about volume group:
vgdisplay -v vg01
to get info about logical volume
lvdisplay -v /dev/vg01/lvol1 | more

If you don't need to add disk and you have OnlineJFS installed you would be able to online extend volume and then the filesystem:
lvextend -L 10240 /dev/vg01/lvol1
fsadm -F vxfs -b 10485760 /product/abcxx

for more information look at this document:
http://www5.itrc.hp.com/service/iv/node.do?admit=552267591+1108810758895+28353475&node=prodITRC%2FWW_Start%2FN1%7C16%7C11

you want to look at the chapter : Modifying a LV
jaton
Ranjith_5
Honored Contributor

Re: Want to Resize the size of logical volume(mount point)

Hi Ahmed,

===========Extending Filesystem==============

With OnlineJFS:
===================
fsadm -F vxfs -b 10240M /mountpoint

Without OnlineJFS:
=======================
Unmount filesystem
lvextend -L 10240 /dev/vgname/lvname
extendfs -F vxfs /dev/vgname/lvname
Mount filesystem



Checking whether Online jfs product is installed on the system

swlist | grep -i jfs



Regards,
Syam
Mohammed Ahmed_2
Occasional Advisor

Re: Want to Resize the size of logical volume(mount point)

Ernesto Cappello

In sam after entering in to
-sam
-disks and filesystems
-logical volumes
-Actions
in Actions menu i can't find Increase Size sub menu.
Please guide me in detail.
Thanks.
Ranjith_5
Honored Contributor

Re: Want to Resize the size of logical volume(mount point)

command line is very easy ahmed.try the above steps posted.

Regards,
Syam
Leif Halvarsson_2
Honored Contributor

Re: Want to Resize the size of logical volume(mount point)

Hi,

You must highligt the volume you want to increase. Then. the Increase size appears in menu.
Mohammed Ahmed_2
Occasional Advisor

Re: Want to Resize the size of logical volume(mount point)

Hi all,

In Actions menu there is only these sub menus
Actions
â Open Item
â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â
â Go to Top Level
â Add Custom Application...
â Add Custom Application Group...
â ===============================

and I don't have OnlineJFS installed.
thanks.
Mohammed Ahmed_2
Occasional Advisor

Re: Want to Resize the size of logical volume(mount point)

Hi shyam,
Good Day,

Shyam can u please give me the commands in details.
Please shyam guide me.

Thanks.
Gavin Clarke
Trusted Contributor

Re: Want to Resize the size of logical volume(mount point)

Have you actually gone into the
Logical Volumes menu?

I get that menu when I'm in the menu above (Disk and Filesystems)
Robert-Jan Goossens
Honored Contributor

Re: Want to Resize the size of logical volume(mount point)

Ok no online jfs installed.

# fstyp /dev/vg04/lvol1
xvfs or hfs --> use this in your extendfs command
# umount /product/abcde
# lvextend -L 10240 /dev/vg04/lvol1
# extendfs -F vxfs /dev/vg04/rlvol1
whatch the r in rlvol1
# mount /product/abcde

Could be you first need to shutdown your application using /product/abcde
Leif Halvarsson_2
Honored Contributor

Re: Want to Resize the size of logical volume(mount point)

Hi,

Seems as you are at the top level of SAM. SAM is a general tool for system administration, not only for managing filesystems.

You must open the appropriate subwindows in SAM before you can mange your filesystem/LVMs (see my previous posts).
Mohammed Ahmed_2
Occasional Advisor

Re: Want to Resize the size of logical volume(mount point)

Hi all,

I got it "Increase Size" and I did this thanks very very much to all for distrubing.

Thanks Thanks alot again.
Ahmed.
Gavin Clarke
Trusted Contributor

Re: Want to Resize the size of logical volume(mount point)

Leif, yes, that's what I meant to say.

Mohammed Ahmed, navigating through SAM is done with the arrow keys the space bar (to select) and the Enter key (to enter selected menu) and Tab to get to the top menus and back.

Of course you might know all this already, in which case perhaps SAM is doing something odd or you are having display problems and my humblest apologies for not explaining things at the right level.
Gavin Clarke
Trusted Contributor
Solution

Re: Want to Resize the size of logical volume(mount point)

Ah I see all is well anyway.

Cheers.
Ranjith_5
Honored Contributor

Re: Want to Resize the size of logical volume(mount point)

Ahmed,

please copy & paste the fsadm command on your unix shell prompt after changing the mount point name. That will do your work if online jfs is installed.

Else please post the output of the following.

#bdf
#swlist|grep -i jfs

Regards,
Syam