1829473 Members
1390 Online
109991 Solutions
New Discussion

Extending filesystems

 
SOLVED
Go to solution
Nick Tarmey
Occasional Contributor

Extending filesystems

Hi,

Can anyone tell me if it is possible to extend the /var and / filesystems? I've tried bringing the machine into single user mode and running the lvextend command but alak alas no joy! By the way I'm using HPUX 11.00.

Any help appreciated

Thanks

Nick
5 REPLIES 5
Printaporn_1
Esteemed Contributor

Re: Extending filesystems

Hi,

Yes , you can extend /var but not /
in single user

- lvextend then extendfs
enjoy any little thing in my life
Vincenzo Restuccia
Honored Contributor

Re: Extending filesystems

In single user you can't extend / beaucouse is contiguous with swap and stand,(also its);for /usr cp -p lvextend and extendfs in /.
MARTINACHE
Respected Contributor
Solution

Re: Extending filesystems

Hi,

You can do it too with Ignite.

1) create a recovery tape
make_recovery -ACi -d /dev/rmt/...

2) boot from tape

3) modify lvol size via ignite menu

4) restore vg00 from ignite tape

5) boot from disk

6) mirror vg00 if needed

Regards,

Patrice.
Patrice MARTINACHE
CHRIS_ANORUO
Honored Contributor

Re: Extending filesystems

You can only extend /(root) with the make_recovery tape (Ignite-UX boot tape). To extend /var, use these steps:

1. Note down the VG and lvol number and backup the filesystem (/var).
2. Boot to single user mode to unmount the filesystems
including /var
3. lvextend -L SIZE(in MB) /dev/vgxx/lvolx
4.extendfs -F vxfs /dev/vgxx/rlvolx
5.mount /dev/vgxx/lvolx /var
6. Restore the backup
7. Reboot the system.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Insu Kim
Honored Contributor

Re: Extending filesystems

You can't extend /var by bringing the system into single user mode bacause /var will not be umounted.

Reboot the system and get into single user mode.

ISL> hpux -is
# lvextend -L or -l /dev/vg00/lvolX
# extendfs -F vxfs /dev/vg00/rlvolX
# mount -a
# init 3

Or you can do this while system is up if OnlineJFS is installed on the system.

Regards,
Never say "no" first.