Operating System - HP-UX
1835243 Members
2392 Online
110078 Solutions
New Discussion

Extending a Filesystem which is four way striped

 
SOLVED
Go to solution
Kavita Poonia
Regular Advisor

Extending a Filesystem which is four way striped

Hello,

I have to extend a filesystem /con/bea/u04 by 10 GB which is four way striped.
Following are the details:

#bdf /con/bea/u04
Filesystem kbytes used avail %used Mounted on
/dev/conbea_vg/lv_conbeau04
10485760 9483292 971146 91% /con/bea/u04
#vgdisplay /dev/conbea_vg
--- Volume groups ---
VG Name /dev/conbea_vg
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 6
Open LV 6
Max PV 100
Cur PV 7
Act PV 7
Max PE per PV 3500
VGDA 14
PE Size (Mbytes) 16
Total PE 6076
Alloc PE 5376
Free PE 700
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

#lvdisplay /dev/conbea_vg/lv_conbeau04
--- Logical volumes ---
LV Name /dev/conbea_vg/lv_conbeau04
VG Name /dev/conbea_vg
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule striped
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 640
Stripes 4
Stripe Size (Kbytes) 1024
Bad block NONE
Allocation strict
IO Timeout (Seconds) 135

As per the details I have got 11 GB free space in VG but the 4 PV disks across which this filesystem is distributed has got a free space of 64 MB only. Then for my extension to succeed I have to add 4 more disks of 10 GB in this volume group.


Please look into this case and suggest me how to proceed.

Thanks a lot !
18 REPLIES 18
Pete Randall
Outstanding Contributor
Solution

Re: Extending a Filesystem which is four way striped

I think you've answered your own question:

"Then for my extension to succeed I have to add 4 more disks of 10 GB in this volume group."


Pete

Pete
Kavita Poonia
Regular Advisor

Re: Extending a Filesystem which is four way striped

Thanks a lot Pete for your reply. Can you please tell that after adding four disks of 10 GB and doing pvcreate on them, adding them in VG, extending the LV and then the filesystem what commands should I use. Should I run the simple commands which I use while extending a simple LV which is not stripped or should I need to add some extra switch while doing lvextend.

These are the simple commands for lvextend:

lvextend -L 10240 /dev/conbea_vg/lv_conbeau04
fsadm -F vxfs -b 10240m /con/bea/u04

James R. Ferguson
Acclaimed Contributor

Re: Extending a Filesystem which is four way striped

Hi Kavita:

> Should I run the simple commands which I use while extending a simple LV which is not stripped or should I need to add some extra switch while doing lvextend.

You can elect to specify the pv_paths or not. see the 'lvextend' manpages. In your case, the logical volume will be extended in increments of 4 extents with each of the 4 extents residing on a different physical disk.

Regards!

...JRF...
Siju Vadakkan
Trusted Contributor

Re: Extending a Filesystem which is four way striped

1. extend VG with four disks, disk names should be block device files eg :/dev/dsk/cxtxdx
#vgextend conbea_vg disk1 disk2 disk3 disk4

2. You have to specify total size with both lvextend and fsadm
#lvextend -L 20480 /dev/conbea_vg/lv_conbeau04

#fsadm -F vxfs -b 20480m /con/bea/u04
Kavita Poonia
Regular Advisor

Re: Extending a Filesystem which is four way striped

Thakns James and Siju.

Siju your reply was really helplful. Thanks a lot.
Siju Vadakkan
Trusted Contributor

Re: Extending a Filesystem which is four way striped

Hi kavitha,

Go through the attached doc
Siju
Siju Vadakkan
Trusted Contributor

Re: Extending a Filesystem which is four way striped

Hi kavitha,

Go through the attached doc
Siju
Kavita Poonia
Regular Advisor

Re: Extending a Filesystem which is four way striped

Hi siju. Again thanks a lot but that attached doc is not opening. Can you please reattach it.
Siju Vadakkan
Trusted Contributor

Re: Extending a Filesystem which is four way striped

I am able to open it, you try once again.

Siju
Kavita Poonia
Regular Advisor

Re: Extending a Filesystem which is four way striped

