1751900 Members
4811 Online
108783 Solutions
New Discussion юеВ

Re: "/" extending

 
SOLVED
Go to solution
Igor Sovin
Super Advisor

"/" extending

Hi all!

How to extend filesystem mounted at / without having OnlineJFS installed?
8 REPLIES 8
Robert-Jan Goossens
Honored Contributor

Re: "/" extending

Hi Igor,

Root (/) filesystem does not have to be very large, are you sure you can not move data from root filesystem?

Root file system (and /stand and swap) have to be contiguous, use an ignite tape to backup your configuration and restore(with the option resize filesystems) your system.

Ignite software.
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=IGNITEUXB

Regards,
Robert-Jan
RAC_1
Honored Contributor

Re: "/" extending

There is unsupported method. What is the next lvol after /? If you can move that, / can be extended.

But it is UNSUPPORTED.
There is no substitute to HARDWORK
Igor Sovin
Super Advisor

Re: "/" extending

Robert, I have backup of my server on Ignite Ux Server.
Recently, I restored host from IUX server, and set new size of / while restoring process.
But after restore has completed, I see that changes have not applied, / size is still the same as before backup.

The next lvol after / is lvol4 -mounted at /home
How to extend / then?
rariasn
Honored Contributor

Re: "/" extending

Hi Igor,

Ignite --> "Perform Installation from this console" --> "Install HPUX" --> "User Interface and Media Options"

Select "Advanced Installation"

In "Advance Options" select "File System" tag --> select "/" FS and "modify".

My "/" FS:

bdf /
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 61280 142752 30% /

rgs.
Igor Sovin
Super Advisor

Re: "/" extending

Hi rariasn!

I have the same size of / on my serever.
I need to encrease its size because I need to install Open View Operations and it requires the size of / larger than 204 mb
RAC_1
Honored Contributor
Solution

Re: "/" extending

Extend / (root) partition. (not supported)
1. bdf - note the lvol that / is mounted on (normally /dev/vg00/lvol3)
note the next mount point that is mounted on the next lvol (ex. /tmp - lvol4)

2. vgdisplay -v vg00 - note the number of lvol's and the physical volumes of vg00.

ex. 8 lvol's

--- Physical volumes ---
PV Name /dev/dsk/c0t5d0
PV Status available
Total PE 2169
Free PE 447
Autoswitch On

PV Name /dev/dsk/c0t8d0
PV Status available
Total PE 2169
Free PE 447
Autoswitch On

3. Remove the mirrors off the second physical volume.

for i in 1 2 3 4 5 6 7 8
do
lvreduce -m 0 /dev/vg00/lvol$i /dev/dsk/c0t8d0
done

4. Move the next contiguous lvol from primary OS disk to "mirror" disk

pvmove -n /dev/vg00/lvol4 /dev/dsk/c0t5d0 /dev/dsk/c0t8d0

5. Ensure that you have freed up the logical extents after the / lvol. (ex. lvol3 )

pvdisplay -v /dev/dsk/c0t5d0 | more

01563 current /dev/vg00/lvol3 00020
01564 current /dev/vg00/lvol3 00021
01565 current /dev/vg00/lvol3 00022
01566 current /dev/vg00/lvol3 00023
01567 current /dev/vg00/lvol3 00024
01568 free 00000
01569 free 00000
01570 free 00000
01571 free 00000
01572 free 00000
01573 free 00000
01574 free 00000
01575 free 00000

6. Ensure that the / lvol is strict and contiguous.

lvdisplay /dev/vg00/lvol3

--- Logical volumes ---
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 200
Current LE 50
Allocated PE 110
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

7. lvextend the / filesystem to the desired size as needed as long as there are enough free extents available.

lvextend -l 55 /dev/vg00/lvol3
fsadm -F vxfs -b 220M /

8. Move the previously moved lvol back from the mirrored disk to the primary disk.

pvmove -n /dev/vg00/lvol4 /dev/dsk/c0t8d0 /dev/dsk/c0t5d0

9. vgdisplay -v vg00 - ensure that everything is mounted on the primary OS disk and that the mirror disk is empty

--- Physical volumes ---
PV Name /dev/dsk/c0t5d0
PV Status available
Total PE 2169
Free PE 447
Autoswitch On

PV Name /dev/dsk/c0t8d0
PV Status available
Total PE 2169
Free PE 2169
Autoswitch On

10. Mirror all the lvol's back to the mirrored disk.

for i in 1 2 3 4 5 6 7 8
do
lvextend -m 1 /dev/dsk/lvol$i /dev/dsk/c0t8d0
done

11. vgdisplay -v vg00 - ensure that all lvol s are mirrored.

--- Physical volumes ---
PV Name /dev/dsk/c0t5d0
PV Status available
Total PE 2169
Free PE 447
Autoswitch On

PV Name /dev/dsk/c0t8d0
PV Status available
Total PE 2169
Free PE 447
Autoswitch On
There is no substitute to HARDWORK
rariasn
Honored Contributor

Re: "/" extending

Hi Igor,

My OV/OVO FS structure:

/dev/vg00/lvvarOV 409600 362831 43879 89% /var/opt/OV
/dev/vg00/lvoptOV 770048 661921 101396 87% /opt/OV
/dev/vg00/lvetcOV 57344 9417 45747 17% /etc/opt/OV
/dev/vg_opt_operacion/lvvarOVshare
4096000 2877453 1142491 72% /var/opt/OV/share
/dev/vg_opt_operacion/lvetcOVshare
102400 25860 71774 26% /etc/opt/OV/share

/dev/vg_opt_operacion/lvBD_openview
2048000 1407119 600886 70% /BD_openview

I not use "/"

rgs,
Igor Sovin
Super Advisor

Re: "/" extending

Thanx guys!