Operating System - HP-UX
1837985 Members
2874 Online
110124 Solutions
New Discussion

Re: increase the size of /

 
SOLVED
Go to solution
Pelephone System
Frequent Advisor

increase the size of /

Hi to all
I would like to know if i can increase the size of / in single user mode?
HPUX sysadmin
14 REPLIES 14
RAC_1
Honored Contributor
Solution

Re: increase the size of /

The partitions /stand, swap and / have to be continuous. First check whay you need to increase /. / is the static partiton and should grow. On my 11.11 superdome it is 500MB and is at 54 % since installation.

Check /var is seperate partition or is on /.

For resizing / you will have to use ignite.

During ignite recovery it gives you the option of resining partitions.
There is no substitute to HARDWORK
Elmar P. Kolkman
Honored Contributor

Re: increase the size of /

Last week this was discussed too. It is tricky, because / needs to be contiguous.
And you need free PE in vg00 for this.
Every problem has at least one solution. Only some solutions are harder to find.
DGH_2
Valued Contributor

Re: increase the size of /

Hi,
it cannot be done in single user mode.
you have to use ignite or reinstall HP-ux and do a restore.
DGH
KCS_1
Respected Contributor

Re: increase the size of /

Hi,

You can increase the size of / file system as long as installed Advanced JFS product called the OnlineJFS on your system without system down time, however there isn't the software, no method to increase the / file system. Just it can do it trough make_recovery tape or cold installation from CD-ROM.

# swlist -l product |grep -i onlineJFS*


Thanks.


Easy going at all.
Rupesh_1
Occasional Advisor

Re: increase the size of /

Hi ,
i very much agree with Patric and RAC. It is a bit risky to touch / fs that too provided you have enough of free space on your root VG.

Firstly i would suggest you to check for your Files and DIR which are mounted over root. As try moving things which can be moved to a nother FS and also check out for /tmp,/etc,/opt and /var to be mounted seperate.. these things can add on more space for you.

Even if these things dont work out .. i guess the best solution is ignite

Cheers
Rups
Thierry Poels_1
Honored Contributor

Re: increase the size of /

hi,

another option is obviously to move some files/dirs to a separate file system (if possible).

Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Rasheed Tamton
Honored Contributor

Re: increase the size of /

First like Rup said, if /var and other big dirs are in the root fs, it is always wise to create separate fs for those big dirs. and better than trying to extend the root fs. You can check it by e.g., cd /var and typing bdf . (bdf dot)

If those are already separate FSs and if you have enough Free PEs in the vg00 (first vg), the best and easy way is to make an ignite with interactive option(make_recovery -ivC or make_tape_recovery) tape and reboot the system using the same tape. When it boots from the tape you will get a menu and you can easily increase the root fs.

Rasheed.
TSaliba
Trusted Contributor

Re: increase the size of /

hi
may be there is a methode:
first decrease the size of the swap
then incease the size of /

and if you have space on other volume group, you can create a swap filesystem
jj
Bruno Ganino
Honored Contributor

Re: increase the size of /

I have found this description.
Look it in attachment.
It is useful ???
Bye
Bruno
Torino (Turin) +2H
Denver Osborn
Honored Contributor

Re: increase the size of /

A safe method to increase / is to use an Ignite-UX recovery tape. One other way to do it, if you feel you know what you're doing :)...

root has to be contiguous, and assuming you have online jfs and your root VG is similar to...

lvol1 stand
lvol2 swap
lvol3 root
lvol4 tmp

then you could boot to boot to single user mode, reduce /tmp to 0... increase /, then extend and newfs /tmp.

If the lvol following root is tmp, then this should be easy enough to do... if the lvol following root is /var or /opt, I wouldn't waste time trying. Use a recovery tape.

-Denver
Adam Vollmar
Occasional Advisor

Re: increase the size of /

Hi,

there may be another method, if you are using Mirror/UX. You can reduce the mirrors after the / fs from the primary disk; after that you have space to increase the lvol/filesystem. When it's done, you can rebuild the mirror.

regards
Adam
doug mielke
Respected Contributor

Re: increase the size of /

To add to Thierry's option. You could add some links to / and move the dirs elsewhere.
My / has almost nothing in it except links and mount points.

(occasionally, if something gets unmounted, or a super user makes a path mistake, we accidently fill / with data that should be elsewhere. In the event of a mount problem, space can be consumed in a mount point (directory) then hidden once a filesystem is mounted over it. You'll never see the underlying data, but it still consumes space)
Lorenzo Facello
Valued Contributor

Re: increase the size of /

If you can use online JFS with the command
fsadm -F typefs -b sizeKB mountpoint
But I think is better use Ignite.
Look at the PV available with
vgdisplay -v vg00
if you want launch a make_tape_recovery -A
and reboot with the tape
When tape starts choose advanced install
and changes the filesystem
that you want.
Hope this help
L
erics_1
Honored Contributor

Re: increase the size of /

DBK,

I wanted to post to this thread and explain why your post was deleted. Please refrain from posting ITRC documents on the forums. I apologize but was not able to just delete the attachment.

Respectfully,
Eric