- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: extending mirrorred lvol
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
тАО03-23-2010 06:01 AM
тАО03-23-2010 06:01 AM
Our /opt filesystem is on lvol4 and I want to extend it. It's already spread across four disks:
--- Logical volumes ---
LV Name /dev/vg00/lvol4
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 2148
Current LE 537
Allocated PE 1074
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/c1t15d0 500 500
/dev/dsk/c5t9d0 37 37
/dev/dsk/c3t15d0 500 500
/dev/dsk/c5t11d0 37 37
And our disks are unbalanced, c5t11d0 has 1035 extents that were unuseable because of strict allocation policy. Now we have two new disks, c5t13d0 and c5t15d0, and I'd like to keep them balanced if possible. Online JFS and mirror disk are installed and working. System is A-class rp2470 on 11.11.
I want to extend /opt, which is lvol4. I think if I use SAM it might take space from c5t11d0 and space from one of the new disks and leave the new disks unbalanced. Should I extend /opt in such a way to force the new space onto the two new disks? If so, how to accomplish? Would I do it in two steps, first do
lvextend -L
then
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c5t15d0
The lvextend man page doesn't indicate the ability to have two physical disk arguments, it says to use the lvol path and the physical disk path to force the extents to come from a certain disk, but how do I force both new sets of extents in a mirrored extension to go to the disks of my choice, or is it not a good practice even if it's possible?
disk layout:
--- Physical volumes ---
PV Name /dev/dsk/c1t15d0
PV Status available
Total PE 4340
Free PE 0
Autoswitch On
PV Name /dev/dsk/c5t9d0
PV Status available
Total PE 4340
Free PE 11
Autoswitch On
PV Name /dev/dsk/c3t15d0
PV Status available
Total PE 4340
Free PE 0
Autoswitch On
PV Name /dev/dsk/c5t11d0
PV Status available
Total PE 4340
Free PE 1035
Autoswitch On
PV Name /dev/dsk/c5t13d0
PV Status available
Total PE 4350
Free PE 4325
Autoswitch On
PV Name /dev/dsk/c5t15d0
PV Status available
Total PE 4350
Free PE 4325
Autoswitch On
Thanks for all replies,
Brian
Campus Card Services
Indiana University
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 06:11 AM
тАО03-23-2010 06:11 AM
SolutionI would break the mirror, extend the logical volume and them mirror the logical volume with a plan insuring both copies can be used.
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
тАО03-23-2010 07:04 AM
тАО03-23-2010 07:04 AM
Re: extending mirrorred lvol
The second vg00 layout doesn't seem to indicate that you are fully in sync'd. I'm guessing some lvol isn't sync'd right. The numbers do not look balanced to me. Looks to me like c5t13d0 is sync'd to c5t15d0, just from a PE amt used.
Go with Stephen's suggestion, ..
break the mirror on all lvols.
Then re-sync them one at a time to a mirror disk of your choice so you can keep them balanced & exactly the way you want them.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 07:39 AM
тАО03-23-2010 07:39 AM
Re: extending mirrorred lvol
Thanks, it sounds like breaking the mirror is the way to go.
Is it safe to do online, or should I unmount before breaking the mirror?
Campus Card Services
Indiana University
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 07:59 AM
тАО03-23-2010 07:59 AM
Re: extending mirrorred lvol
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 08:28 AM
тАО03-23-2010 08:28 AM
Re: extending mirrorred lvol
quite safe, your mirror is not currently working anyway.
lvsplit or lvextend -m 0 might work.
sam/smh can do the job, but I recommend you try the command line.
I would just for the fact that I'm anal, have an Ignite make_tape_recovery or make_net_recovery backup done and verified without errors just to have that warm fuzzy feeling.
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
тАО03-23-2010 08:37 AM
тАО03-23-2010 08:37 AM
Re: extending mirrorred lvol
> SEP: lvsplit or lvextend -m 0 might work.
You mean 'lvreduce', not 'lvextend' to reduce the number or mirror copies.
As for 'lvsplit', I disagree that this is going to gain much of anything other than temporarily preserve what what a mirror copy (until extend one of the logical volumes).
See the manpages.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 09:50 AM
тАО03-23-2010 09:50 AM
Re: extending mirrorred lvol
I'm not sure what you mean by the mirror is not working anyways. Even if the mirroring is not done cleanly and using best practice, doesn't the strict allocation rule guarantee that if any given disk fails the data still resides elsewhere? Thanks,
Brian
Campus Card Services
Indiana University
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 09:53 AM
тАО03-23-2010 09:53 AM
Re: extending mirrorred lvol
"Strict Allocation" is the default when a logical volume is created. It means that no mirrored extents can occupy the same physical volume. After all, if all your mirror copies (or even one extent of a mirror) were on physical volume 'X' then the failure of 'X' could destroy *all* copies.
You have to be foolish and take deliberate steps to disable strict allocation.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 11:52 AM
тАО03-23-2010 11:52 AM
Re: extending mirrorred lvol
I understand the reason for strict allocation, and ours is set that way, I have no plans to change that, it would defeat the purpose of mirroring.
What I don't understand is what you meant by the mirror isn't working anyways, but that's allright, the forums are more for ideas and concepts than precise tasks, and I'm glad the idea of splitting mirrors was raised.
I'll log a call with support for detailed help. Thanks for all the help.
Brian
Campus Card Services
Indiana University