1833914 Members
2206 Online
110063 Solutions
New Discussion

VG and lvol

 
Geyson
Advisor

VG and lvol

Hi, all, i need to increase the follow FS,
/dev/vg08/lvol4 /export/sapmnt/PRD
but this are in cluster, the pkg is sapprd, the nodes are prd and app, the cluster is visible in prd server, can somebody help me.
7 REPLIES 7
R.O.
Esteemed Contributor

Re: VG and lvol

Hi,

Do you have installed "Online JFS"? If so you simply have to increase the lvol first:
(lets suppose the final size is 10Gb)

# lvextend -L 1024 /dev/vg08/lvol4

and then the FS:

# fsadm -b 1024M /export/sapmnt/PRD

If you do not have installed "Online JFS", you must unmount the FS first, so you have to stop all the applications/processes accesing the FS. Once done, you will be able to unmount and resize:

# umount /export/sapmnt/PRD
# lvextend -L 1024 /dev/vg08/lvol4
# extendfs /dev/vg08/rlvol4
# mount (-o options) /dev/vg08/lvol4 /export/sapmnt/PRD

Regards,
"When you look into an abyss, the abyss also looks into you"
madhuchakkaravarthy
Trusted Contributor

Re: VG and lvol

1.allocate required space from storage
2.pvcreate persistent dsf
3.vgextend vgname diskname
4.lvextend -L size lvname
5.fsadm -F vxfs -b size mountpoint
6.vgexport -p -s -v -m /tmp/vgname.map vgname
7.rcp -p /tmp/vgname.map failover:/tmp

in failover
1.vgexport vgname
2.vgimport -s -v -N -m /tmp/vgname.map /vgname

halt the package in main server and run in fail over

after that check with bdf

regards

MC
Johnson Punniyalingam
Honored Contributor

Re: VG and lvol

You can start from Basics.

1. Check (do you have enough free space to extent /increase the File system)

2. swlist -l product |grep -i jfs -> check Online JFS has been installed.(if you have you do the extend / increase FS on fly. other wise, hence its part of cluster aware FS, additonal steps are included.(cmhaltpkg) check man pages for examples, lvextend,extendfs,cmrunpkg.

3. if d'not have enough space (left) You need add disks to increase / extend FS.

(pvcreate,vgextend,lvextend,extendfs / fsadm,) on above steps can be done ONLINE w/o halting pkg, if you have (Online JFS)

(vgexport -p -v -s -m) -> Primary Node
rcp/ftp/scp to alternative node.

alternative node.

vgexport /dev/vgname
mkdir /dev/vgname
mknod /dev/vgname/group c 64 0x0X0000
vgimport -p -v -m -s /dev/vgname (no errors)
vgimport -v -m -s /dev/vgname
Problems are common to all, but attitude makes the difference
Taifur
Respected Contributor

Re: VG and lvol

Hi ,

Before doing this activity u should halt package, after that run package, follow below steps,

node1
# vgchange -c n /dev/vg08
# vgchange -a y /dev/vg08

# lvextend -L /dev/vg08/lvol4
# extendfs -F vxfs /dev/vg08/rlvol4
# vgchange -a n /dev/vg08
#vgexport â m /tmp/vg08_new.map â s -p /dev/vg08
#rcp /tmp/vg08_new.map NOde02:/tmp

node2

#ll /dev/*/group
#vgexport â m /tmp/vg08_old.map /dev/vg08
#mkdir /dev/vg08

#mknod /dev/vg08/group c 64 0x(minor number)
#vgimport â m /tmp/vg08_new.map -s /dev/vg08

# vgchange -a y /dev/vg08
# vgchange -a n /dev/vg08
# vgchange -c y /dev/vg08

Cheers//
Taifur
HCL Ash
Frequent Advisor

Re: VG and lvol

HI,

If you have space in volume group no need to halt package or un mount file system.

DO lvextend

FSadm

Geyson
Advisor

Re: VG and lvol

HI, thanks to all, it was a very helpfull
S.N.S
Valued Contributor

Re: VG and lvol

Hi Geyson,

I am attaching a very neat procedure giving the ways to add VG & LVs in an MC SG environment.

Take the basics what Johnson has mentioned.

Then take a print out of this doc (from Stephen Doud). Read it well, and perform the steps that is needed as per your question

HTH
SNS

And pls pls assign points to all the good folks who have given their time to Help You! :-)

Just login in with your user name and assign points as from the Drop down ;-)
"Genius is 1% inspiration, 99% Perspiration" - Edison