Operating System - HP-UX
1829740 Members
1522 Online
109992 Solutions
New Discussion

Command to increase the size of the filesystem

 
SOLVED
Go to solution
Becke
Super Advisor

Command to increase the size of the filesystem

Hi Guys,

What's the command to increase the size of the filesystem in HP. In AIX we use chfs command on the command line, what is it in HP-UX to increase it on the command line.

Cheers...
Raf
7 REPLIES 7
Muthukumar_5
Honored Contributor
Solution

Re: Command to increase the size of the filesystem

Check this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=868637

You have to use lvextend to exntend the size of logical volume.

hth.
Easy to suggest when don't know about the problem!
Ermin Borovac
Honored Contributor

Re: Command to increase the size of the filesystem

If you don't have OnlineJFS (product that gives you ability to resize online) then follow the following steps.

/* extend logical volume */
# lvextend -L /dev/vgxx/lvolxx
# umount /dev/vgxx/lvolxx
/* extend filesystem */
# extendfs /dev/vgxx/rlvolxx
# mount /dev/vgxx/lvolxx

With OnlineJFS the steps are following

# lvextend -L /dev/vgxx/lvolxx
# fsadm -b M
Adisuria Wangsadinata_1
Honored Contributor

Re: Command to increase the size of the filesystem

Hi Raf,

You need to check it first on your system whether you have an OnlineJFS or not. If you have this software, your life will be easier.

Check the document-ID : KBRC00003170 or at this url below :

http://www6.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063201067

This document will give you the information about 'How to extend a filesystem using Online JFS, Base JFS or HFS'.

If you dont have OnlineJFS file system; to extend / and /stand file system, you need to use Ignite/UX for this purpose. Since these file system in continous file system.

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Joseph Loo
Honored Contributor

Re: Command to increase the size of the filesystem

hi,

i think u should first look at the points u have assigned. 2 out of 51 (and counting) is not good.

show your appreciation to those who have assisted u in finding your answers.

regards.
what you do not see does not mean you should not believe
Becke
Super Advisor

Re: Command to increase the size of the filesystem

Hi Guys,

Thanks a lot to all of you to assist me, I had to leave early from work other day, had an appointment at the dentist.

I will follow your instructions and will get back to you. I'm pretty sure that the info you all have provided would be enough to sort it out.

Thanks a million.

Regards,
Raf
Nguyen Anh Tien
Honored Contributor

Re: Command to increase the size of the filesystem

for example U want to extend /tmp
1,check current size
#bdf /tmp
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol8 159744 139194 19624 88% /tmp
2, Extend the logical volume to 256MB:

#lvextend -L 256 /dev/vg00/lvol8

3. Extend the filesystem:

#fsadm -b 256M /tmp
that's ALL
HTH
tienna
HP is simple
Becke
Super Advisor

Re: Command to increase the size of the filesystem

Thanks for your assistance mate, it now looks fairly easy after your and everyone else's assistance. Actually my main expertise in in AIX and I'm learning HP along the way...

Thanks to and everyone else for providing such a good support and help...