Operating System - HP-UX
1833207 Members
2989 Online
110051 Solutions
New Discussion

Increasing the size of a LV mounted on /

 
Juan Ocasio
Advisor

Increasing the size of a LV mounted on /

Hey all:

I have a dilemna. I have a file system that is mounted on / and I need to increase it's size. If I go into sam and try to do this it says that its mounted and can not be unmounted. This is because it's the root file system. Is there another way to increase the size of this lv? It's only 200MB (I believe the default) and it's 100% used.

Thanks in advanced!

Juan
6 REPLIES 6
Sundar_7
Honored Contributor

Re: Increasing the size of a LV mounted on /

Juan,

Are we talking about the root filesystem ? - Root filesystem cannot be increased online even with Online JFS installed.

1) You will have to re-ignite the system using a recovery tape and increase the / size during the re-installation

2) If you have a spare PV, you can use pvmove to move /dev/vg00/lvol4 to the new PV and increase the /dev/vg00/lvol3 (default root LV).

/dev/vg00/lvol3 is supposed to be contiguous.

- Sundar
Learn What to do ,How to do and more importantly When to do ?
Rick Garland
Honored Contributor

Re: Increasing the size of a LV mounted on /

Since you mentioned unmounting, I am assuming no OnlineJFS. Did you try this in single user mode?

You will need to Ignite the server, making sure you increase size during the process.
Juan Ocasio
Advisor

Re: Increasing the size of a LV mounted on /

Thanks for the reply.

Yes, it is the root file sytem. So the only way I can do this is by re-igniting the system. Is ignite installed by default? I wa told I have to purchase that separately. Also, Sundar, you mentioned 2 bullet points. Is number 2 another way to work around this? If it is can you elaborate on it a bit more? I'm very new to HP UX and UNIX in general (I know enough to be dangerous, as they say).

I was trying to get SAMBA up and running, but when it tried to write to the conf file, it failed due to lack of space.

Thanks
again

Juan
Sundar_7
Honored Contributor

Re: Increasing the size of a LV mounted on /

Juan,

First thing, dont log out now :-) or else you wont be able to login agin without bringing the system down.

Remove some unwanted files from the root filesystem and make some room.

Ignite-UX needs to be installed seperately. But you dont have pay for it. You can download and install for free from software.hp.com.

There is one more way out other than re-igniting the system. But you need to have a spare disk that you can use.

Do you have a spare disk that is already or can be hooked up to the system ?

1) Add the new disk to VG00
2) pvmove /dev/vg00/lvol4 to the new PV
3) lvextend /dev/vg00/lvol3
4) If you have online JFS, you can extend the filesystem online. If not, you need to reboot the system in maintenance mode and extend /dev/vg00/lvol3
5) again pvmove /dev/vg00/lvol4 from new disk back to the old disk

- Sundar

Learn What to do ,How to do and more importantly When to do ?
John Poff
Honored Contributor

Re: Increasing the size of a LV mounted on /

Hi Juan,

Ignite-UX is free. You can get it at this link:

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=IGNITEUXB

Usually Samba/CIFS gets installed in /opt. Do you have a separate filesystem for /opt or is it part of your root filesystem?

JP
Juan Ocasio
Advisor

Re: Increasing the size of a LV mounted on /

All:

Thanks for the speedy responses. I will test the suggestions by Sundar. I have deleted some files that were in my / file system and the created more than enough space. I do want to get the suggestions under my belt, however, soI will be trying the suggestions out.

Thanks again

Juan