I do not why it is not openning here.
Hein van den Heuvel
Honored Contributor

Re: Extending a Filesystem which is four way striped

fwiw, I'mm able to download and open the attached Office 2003 .DOC file.

What browser/platform are you using?
How many windows for the brower?

Here is why I ask... I often use IE 6.0 on XP. Sometimes download for attachments seem not to work. But then I find that an other window then the one I was workinf from has a light yellow bar on top requesting authorization for active-x download mumbo jumbo.

So maybe clean your desktop. Start 1 fresh IE window, and try again. Do you see, and need, that download acknowledgement?

fwiw,
Hein.


Siju Vadakkan
Trusted Contributor

Re: Extending a Filesystem which is four way striped

Get me ur personal mail ID. I can send to u
shanmuhanandam
HPE Pro

Re: Extending a Filesystem which is four way striped

Hi kavita
can you post the vgdisplay -v output here. so that will be very helpful to resolve the issue.
Regards,
shanmugam.
I am an HPE Employee

Accept or Kudo

Kavita Poonia
Regular Advisor

Re: Extending a Filesystem which is four way striped

Hi Siju,

My personal email id is kavitapoonia@gmail.com. Please forward that doc to this mail id.

Thanks a lot for your help.
Kavita Poonia
Regular Advisor

Re: Extending a Filesystem which is four way striped

Thanks Hein.
Kavita Poonia
Regular Advisor

Re: Extending a Filesystem which is four way striped

Hi Shanmugam,

Here is the outpyt of vgdisplay -v

#vgdisplay -v /dev/conbea_vg|more
--- Volume groups ---
VG Name /dev/conbea_vg
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 6
Open LV 6
Max PV 100
Cur PV 7
Act PV 7
Max PE per PV 3500
VGDA 14
PE Size (Mbytes) 16
Total PE 6076
Alloc PE 5376
Free PE 700
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/conbea_vg/lv_conbeau01
LV Status available/syncd
LV Size (Mbytes) 14336
Current LE 896
Allocated PE 896
Used PV 4

LV Name /dev/conbea_vg/lv_conbeau02
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 640
Used PV 4

LV Name /dev/conbea_vg/lv_conbeau03
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 640
Used PV 4

LV Name /dev/conbea_vg/lv_conbeau04
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 640
Used PV 4

LV Name /dev/conbea_vg/lv_conbeau05
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 640
Used PV 4

LV Name /dev/conbea_vg/lv_conbeaexp
LV Status available/syncd
LV Size (Mbytes) 30720
Current LE 1920
Allocated PE 1920
Used PV 3


--- Physical volumes ---
PV Name /dev/dsk/c70t10d3
PV Name /dev/dsk/c68t10d3 Alternate Link
PV Status available
Total PE 868
Free PE 4
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c70t10d4
PV Name /dev/dsk/c68t10d4 Alternate Link
PV Status available
Total PE 868
Free PE 4
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c70t10d5
PV Name /dev/dsk/c68t10d5 Alternate Link
PV Status available
Total PE 868
Free PE 4
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c70t10d6
PV Name /dev/dsk/c68t10d6 Alternate Link
PV Status available
Total PE 868
Free PE 4
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c70t10d7
PV Name /dev/dsk/c68t10d7 Alternate Link
PV Status available
Total PE 868
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c70t11d0
PV Name /dev/dsk/c68t11d0 Alternate Link
PV Status available
Total PE 868
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c70t11d1
PV Name /dev/dsk/c68t11d1 Alternate Link
PV Status available
Total PE 868
Free PE 684
Autoswitch On
Proactive Polling On


ncsqas02:/.root#
ncsqas02:/.root#
shanmuhanandam
HPE Pro

Re: Extending a Filesystem which is four way striped

Hello,
in your case u have to add 4 new disk and u can extend the lv. in case if u r having free space in other three disk ( 157 PE's per disk) then u can add only one new disk & can extend the lv.

regards,
shanmugam.
I am an HPE Employee

Accept or Kudo

Kavita Poonia
Regular Advisor

Re: Extending a Filesystem which is four way striped

Thanks a lot Shanmugam!