- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to add the one more disk which is existing...
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
Forums
Discussions
Discussions
Discussions
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
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
05-18-2006 09:33 AM
05-18-2006 09:33 AM
Thanks in advance.
I have added new disk (/dev/dsk/c21t0d1)to the vg01 and need to add the space in /dev/vg01/lvol1.While adding the space through SAM i got a problem to extend the FS as it is giving strict allocation policy error.I can change that lvchange -s n /dev/vg01/lvol1.
My question is
1)If i will do lvchange and add the space on to the LV(fs).Will it problem as it is not mirrored disk ?I think it will be problem.
2)If i will add one more disk and do the mirror and extend the FS,How can i follow the steps ?
> vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 5
Act PV 5
Max PE per PV 2170
VGDA 10
PE Size (Mbytes) 4
Total PE 10727
Alloc PE 8680
Free PE 2047
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg01/lvol1
LV Status available/syncd
LV Size (Mbytes) 8680
Current LE 2170
Allocated PE 4340
Used PV 2
LV Name /dev/vg01/lvol2
LV Status available/syncd
LV Size (Mbytes) 8680
Current LE 2170
Allocated PE 4340
Used PV 2
--- Physical volumes ---
PV Name /dev/dsk/c2t12d0
PV Status available
Total PE 2170
Free PE 0
Autoswitch On
PV Name /dev/dsk/c2t13d0
PV Status available
Total PE 2170
Free PE 0
Autoswitch On
PV Name /dev/dsk/c2t14d0
PV Status available
Total PE 2170
Free PE 0
Autoswitch On
PV Name /dev/dsk/c2t15d0
PV Status available
Total PE 2170
Free PE 0
Autoswitch On
PV Name /dev/dsk/c21t0d1
PV Name /dev/dsk/c22t0d1 Alternate Link
PV Name /dev/dsk/c23t0d1 Alternate Link
PV Name /dev/dsk/c24t0d1 Alternate Link
PV Status available
Total PE 2047
Free PE 2047
Autoswitch On
===============================================================
> lvdisplay -v /dev/vg01/lvol1 |more
--- Logical volumes ---
LV Name /dev/vg01/lvol1
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 8680
Current LE 2170
Allocated PE 4340
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t12d0 2170 2170
/dev/dsk/c2t13d0 2170 2170
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c2t12d0 00000 current /dev/dsk/c2t13d0 00000 current
00001 /dev/dsk/c2t12d0 00001 current /dev/dsk/c2t13d0 00001 current
00002 /dev/dsk/c2t12d0 00002 current /dev/dsk/c2t13d0 00002 current
00003 /dev/dsk/c2t12d0 00003 current /dev/dsk/c2t13d0 00003 current
00004 /dev/dsk/c2t12d0 00004 current /dev/dsk/c2t13d0 00004 current
00005 /dev/dsk/c2t12d0 00005 current /dev/dsk/c2t13d0 00005 current
00006 /dev/dsk/c2t12d0 00006 current /dev/dsk/c2t13d0 00006 current
00007 /dev/dsk/c2t12d0 00007 current /dev/dsk/c2t13d0 00007 current
00008 /dev/dsk/c2t12d0 00008 current /dev/dsk/c2t13d0 00008 current
00009 /dev/dsk/c2t12d0 00009 current /dev/dsk/c2t13d0 00009 current
00010 /dev/dsk/c2t12d0 00010 current /dev/dsk/c2t13d0 00010 current
00011 /dev/dsk/c2t12d0 00011 current /dev/dsk/c2t13d0 00011 current
00012 /dev/dsk/c2t12d0 00012 current /dev/dsk/c2t13d0 00012 current
00013 /dev/dsk/c2t12d0 00013 current /dev/dsk/c2t13d0 00013 current
00014 /dev/dsk/c2t12d0 00014 current /dev/dsk/c2t13d0 00014 current
00015 /dev/dsk/c2t12d0 00015 current /dev/dsk/c2t13d0 00015 current
00016 /dev/dsk/c2t12d0 00016 current /dev/dsk/c2t13d0 00016 current
Standard input
=====================================================================
> lvdisplay -v /dev/vg01/lvol2 |more
--- Logical volumes ---
LV Name /dev/vg01/lvol2
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 8680
Current LE 2170
Allocated PE 4340
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t14d0 2170 2170
/dev/dsk/c2t15d0 2170 2170
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c2t14d0 00000 current /dev/dsk/c2t15d0 00000 current
00001 /dev/dsk/c2t14d0 00001 current /dev/dsk/c2t15d0 00001 current
00002 /dev/dsk/c2t14d0 00002 current /dev/dsk/c2t15d0 00002 current
00003 /dev/dsk/c2t14d0 00003 current /dev/dsk/c2t15d0 00003 current
00004 /dev/dsk/c2t14d0 00004 current /dev/dsk/c2t15d0 00004 current
00005 /dev/dsk/c2t14d0 00005 current /dev/dsk/c2t15d0 00005 current
00006 /dev/dsk/c2t14d0 00006 current /dev/dsk/c2t15d0 00006 current
00007 /dev/dsk/c2t14d0 00007 current /dev/dsk/c2t15d0 00007 current
00008 /dev/dsk/c2t14d0 00008 current /dev/dsk/c2t15d0 00008 current
00009 /dev/dsk/c2t14d0 00009 current /dev/dsk/c2t15d0 00009 current
00010 /dev/dsk/c2t14d0 00010 current /dev/dsk/c2t15d0 00010 current
00011 /dev/dsk/c2t14d0 00011 current /dev/dsk/c2t15d0 00011 current
00012 /dev/dsk/c2t14d0 00012 current /dev/dsk/c2t15d0 00012 current
00013 /dev/dsk/c2t14d0 00013 current /dev/dsk/c2t15d0 00013 current
00014 /dev/dsk/c2t14d0 00014 current /dev/dsk/c2t15d0 00014 current
00015 /dev/dsk/c2t14d0 00015 current /dev/dsk/c2t15d0 00015 current
00016 /dev/dsk/c2t14d0 00016 current /dev/dsk/c2t15d0 00016 current
Standard input
==============================================
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2006 10:15 AM
05-18-2006 10:15 AM
SolutionSimple answer, change the allocation policy.
lvchange -C n
There is no rule that says a logical volume other than root HAS to be contiguous.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2006 10:22 AM
05-18-2006 10:22 AM
Re: How to add the one more disk which is existing with mirror copies.?
I have one more problem in that query.
I have added new disk /dev/dsk/c21t0d1 to
that vg01 and need to allocate space to LV.
So,i think i have to add one more disk and mirror it.then only i can allocate the space to the LV.
Whats the steps need to follow in this scenario...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2006 10:46 AM
05-18-2006 10:46 AM
Re: How to add the one more disk which is existing with mirror copies.?
I got doc link .I will go throug it and will try to resolve.
http://docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2006 10:52 AM
05-18-2006 10:52 AM
Re: How to add the one more disk which is existing with mirror copies.?
Strick allocation policy means that you can not mirror to the same hard drive. That mean that you got that error becuase you do not have space on the mirrored volume.
First thing you want to do is go back to strict allocation policy.
Then you want to add that second hard drive to vgo1.
After it you can easily extend the logical volume 1 either with SAM or command line and it will work just fine.
# pvcreate /dev/rdsk/cCtTdD
# vgextend vgXY /dev/dsk/cCtTdD
Then you want to extend the LV:
lvextend -L newsize /dev/vgxx/lvolx /dev/dsk/newdisk
Regards,
Jaime