cancel
Showing results for 
Search instead for 
Did you mean: 

Unix file system

former_member227600
Contributor
0 Kudos

HI,

I want to know how can i increass file system size in HP-Unix. I know how to increass filesystem size in AIX.For example in case of AIX ,we can check free space in AIX volume group with this command & if i want to increase than i can increase with command chfs -a size=+<size> /<filesystem>

# lsvg sapvg
VOLUME GROUP:       sapvg                    VG IDENTIFIER:  0053878d00004c000000011e87175226
VG STATE:           active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      2658 (340224 megabytes)
MAX LVs:            256                      FREE PPs:       656 (83968 megabytes)
LVs:                16                       USED PPs:       2002 (256256 megabytes)
OPEN LVs:           15                       QUORUM:         2 (Enabled)
TOTAL PVs:          1                        VG DESCRIPTORS: 2
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         1                        AUTO ON:        yes
MAX PPs per VG:     32768                    MAX PVs:        1024
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable 
#

In my Hp-unix file system /oracle file system is 100% full, I remove /oracle/stage/920_64 file system. Now when i am trying to see the space at VG lavel using command vgdisplay than there are free PE is still showing 0.To show the free space , i need to reboot the system. And how can i increase the file system in Hp-Unix.

Thanks & Regards

Karan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Karan,

If the system is having online JFS support then using lvextend you can increase the size,

else unmount the file system and increase size. Then mount the file system back.

Example for file system extend is available in lvextend man page as,

Increase the size of a file system existing on a logical volume.

First, increase the size of the logical volume.

lvextend -L 400 /dev/vg06/lvol3

Unmount the file system.

umount /dev/vg06/lvol3

Extend the file system to occupy the entire (larger) logical volume.

extendfs /dev/vg06/rlvol3

Remount the file system.

mount /dev/vg06/lvol3 /mnt

Regards,

Sudip.

former_member227600
Contributor
0 Kudos

Hi Sudip,

Thanks for reply.

I have delete one file system having size 3GB.But when i am checking at VG lavel ,I am still getting 0 free PV. will i need to reboot the server to reorg the space .

Thanks & Regards

Karan

Former Member
0 Kudos

Hello Karan,

If possible, you should release space by deleting redundant files. Only if you can't release enough space for your needs do you need to consider a new disc. You need to add more disks to your VG. If you do so, you will get more space to allocate.

To add the new disks to the system-

insf -e

ioscan -fnCdisk

pvcreate

vgextend

lvextend

fsadm

Regards,

Sudip.

former_member227600
Contributor
0 Kudos

Hi Sudip,

I think you are not getting my point. I am giving you an example

# df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           1.00      0.90   10%     2742     1% /
/dev/hd2           7.00      2.06   71%    87498     5% /usr
/dev/hd9var        0.25      0.22   11%      731     2% /var
/dev/hd3           5.00      3.12   38%     1023     1% /tmp
/dev/hd1           0.25      0.24    4%       48     1% /home
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       2.00      1.67   17%     5034     1% /opt
/dev/fslv00       60.00     53.50   11%     8857     1% /oracle
/dev/fslv01        7.00      7.00    1%        5     1% /sapmnt
/dev/fslv02       30.00     21.94   27%     3599     1% /usr/sap
/dev/fslv03       75.00     15.92   79%    21381     1% /cdsource
/dev/fslv04        6.00      4.83   20%     7859     1% /sapmnt/QAS
/dev/fslv05       20.00      3.21   84%      409     1% /oracle/QAS/oraarch
/dev/fslv06        1.00      0.73   27%       13     1% /oracle/QAS/origlogA
/dev/fslv07        1.00      0.90   10%        6     1% /oracle/QAS/origlogB
/dev/fslv08        1.00      0.90   10%        6     1% /oracle/QAS/mirrlogA
/dev/fslv09        1.00      0.85   15%        7     1% /oracle/QAS/mirrlogB
/dev/fslv11       10.00      5.85   42%    22672     2% /oracle/QAS/102_64
/dev/fslv12       10.00      5.04   50%    11064     1% /oracle/stage/102_64
/dev/fslv13        5.00      4.95    2%        5     1% /oracle/client/102_64
/dev/fslv14       15.12      8.36   45%     6986     1% /usr/sap/put
/dev/fslv15       70.00     34.97   51%       19     1% /oracle/QAS/sapdata1
/dev/fslv16       70.00     24.99   65%        9     1% /oracle/QAS/sapdata2
/dev/fslv17       70.00     49.99   29%        7     1% /oracle/QAS/sapdata3
/dev/fslv18       70.00     44.99   36%        5     1% /oracle/QAS/sapdata4
/dev/lv00          0.12      0.12    4%       18     1% /var/adm/csd

This is the file system in my AIX box. If i delete /oracle/stage/102_64 than i get 10G free space in my volume group.And than I can check using command lsvg <VG Name> to check the free space & than relocate the sapce to another file system.

Now come to the point ,I have deleted a 3GB file system in HP-Unix box ,& when i am seeing at VG lavel using vgdisplay it still showing 0 free PPs. Now ,how can i use this free space after delete /oracle/stsge/102_64 in Hp-unix box.

Former Member
0 Kudos

after deleting /oracle/stsge/102_64 in Hp-unix box the free space will be allocated to your root directory. You need to restart the Unix box then you will get the effect.

sudip.

Former Member
0 Kudos

/oracle/stage/102_64 and /oracle filesystems were in same LV and VG ?

former_member227600
Contributor
0 Kudos

Hi,

Yes both file system in same VG.

Answers (1)

Answers (1)

Former Member
0 Kudos
In my Hp-unix file system /oracle file system is 100% full, I remove /oracle/stage/920_64 file system. Now when i am trying to see the space at VG lavel using command vgdisplay than there are free PE is still showing 0.To show the free space , i need to reboot the system. And how can i increase the file system in Hp-Unix.

Space is allocated and will not show even after rebooting the server. If you delete that logical volume then you will see PE > 0