1832617 Members
2955 Online
110043 Solutions
New Discussion

Extend LV

 
Idham
Frequent Advisor

Extend LV

Hi
Please refer below output 1st. Can I extend the /appl using SAM. How much more space can I add?..any prerequisite before extend filesystem? single user?..on the fly?

Thnks in advance

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 524288 343952 178968 66% /
/dev/vg00/lvol1 344064 171872 170888 50% /stand
/dev/vg00/lvol8 4718592 1790968 2904896 38% /var
/dev/vg00/lvol11 4194304 2193672 1875655 54% /var/adm/crash
/dev/vg00/lvol7 5947392 3173224 2752504 54% /usr
/dev/vg00/lvol4 1048576 194104 847840 19% /tmp
/dev/vg00/lvol6 10485760 2550632 7873240 24% /opt
/dev/vg00/lvol12 2097152 218116 1761658 11% /log
/dev/vg00/lvol5 65536 32376 32960 50% /home
/dev/vg00/lvol10 20971520 18575093 2247263 89% /appl
# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 12
Open LV 12
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 16
Total PE 8636
Alloc PE 7176
Free PE 1460
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
7 REPLIES 7
Jeeshan
Honored Contributor

Re: Extend LV

if you have OnlineJFS installed in your server, then you can extend the file system without reboot and online.

check you have JFS installed or not

#swlist -l product|grep OnlineJFS

check that you have OnlineJFS license

#vxlicrep or vxlicense -p
a warrior never quits
Venkatesh BL
Honored Contributor

Re: Extend LV

From the output:

PE Size (Mbytes) 16
Total PE 8636
Alloc PE 7176
Free PE 1460

So, expandable size = Free PE * PE Size
= 1460 * 16
= 23360 MB
Idham
Frequent Advisor

Re: Extend LV

# vxlicense -p
vrts:vxlicense: INFO: No valid license installed

# swlist -l product | grep OnlineJFS
OnlineJFS B.11.23.0505 Online features of the VxFS File System


So..can I extend online?..looks like not licensed


Jeeshan
Honored Contributor

Re: Extend LV

no, you havn't OnlineJFS licensed installed.

in that case you need to extend the file system offline.

unmount the file system then extendfs.
a warrior never quits
Idham
Frequent Advisor

Re: Extend LV

Thanx ahsan...

BTW..can u post me the steps...or is it possible for me to use SAM?
Johnson Punniyalingam
Honored Contributor

Re: Extend LV

Hi,

steps:-

1. fuser -c /appl --> list you down who currently using the File system

2. fuser -ku /appl --> forcely kill the user's who are currently using the file system

3. unmount /appl

4. lvextend -L /dev/vg00/lvol10


5. extendfs -F vxfs /dev/vg00/rlvol10

6. mount -a
Problems are common to all, but attitude makes the difference
Adam W.
Valued Contributor

Re: Extend LV

Idham,
Just some friendly advice here. Don't use SAM unless you have too. Sam (just like most other gui's) can have adverse effects and perform some operation you didn't intend, it can also be VERY misleading on amounts of space available, especially when using utilizing a SAN. So, that being said:


A. umount /dev/vgxx/lvolx
(unmounts filesystem)

B. lvextend â L /dev/vgxx/lvolx

C. extendfs â F vxfs/hfs(/etc/fstab) â o largefiles

D. mount â a
(-a option is for ALL filesystems)


I have attached a simple "cheat sheet" I liek to use
There are two types of people in the world, Marines and those who wish they were.