Operating System - HP-UX
1829106 Members
2363 Online
109986 Solutions
New Discussion

Re: how to create new lvm on running plate form

 
SOLVED
Go to solution
prakash singh
Occasional Contributor

how to create new lvm on running plate form

i have Hp ux 11i on rp3440 servers. we have database oracle 1og.our data base is on eva storage.now one of my LVM is reached to 97%. so how can i create more space for it. the bdf command display ..

# bdf
Filesystem kbytesused avail %used Mounted on
/dev/vg00/lvol3 2048000 1248120 793752 61% /
/dev/vg00/lvol1 1012152 70384 840552 8% /stand
/dev/vg00/lvol8 7176192 966112 6162008 14% /var
/dev/vg00/lvol7 5128192 1659992 3441160 33% /usr
/dev/vg00/lvol930670848 29560061 1053186 97% /u01
/dev/vg00/lvol4 4096000 3568712 523392 87% /tmp
/dev/vg00/lvol6 5128192 2207712 2897688 43% /opt
/dev/vg00/lvol5 10240000 4667520 5528976 46% /home
#

i am new hp ux user , kindly help me. basically my all datafiles are on this partition.
Pls. help me.
10 REPLIES 10
Akram Shaik
Frequent Advisor

Re: how to create new lvm on running plate form

Dear please paste me the output of
# vgdisplay

This can be used to calculate amount of free space available in the volume group.

later If free space is avaiilable and you need to extend the LV mounted on /u01it can be extended
when everyting is coming your way then you are in the wrong lane
Sandman!
Honored Contributor

Re: how to create new lvm on running plate form

You can extend the /u01 mount point by adding another PV to vg00 and then lvextend'ing /u01 onto this PV.

A better thing to do would be move the datafiles out of vg00 and into a VG of its own. Also plan on distributing the datafiles over separate I/O channels in order to load-balance the I/O to your datafiles otherwise you will be creating hot spots and running into performance bottlenecks.

~hope it helps
Torsten.
Acclaimed Contributor

Re: how to create new lvm on running plate form

Hi,

do not extend the vdisk on the EVA - HP-UX 11i v1 and 11i v2 cannot handle this - only 11i v3.

Create a new vdisk on the EVA, create a PV and add this to your VG. Now you can extend the LVOL and the filesystem on it.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Gurumanickam
Frequent Advisor

Re: how to create new lvm on running plate form

hi prakash,

Check the vgdisplay output for free space.
if so extend the logical volume and extend the file system.

Before extending umount the filesystem if its not on onlineJFS

lvextend -L totalsize Logicalvolume name

extendfs -F FS_type lv_name(raw device)

Otherwise presend new vdisk from EVA then create pv, extend your vg, extend your logical volume, then extend the file system.

Good luck
Be an expert
prakash singh
Occasional Contributor

Re: how to create new lvm on running plate form

thanx to all.
the vgdisplay output is..

# vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 16
Total PE 8748
Alloc PE 8748
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vglock".
VG Name /dev/vg_rac
VG Write Access read/write
VG Status available, shared, client
Max LV 255
Cur LV 20
Open LV 19
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 25599
VGDA 2
PE Size (Mbytes) 4
Total PE 25596
Alloc PE 2468
Free PE 23128
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

#






but now i am a bit confused whether should i try to extend on this volume or should i create a new PV .Pls. help me.
Rasheed Tamton
Honored Contributor
Solution

Re: how to create new lvm on running plate form

Hi Prakash,

This is your issue:
/dev/vg00/lvol9 30670848 29560061 1053186 97% /u01

/u01 is 97%

Your vgdisplay output says you don't have any free physical extents left on vg00:

#vgdisplay vg00|grep "Free PE"
Free PE 0

That means you do not have any free space left on the vg00. You have to add new disk to vg00 from EVA (keep in mind the other forum members' inputs above reg. the new disk)

After the new disk is seen on the system you have to do:
#pvcreate (use rdsk)
e.g.pvcreate /dev/rdsk/c3t1d3 (be careful when you select the disk name)

#vgextend /dev/vg00
e.g. vgextend /dev/vg00 /dev/dsk/c3t1d3 (just dsk)

#lvextend -L /dev/vg00/lvol9
e.g. lvextend -L 37696 /dev/vg00/lvol9
(extending the lvol9 to 37696MBytes)


#fsadm -b "newsizeMB" /u01 (if you have online jfs - you can use fsadm)
e.g.(fsadm -b 37696M /u01)

otherwise

#umount /u01
#extendfs /dev/vg00/rlvol9
Then mount
#mount /dev/vg00/lvol9 /home

If you are scary, make a backup of the data before you do the above. If you can do all full ignite backup it is more better.

Regards,
Rasheed Tamton
prakash singh
Occasional Contributor

Re: how to create new lvm on running plate form

any one else want to share thei ideas regarding this problem.
Akram Shaik
Frequent Advisor

Re: how to create new lvm on running plate form

First the volume group is VG00.

Suppose the logical volume is having mirror policy and adding one disk to the VG00 will not help..
The lvdisplay output is required and needs to be checked for strict policy

Using the VG00 for large data is not advisable

The best option is to move out the data files to some other LV in a diff vg

I have implemented a simple plan with this issue

============
1. Create a new LV in some other VG where there is enough space.

2. Mount the LV temporarily in a mount point

3. add it in /etc/fstab file.

3. Now move the data in /u01 to the newly created mount point

4. rename the the mount point in /etc/fstab which you have added now to /u01 and comment out the previous entry for /u01 file system (if present)

5. Run command mount /u01

Hope this helps out.


But lvdisplay command output is also needed to ensure a feasible solution.

when everyting is coming your way then you are in the wrong lane
gigiz
Valued Contributor

Re: how to create new lvm on running plate form

i need :
lvdisplay -v /dev/vg00/lvol9
to verify if there is a mirror ....
swlist -l product |grep -i online
to verify if there is a Online JFS product ...
i'm wait your command result ....
Sp4admin
Trusted Contributor

Re: how to create new lvm on running plate form

Hello,

Looks like the form has answer your questions. My question is why do you have Oracle on the VG00. We always put application in its own volume group (vg01).

sp,