1830624 Members
2037 Online
110015 Solutions
New Discussion

File System in a VG

 
Ricky B. Nino
Frequent Advisor

File System in a VG

Hi,

I have a file system in my vg03 that is about to get full.

I have a free disc available.

How can I use this free disc for the same file system?

regards...
Opportunities expand for people willing to put time and effort into learning new skills.
5 REPLIES 5
Balaji N
Honored Contributor

Re: File System in a VG

add this disk to the vg.

1. pvcreate /dev/rdsk/xxxxxx
2. vgextend /dev/vg03 /dev/dsk/xxxx
3. lvextend /dev/vg03/lvol_to_be_extended.
4. umount the lvol
5. extendfs /dev/vg03/lvol.....

hth
-balaji

(hope vg03 is not mirrored)
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Radhakrishnan Venkatara
Trusted Contributor

Re: File System in a VG

hi,

before adding the disk check whether the parametere Max PE per PV and PE size.
this will determine what is the maximum size of the hard disk
that VG will support.
suppose Max PE per PV is 2500
and PE size is 4 ( default is 4 this can be also changed using vgcreate command).
then multiply both , Max size of the PV can be only 10GB.

if ur VG supports u can follow the above steps.

radhakrishnan
Negative thinking is a highest form of Intelligence
RAJESH GANGADHARAN
Regular Advisor

Re: File System in a VG

If you got Online JFS, there is no need to unmount the filesystem, you can extend it online.

-Rajesh
Let the choices you make today be the choices you can live with tomorrow.
Steven E. Protter
Exalted Contributor

Re: File System in a VG

There are always ifs.

Of the fs was set up continguous strict, you can't extend it unless its ajacent to the free space.

You can check it with

vgdisplay -v /dev/vg03 | more

If it was set up strict contiguous, you'll need to back it up remove it and put it back in according to the above instructions bigger and then restore the data.

Good Luck.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ravi_8
Honored Contributor

Re: File System in a VG

Hi,

normally lvol1 and lvol2 under vg00 are contiguous and other lvol's under vg00 and other vg's are all vxfs or jfs
(fstyp /dev/vgxx/lvolx)

In your case insert the free disk to the system and after conforming that system is recognizing the disk drive (ioscan -fnC disk)
#pvcreate -f /dev/rdsk/cxtxdx
(cxtxdx is the free disk)
#vgextend /dev/vg03 /dev/dsk/cxtxdx

Now you can create any new lvol's or can extend the existing lvol's under vg03
(lvcreate, lvextend)
never give up