1850876 Members
2590 Online
104056 Solutions
New Discussion

Re: /var and /tmp

 
hpuxhelp
Regular Advisor

/var and /tmp

need to increase the size of these filesystems, can we accomplish this without boot into single user?
13 REPLIES 13
John Poff
Honored Contributor

Re: /var and /tmp

Hi,

You can do it if you have OnlineJFS installed.

JP
hpuxhelp
Regular Advisor

Re: /var and /tmp

NO JFS
and it is 10.20
Paul Sperry
Honored Contributor

Re: /var and /tmp

only if you have OnlineJFS installed
otherwise a re-boot is requited.
Patrick Wallek
Honored Contributor

Re: /var and /tmp

As with anything else in *nix, the answer is: It Depends!

The first question we need answered is: Do you have Online/JFS installed on this machine?

If you do, then yes, this can easily be done without going into single user mode.

If you do not have Online/JFS installed, the easiest way will be to boot into single user mode to increase those LVOLs.



Pete Randall
Outstanding Contributor

Re: /var and /tmp

You can also create new file systems (if you have the space available), copy the contents of /var and /tmp into their new larger locations, switch the mounts in /etc/fstab and reboot.

Pete

Pete
Paul Sperry
Honored Contributor

Re: /var and /tmp

for 10.20 I agree with Pete. I would do the following (if you have the space)

add new lvm var2
cd var
find . ???print | cpio ???pcxvdmu /var2
edit fstab comment out var and change var2 to var
reboot
remove unused volumes.
Paul Sperry
Honored Contributor

Re: /var and /tmp

for 10.20 I agree with Pete. I would do the following (if you have the space)

add new lvm var2
cd /var
find . ???print | cpio ???pcxvdmu /var2
edit fstab comment out var and change var2 to var
reboot
remove unused volumes.
Uday_S_Ankolekar
Honored Contributor

Re: /var and /tmp

No .. You need to goto single user mode to do this since you don't have Online JFS.

Boot the system in single user mode

then use lvextend and extendfs to increase the file system.

#lvextend -L /dev/vgnn/lvolnn
#extendfs /dev/vgnn/rlvolnn

-USA..
Good Luck..
hpuxhelp
Regular Advisor

Re: /var and /tmp

No online JFS... :) if we have online JFS , we would use fsadm ... :)
John Poff
Honored Contributor

Re: /var and /tmp

Hi,

No OnlineJFS? It's off to single-user land for you then.

Good luck!

JP
Anthony deRito
Respected Contributor

Re: /var and /tmp


1. Create your new filesystems for /var/and /tmp.

2. Create your new mount points: /new_var /new_tmp

3. Shutdown to single-user mode: shutdown 0

4. mount filesystems, /var /new_var /tmp /new_tmp

5. Copy the entire original filesystem to the new locations:

#cd /tmp
#find . -xdev -depth -print | cpio -pxdmv /new_tmp

#cd /var
#find . -xdev -depth -print | cpio -pxdmv /new_var

6. Edit the /etc/fstab file to reflect the new filesytems.

7. Reboot the system.
#reboot





harry d brown jr
Honored Contributor

Re: /var and /tmp

Without online JFS you are out of luck. You will need to do it from single user mode by first shutting down and then booting into single use

hpux -is

live free or die
harry
Live Free or Die
Martin Johnson
Honored Contributor

Re: /var and /tmp

You could use Ignite to backup your root file systems, then do an interactive restore where you resize /var and /tmp.

This will take longer than going into single user mode and exending the lvols and file systems, but it is more user friendly if you are uncomfortable extending things yourself.

HTH
Marty