Operating System - HP-UX
1831284 Members
2988 Online
110022 Solutions
New Discussion

Re: Filesystem and Logical Volume size mismatch

 
SOLVED
Go to solution
vinay_26
Advisor

Filesystem and Logical Volume size mismatch

Hi,

I have a wierd problem.

I have a HPUX 11.00 on an N4000 box.

Ihave a logical volume with size mirrored and the size is 2350 MB (4700 MB since mirrored). I had a FS full issue when checking i found that the files size is more than the lvol size in the fs.


# bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vg_maximo/lv_maxlnvgt_up
2764800 2764800 0 100% /maxlnvgt_up



# lvdisplay /dev/vg_maximo/lv_maxlnvgt_up
--- Logical volumes ---
LV Name /dev/vg_maximo/lv_maxlnvgt_up
VG Name /dev/vg_maximo
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 4700
Current LE 1175
Allocated PE 2350
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default



# du -sk .
2755133 .

I checked and dint find any link files etc in the folder either. Any suugestions pls?
3 REPLIES 3
smatador
Honored Contributor
Solution

Re: Filesystem and Logical Volume size mismatch

Hi,
If the value of PE sizes on the vgdisplay of vg_maximo is 4, you have 2350*4 = 9400 for the lv with the mirror, so perhaps you should try to extend the lv :
Without OnlineJFS you have to umount the FS first:
# umount /dev/vg_maximo/lv_maxlnvgt_up
# extendfs /dev/vg_maximo/rlv_maxlnvgt_up
# mount /dev/vg_maximo/lv_maxlnvgt_up
/maxlnvgt_up
With OnlineJFS you do not need to umount. Use fsadm instead:
# fsadm -b /maxlnvgt_up
vinay_26
Advisor

Re: Filesystem and Logical Volume size mismatch

Thanks for the reply. It was bang on.

Got confused for a while. Think need to refresh my LVM fundamentals.
Mark S Meadows
Valued Contributor

Re: Filesystem and Logical Volume size mismatch

Hi Vinay,

The logical volume size equates to 4.7Gb (1175 LE's * 4MB PE size), but the size of the file system is only 2.7GB.

It appears that at some point the original size of the lv has been extended, but the file system has not been extended as well in order to bring it in line with the new size of the lv.

If you have Online JFS installed then you can extend the size of the file system on-line :

# swlist | grep -i jfs
B3929EA B.11.31 HP OnLineJFS (Server)

#/sbin/fsadm -F vxfs -b 4812800 /maxlnvgt_up
Or
#/sbin/fsadm -F vxfs -b 4700M /maxlnvgt_up

If not, the file system will need to be unmounted when not in use :

# fuser -u -c /maxlnvgt_up

# umount /maxlnvgt_up

and an extendfs carried out on the file system :

extendfs -F vxfs /dev/vg_maximo/rlv_maxlnvgt_up

Then remount the file system :

# mount /maxlnvgt_up

and then re-check the size of the file system again :

bdf /maxlnvgt_up

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).