- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Extending lv when have pv links
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2007 11:33 PM
тАО10-19-2007 11:33 PM
I have a requirement to extend a one of LV size of the following VG in my server (Rx7620, HP-UX v11.23).
Here I have attached the vgdispaly output.
--- Volume groups ---
VG Name /dev/vgevabscs01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 4
Act PV 4
Max PE per PV 3839
VGDA 8
PE Size (Mbytes) 8
Total PE 15356
Alloc PE 13880
Free PE 1476
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vgevabscs01/lvol1
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 2500
Allocated PE 2500
Used PV 1
LV Name /dev/vgevabscs01/lvol2
LV Status available/syncd
LV Size (Mbytes) 91040
Current LE 11380
Allocated PE 11380
Used PV 4
--- Physical volumes ---
PV Name /dev/dsk/c16t0d5
PV Name /dev/dsk/c17t0d5 Alternate Link
PV Name /dev/dsk/c21t0d5 Alternate Link
PV Name /dev/dsk/c22t0d5 Alternate Link
PV Status available
Total PE 3839
Free PE 0
Autoswitch On
PV Name /dev/dsk/c17t0d6
PV Name /dev/dsk/c21t0d6 Alternate Link
PV Name /dev/dsk/c16t0d6 Alternate Link
PV Name /dev/dsk/c22t0d6 Alternate Link
PV Status available
Total PE 3839
Free PE 0
Autoswitch On
PV Name /dev/dsk/c21t0d7
PV Name /dev/dsk/c16t0d7 Alternate Link
PV Name /dev/dsk/c17t0d7 Alternate Link
PV Name /dev/dsk/c22t0d7 Alternate Link
PV Status available
Total PE 3839
Free PE 0
Autoswitch On
PV Name /dev/dsk/c16t1d0
PV Name /dev/dsk/c17t1d0 Alternate Link
PV Name /dev/dsk/c21t1d0 Alternate Link
PV Name /dev/dsk/c22t1d0 Alternate Link
PV Status available
Total PE 3839
Free PE 1476
Autoswitch On
As in the output we can see, the space available in 4th physical volume only.
What my fist question is if we issue following command
lvextend тАУl 12856 /dev/vgevabscs01/lvol2
Is it automatically detected that space available only in 4th pv and allocate requested space from there?
Second one is if I need to specify to lvextend forcefully to allocate new space from 4th PV
then which PV name should I use ? Do I need to use
lvextend тАУl 12856 /dev/vgevabscs01/lvol2 /dev/dsk/c16t1d0 ( is it enough to spacify main pv name?)
or
Do I need to use other Alternate link of 4th PV also?
lvextend тАУl 12856 /dev/vgevabscs01/lvol2 /dev/dsk/c16t1d0 /dev/dsk/c17t1d0 /dev/dsk/c21t1d0 /dev/dsk/c22t1d0
Thanks you very much if you can able to give answers above ones.
Thanks & Regards
Dhananjaya Amarakoon.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2007 12:48 AM
тАО10-20-2007 12:48 AM
Re: Extending lv when have pv links
Is it automatically detected that space available only in 4th pv and allocate requested space from there?
< Yes , If the lvol is not in strict policy ..then it can be possible without any issues.
2)
>Second one is if I need to specify to lvextend forcefully to allocate new space from 4th PV
then which PV name should I use ? Do I need to use
lvextend l 12856 /dev/vgevabscs01/lvol2 /dev/dsk/c16t1d0 ( is it enough to spacify main pv name?)
or
Do I need to use other Alternate link of 4th PV also?
< I feel better to use all PV links while doing lvextend or vgextend
Thanks,
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2007 04:14 AM
тАО10-20-2007 04:14 AM
Re: Extending lv when have pv links
>requested space from there?
Yes LVM will extend the LVOL onto the first available PV with free extents which in this case hapens to be the 4th PV.
>Second one is if I need to specify to lvextend forcefully to allocate new space
>from 4th PV then which PV name should I use ?
If you wanted to extend the LVOL onto a specific PV then the syntax would be:
# lvextend -l 12856 /dev/vgevabscs01/lvol2 /dev/dsk/cXtYdZ
>Do I need to use other Alternate link of 4th PV also?
You can use any of the PV name(s) that are associated with the fourth PV. BTW all of these questions have been answered in the lvextend(1M) manpage.
~hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2007 06:32 AM
тАО10-20-2007 06:32 AM
Re: Extending lv when have pv links
Regarding my secound question, Please tell me when I forcefully specified 4th PV Should I use all PV links in one command (lvextend -l 12856 /dev/vgevabscs01/lvol2 /dev/dsk/c16t1d0 /dev/dsk/c17t1d0 /dev/dsk/c21t1d0 /dev/dsk/c22t1d0)
or should I use one of exisiting PV link(s) only ?
Thanks & Regards
Dhananjaya Amarakoon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2007 06:41 AM