1833160 Members
2999 Online
110051 Solutions
New Discussion

file system

 
SOLVED
Go to solution
abunnudur
Advisor

file system

Hi dears,
i got a task asking me to increase the file system by 6 GB to make it 16 GB...
so i need your help by giving me the steps to increase it and some details for each step...
thx in advance...
Regards,
14 REPLIES 14
Deepak Kr
Respected Contributor
Solution

Re: file system

You can do it several ways:

If you have Onlinejfs installed then

lvextend -L 16000 lvname
fsadm -b 16000M /Fs mount_point name

If not then use following

umount /filesystem
lvextend -L 16000 lvname
extendfs -F vxfs lvname
(raw device)

Cheers!!
"There is always some scope for improvement"
abunnudur
Advisor

Re: file system

Hi dear,

sorry maybe i will ask many questions about this topic because i am still beginer in this field...

how to know if i have online jfs or not?
and welling to know is it better to have it or not? and why?
Regards,
SKR_1
Trusted Contributor

Re: file system

/root # swlist | grep JFS
OnlineJFS B.11.11.03.03 Online features of the VxFS File System

Run this command to know

Thanks

SKR
SKR_1
Trusted Contributor

Re: file system

In online JFS, you dont need to umount the FS.

Thanks

SKR
Jeeshan
Honored Contributor

Re: file system

Online JFS software installed in the server doesn't mean you have Online JFS license have. You can verify the license info by applying the following command

#vxlicense -p (11iv1)

or

#vxlicrep
a warrior never quits
Deepak Kr
Respected Contributor

Re: file system

hi abunnudur,

you provide following details so that we can help you with command syntax also

bdf /filesytem
vgdisplay vgname

swlist |grep -i onlinejfs

"There is always some scope for improvement"
abunnudur
Advisor

Re: file system

hi again,
I dont have the OnlineJFS and it is not acceptable to install it in this moment...
so first i need to know what is the current space for that file system and then start to add the 6 GB in outage period...
Need ur help quickly...
Regards,
abunnudur
Advisor

Re: file system

another question:
before starting...is it important to make umount?
i heared that i can make it without this step...
any ideas?
Deepak Kr
Respected Contributor

Re: file system

ohh

Yes, in absence of OnlineJFS it is neccessary to unmount FS.

Fs space you can see using bdf command
e.g.

bdf /var

will show you usage details etc

From this output we can find vgname and then find out free space using vgdisplay vgname |grep free
"There is always some scope for improvement"
abunnudur
Advisor

Re: file system

thx kumar...
now i am sure i have 6 GB available...
how to start the unmount proccess?
Deepak Kr
Respected Contributor

Re: file system

what is FS name here

we can not unmount OS FS now
/var /usr / /tmp
"There is always some scope for improvement"
abunnudur
Advisor

Re: file system

hi...
this is the output that appears using bdf command:
/dev/vg00/lvol8 16220160 2955176 13161648 18% /var


so the file system is /dev/vg00/lvol8 , right?
and why we can't unmount the FS now?
i have the permission to make the unmount in outage period...
Regards,
Deepak Kr
Respected Contributor

Re: file system

Ok I will expain you...
#bdf /var
/dev/vg00/lvol8 16220160 2955176 13161648 18% /var


so the file system is /dev/vg00/lvol8 , right? ====yes

so vgname is vg00 (root VG) OS boot VG also

As we can not umount /var; it is required for OS to run.

So how to do it:??

Steps:

1. take a downtime
2. Shutdown server (cd /; shutdown -hy 0)
3. Boot in single user mode

ISL>hpux -is

4. Once you are in single user mode
run following:
#bdf
You will see only / is mounted

/dev/vg00/lvol3

no other lv so

now you dont even need to umount /var here

simply run following

Note: you should have free space in VG00

vgdisplay vg00
look for free PE
e.g
system12>vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 25
Open LV 25
Max PV 16
Cur PV 3
Act PV 3
Max PE per PV 4350
VGDA 6
PE Size (Mbytes) 8
Total PE 12994
Alloc PE 7918
Free PE 5076
Total PVG 3
Total Spare PVs 0
Total Spare PVs in use 0

shpp12:rsh:/home/dc93650>
system12>bc
5076*8
40608
quit

###so i have 40608 MB of free size here #######example


lvextend
and then
extendfs

Done!!






"There is always some scope for improvement"
Deepak Kr
Respected Contributor

Re: file system

Once done

you can mount /var using

#mount /var

or

mount /dev/vg00/lvol8 /var

bdf /var

if you see everything fine. then shutdown -ry 0
to reboot
"There is always some scope for improvement"