Operating System - HP-UX
1833828 Members
2393 Online
110063 Solutions
New Discussion

Re: More space in File System

 
Flavio Lacks
Frequent Advisor

More space in File System

S.O. HP-UX version 11.11 and JFS online

I need put more space in the file system, and rename other file system, how make this ?

tks
9 REPLIES 9
OldSchool
Honored Contributor

Re: More space in File System

need more information.
which filesystem do you need to add more space to?

what filesystem are you attempting to "rename" (from what -> to what?)
Flavio Lacks
Frequent Advisor

Re: More space in File System

rename file system to name from other name,
mv file-system name file-system name
J. Bravo
Respected Contributor

Re: More space in File System

Hi!

To grow the filesystem, if you have OnlineJFS you could done online with fsadm. If you don't have it, then you need to umount the filesystem and resize it.

With OnlineJFS:

lvextend -L SizeInMB /dev/vgxx/lvolxx
fsadm -b SizeInKB /dev/vgxx/rlvolxx

Without OnlineJFS:

umount /xxxx
lvextend -L SizeInMB /dev/vgxx/lvolxx
extendfs -F vxfs /dev/vgxx/rlvolxx
mount /xxxx (if the mount point exists in /etc/fstab)

To rename a mount point, you need to umount the filesystem before rename it.

Regards;

J. Bravo.
Geoff Wild
Honored Contributor

Re: More space in File System

Well, if there is space in the volume group, then you can grow an lvol. Otherwise, you will need to add more disk/Lun to it first.

Rename a file system?

umount it

update /etc/fstab with what you want it to be.

mkdir the new path.

mount it.

lvextend and fsadm are the commands you need
to increase size of a file system.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
V. Nyga
Honored Contributor

Re: More space in File System

Hi again,

you should have continued your old thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1174871
but ok.

First - rename file system: do you want another name for a directory with a mounted file system - for example /dev/vg00/lvol4 mounted to /tmp ?
Check your /etc/fstab - in this case:
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2

Create a /tmp_tmp then change the line in /etc/fstab: /tmp to /tmp_tmp - then reboot.
After reboot you can (ok you could) remove /tmp (but /tmp is in hp-ux still needed, so it was only an example!)

To extend a logical volume you need to know if you have free disk space:
'vgdisplay /dev/vg'
Under 'Free PE' you see the numbers of free PE blocks.

The simplest would be to go into single user mode, then:
'lvextend -L /dev/vg00/lvol4'
(for the example /tmp !)
'umount /dev/vg00/lvol4'
'extendfs /dev/vg00/lvol4'
'mount -a'

Choose for '4' the number you want, but you can't extend lvol1 (/stand), lvol2 (swap) or lvol3 (/). For this you better use ignite - see the threads already asked here in the forum.

For more help we would need more informations!

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Flavio Lacks
Frequent Advisor

Re: More space in File System

what command for extend file system, whit JFS ?

i put the command :

umount /dev/fs
lvextend -L 2000 /dev/fs

this messages is is not bigger ...

i need extend in 2gb this fs

please help me
OldSchool
Honored Contributor

Re: More space in File System

"lvextend -L 2000 /dev/fs

this messages is is not bigger ..."

2000 will be the new size (total) of the file system (it is not adding 2000 to the existing size). if, for example, you have 1000 and you want to add 2000, then:

lvextend -L 3000 /dev/fs

"man lvextend" for more details
Geoff Wild
Honored Contributor

Re: More space in File System

2GB = 2048 not 2000

lvextend -L 2048 /dev/vgXX/lvolXX

that will make it 2 GB in size

lvextend -L 4096 /dev/vgXX/lvolXX

That will make it 4 GB in size.

Then just run

extendfs /dev/vgXX/rlvolXX

man extendfs will tell you how as well.

Tip: use a calculator to figure out your sizes...

16 X 1024 = 16384 = 16GB

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
V. Nyga
Honored Contributor

Re: More space in File System

Hi again,

you have to extend 'the logiacl volume'
So you know (or have to look in /etc/fstab with 'more /etc/fstab') to which logical volume you directory /dev/fs was mounted.

Geoff has given you the syntax how it should look like - /dev/vgXX/lvolXX .
Do a 'man lvextend' and 'man extendfs' to learn more about this!

Volkmar
*** Say 'Thanks' with Kudos ***