Operating System - HP-UX
1833873 Members
1843 Online
110063 Solutions
New Discussion

Re: How to increase root file system size in HP-ux 11i V2?

 
HP-UX 11i V2 32 bit ins
Occasional Contributor

How to increase root file system size in HP-ux 11i V2?

How to increase root file system size in HP-ux 11i V2?

All guru's need help.
11 REPLIES 11
Pete Randall
Outstanding Contributor

Re: How to increase root file system size in HP-ux 11i V2?

Since the root file system (and /stand and swap) have to be contiguous, this is nearly impossible to do without using an ignite backup tape to re-create your system.


Pete

Pete
dictum9
Super Advisor

Re: How to increase root file system size in HP-ux 11i V2?

Jaime Bolanos Rojas.
Honored Contributor

Re: How to increase root file system size in HP-ux 11i V2?

Why don't you start by sending us some information:

Please run a vgdisplay -v on your vg00

If you have lvols please run also a lvdisplay -v on those logical volumes.

Do you have space to extend filesystem?

Are you going to use new disk?

Regards,

Jaime.
Work hard when the need comes out.
HP-UX 11i V2 32 bit ins
Occasional Contributor

Re: How to increase root file system size in HP-ux 11i V2?

I am doing it on Hp workstation

I have added 17.2GB PV to vg00

now am unable to extend / on this newly added PV in vgoo.
Geoff Wild
Honored Contributor

Re: How to increase root file system size in HP-ux 11i V2?

You can't increase root that way - has to be contiguous.

Best way is to ignite your workstation - and resize the partitions.

Please post the vgdisplay -v vg00

It may be possible to resize without ignit - depending on your layout.

Still, ignite is the best and prefered and supported way.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
HP-UX 11i V2 32 bit ins
Occasional Contributor

Re: How to increase root file system size in HP-ux 11i V2?

# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 4
Total PE 8680
Alloc PE 4206
Free PE 4474
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 300
Current LE 75
Allocated PE 75
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 2560
Current LE 640
Allocated PE 640
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 552
Current LE 138
Allocated PE 138
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 300
Current LE 75
Allocated PE 75
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 20
Current LE 5
Allocated PE 5
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 3436
Current LE 859
Allocated PE 859
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 4596
Current LE 1149
Allocated PE 1149
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 3060
Current LE 765
Allocated PE 765
Used PV 1

LV Name /dev/vg00/lvdata
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 500
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c2t6d0
PV Status available
Total PE 4340
Free PE 134
Autoswitch On

PV Name /dev/dsk/c2t5d0
PV Status available
Total PE 4340
Free PE 4340
Autoswitch On

Steven E. Protter
Exalted Contributor

Re: How to increase root file system size in HP-ux 11i V2?

Shalom,

Note, there is no such thing as a 32 bit install of HP-UX 11i v2.

It is 64 bit only.

The only reliable way to expand root is to do a make_tape_recovery or make_net_recovery followed by a recovery of the system.

There is an option to do keyboard intervention from the console that permits expansion of the root fs.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Enrico P.
Honored Contributor

Re: How to increase root file system size in HP-ux 11i V2?

Hi,
I think that if you have added a new disc to the vg then you can free space with the command pvmove to move lvols after lvol3 (root fs) to the new disk.

Example:

pvmove -n /dev/vg01/lvol4 /dev/dsk/cXtXdX /dev/dsk/cYtYdY

/dev/dsk/cXtXdX (source_path)
/dev/dsk/cYtYdY (destination_path)

and so for lvol5 ...

Then you can extend the root filesystem.

Or you can mirror the lvol4 lvol5 ... to new disk and then reduce the mirror from source_disk to free space after the root lvol.

I have not never tried this solutions personally, I ask confirmation for this to others.

Enrico
MarkSyder
Honored Contributor

Re: How to increase root file system size in HP-ux 11i V2?

Enrico's solution may well work, but I wouldn't undertake anything like this without having an ignite backup. And if you've got an ignite backup - do I need to finish this sentence?

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Geoff Wild
Honored Contributor

Re: How to increase root file system size in HP-ux 11i V2?

lvol3 is root I assume (confirm with bdf) and lvol4 is probably home.

In that case, you could mv home to a new home (create a new lvol then temporarily mount it to something like /newhome, then copy /home to /newhome, unmount /home and /newhome, then mount the "new" home to /home)

After that, lvremove lvol4, then you can extend / (lvol3).

lvextend -L 882 /dev/vg00/lv0l3
fsadm -b 882M /

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
NMory
Respected Contributor

Re: How to increase root file system size in HP-ux 11i V2?

I would take the only supported and most reliable option: via Recovery Tape (Ignite)

1. Create a system recovery tape using make_net_recovery or make_tape_recovery -I
2. Boot from archive
3. Resize the logical volumes in the Ignite interface
4. Allow Ignite to recreate vg00 using new sizes, and restore all the data.

Luis