1834249 Members
1911 Online
110066 Solutions
New Discussion

Extend filesystem

 
vat
Advisor

Extend filesystem

Dear All,

O/S : HP-UX 11.31

We have two servers which are in cluster and sharing the disk space from EVA.

I have attached the output pf bdf and vgdisplay command.


I want to extend follwing filesystem from
2 GB to 10 GB

/dev/vg02/lvol5 -- /oracle/PRD

I request you please guide me for the same.

As I am new to HP unix step by step guidance will be helpful to me either using command line or SAM.
6 REPLIES 6
Ivan Krastev
Honored Contributor

Re: Extend filesystem

Just increase the logical volume with lvextend - you have 13568MB available.

#lvextend -L 10240M /dev/vg02/lvol5

and if you have OnlineJFS - extend file system without unmount:

#fsadm -f vxfs -b 10240M /oracle/PRD


regards,
ivan
vat
Advisor

Re: Extend filesystem

Thanks for your quick response.

We don't have online JFS.

So I will proceed with following steps

1. lvextend -L 10240M /dev/vg02/lvol5
2. umount dev/vg02/lvol5

3. mount dev/vg02/lvol5 /oracle/PRD


I have confusion related to cluster. Two servers which are in cluster are sharing this filesystem.

whether i have to include some steps for the same?

Idham
Frequent Advisor

Re: Extend filesystem

How if we have the online jFS..
but when issue the below command

#vxlicense -p

shows that ..the JFS is not licensed..can we proceed with fsadm?
Johnson Punniyalingam
Honored Contributor

Re: Extend filesystem

Hi Vat,

IF you d'not have ONLINE _JFS .. :) no choice dude .. :( you have to umount and extendfs

Questions:-

/dev/vg02/lvol5 -- /oracle/PRD --> its part of your cluster "Package" ..?

if (Yes ) you need halt the pkg and follow as per below

# cmhaltpkg -v -n

(package will be halted)

than proceed to lvextend

# vgchange -c n /dev/vg02

# vgchange -a y /dev/vg02

# lvextend -L /dev/vg02/lvol5

# extendfs -F vxfs /dev/vg02/rlvol5

# vgchange -a n /dev/vg02

# vgchange -c y /dev/vg02

# cmrunpkg -n -v

# cmmodpkg -e


Hi Idham,

>>> How if we have the online jFS..
but when issue the below command

#vxlicense -p

shows that ..the JFS is not licensed..can we proceed with fsadm? <<<

if is not licensed , you can't do fsadm ,

may be you can try your Luck .. :)

# vxenablef -a
# vxenablef


Thanks,
Johnson

(Guys last but not least assign points .. :)

Problems are common to all, but attitude makes the difference
Stephen Doud
Honored Contributor

Re: Extend filesystem

Old Online JFS licenses have expired. If swisntall shows Online JFS is installed, determine whether Online JFS is still active. When this feature was originally included in HP-UX, the license was set to expire in June 2007.

# vxlicrep

Creating a report on all VERITAS products installed on this system

-----------------***********************-----------------

License Key = 010449565889805115946529
Product Name = VERITAS File System
License Type = DEMO <<----
Site License = YES

Features :=
HP_OnlineJFS = Disabled <<----

2. To update the Online JFS license from "expired/DEMO" to
"active/Permanent", reinstall the B3929CA product from the Application CD/DVD media.

Per http://www.hp.com/softwarereleases/releases-media2/media/5013-4941.htm
the product is on CD #1

CPL Product: B3929CA
Codeword Req.: Yes
Size: 4239
Description: HP OnLineJFS

NOTE that the swinstall will not interfere with critical application activities, nor will it require a reboot.

If necessary, use the http://licensing.hp.com website to acquire a codeword.


And don't forget to grow the file system after growing the logical volume!
vat
Advisor

Re: Extend filesystem

Thanks to all

I have increse the size of filesystem as suggested by Johnson Punniyalingam.