Operating System - HP-UX
1838386 Members
3832 Online
110125 Solutions
New Discussion

CREATING MORE SPACE IN RX2620

 

CREATING MORE SPACE IN RX2620

Hi All,
I have Rx2620 running HP-UX B.11.23 and the database oracle 10g.
The db's directory is in /home which is almost full but there is still some an unallocated space of 220160.

I need to create new logical volume and file system and link it (from the unallocated space) to the /home directory for more space temporarily since we are planning an upgrade.
Kindly assist.
Regards,
Eric.
9 REPLIES 9
Ganesan R
Honored Contributor

Re: CREATING MORE SPACE IN RX2620

Hi,

Do you have unallocated space of 220160 on the same VG where /home exist? If so, why do you create new logical volume and link it?

You can extend /home directly.

You cannot use space across the volume groups for a given filesystem.

If you have unallocated space on some other vg, then create new logical volume, copy the data to new lv and mount it.

Best wishes,

Ganesh.

Re: CREATING MORE SPACE IN RX2620

Hi,
Thanks. No the unallocated space of 220160 if not on the same VG where /home exist.
Regards,
Eric.
Ganesan R
Honored Contributor

Re: CREATING MORE SPACE IN RX2620

Hi,

So the unallocated space is not on the same VG of /home.

In that case, you cannot use both the used space on one VG and unallocated space from another VG.

If you have enough unallocated space on another vg, create a new lv/filesystem and move the data.
or create new lv/filesystem and link to db mount point.(example, /home/oracle is a db directory, create new lv and mountpoint called /oracle and link /home/oracle to /oracle directory)
Best wishes,

Ganesh.

Re: CREATING MORE SPACE IN RX2620

Hi Ganesan,
See the file system layout and may be can also help in analysing:
File System layout

LVM Device file mount point size fs type
/dev/vg00:
/dev/vg00/lvol1 /stand 512 vxfs
/dev/vg00/lvol2 swap 20480
/dev/vg00/lvol3 / 5120 vxfs
/dev/vg00/lvol4 /home 10240 vxfs
/dev/vg00/lvol5 /opt 7168 vxfs
/dev/vg00/lvol6 /tmp 2048 vxfs
/dev/vg00/lvol7 /usr 6144 vxfs
/dev/vg00/lvol8 /var 7168 vxfs
/dev/vg00 unallocated 220160

Regards,
Eric.
Ganesan R
Honored Contributor

Re: CREATING MORE SPACE IN RX2620

Hi,

Can you post the the following command outputs?

#vgdisplay -v vg00

#lvdisplay /dev/vg00/lvol4

#swlist |grep -i online

#uname -a

#bdf /home
Best wishes,

Ganesh.

Re: CREATING MORE SPACE IN RX2620

the output for:
1.#vgdisplay -v vg00
# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4370
VGDA 2
PE Size (Mbytes) 64
Total PE 4360
Alloc PE 920
Free PE 3440
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) 512
Current LE 8
Allocated PE 8
Used PV 1

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

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

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

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

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

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

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


--- Physical volumes ---
PV Name /dev/dsk/c4t0d0s2
PV Status available
Total PE 4360
Free PE 3440
Autoswitch On

2.## lvdisplay /dev/vg00/lvol4
--- Logical volumes ---
LV Name /dev/vg00/lvol4
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 10240
Current LE 160
Allocated PE 160
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

3.
# swlist |grep -i online
OnlineDiag B.11.23.05.07 HPUX 11.23 Support Tools Bundle, Dec 2005
4.# uname -a
HP-UX HPUXKSM B.11.23 U ia64 4111320266 unlimited-user license

5.# bdf /home
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 10485760 5615080 4832736 54% /home

Regards,
Eric.
Ganesan R
Honored Contributor

Re: CREATING MORE SPACE IN RX2620

Hi,

You have 220160MB of free space on the volumegroup VG00 where /home filesystem exists. Currently /home filesystem size is 10GB and 54% utilised.

So you don't need to create link and all.
You do not have online JFS product installed to extend the filesystem online(without unmount). You have two options here.

1. Unmount /home filesystem and extend it using lvextend and extendfs commands.

2. Reboot the system into single user mode and extend the filesystem.
Best wishes,

Ganesh.

Re: CREATING MORE SPACE IN RX2620

Thanks. This will not in any way compromise the data in the /home directory?

Thanks alot.

Regards
Ganesan R
Honored Contributor

Re: CREATING MORE SPACE IN RX2620

Hi,

It won't destroy the existing data. You can extend it without disturbing the data.
Best wishes,

Ganesh.