- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Extending mirrored logical volume
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
тАО07-08-2009 12:01 AM
тАО07-08-2009 12:01 AM
Extending mirrored logical volume
I want to extend /var file system by 500MB.
When I checked with vgdisplay -v vg00 I found that its mirrored as PV used are showinf as 2.
Can you please tell me how I can extend the file system for mirrored volume. I think fsadm would be the command but not sure for mirrored volume.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 12:12 AM
тАО07-08-2009 12:12 AM
Re: Extending mirrored logical volume
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 12:16 AM
тАО07-08-2009 12:16 AM
Re: Extending mirrored logical volume
Break the mirror.
lvextend -m 0
lvsplit can also be used.
lvextend -M
lvextend -m 1 < logical volume name> < disk name(s)> to rebuild the mirror.
Not breaking the mirror might lead to incomplete mirroring, or the logical volume not being complete in the event of a lost disk.
You would to extend the file system itself need to umount /var and run extendfs unless you have online JFS.
See Berd's response in this thread:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1080381
fsadm -F vxfs -b
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
тАО07-08-2009 12:33 AM
тАО07-08-2009 12:33 AM
Re: Extending mirrored logical volume
#lvchange -C n lvname
split the logical volume
#lvsplit lvname
extend the logical volume
#lvextend -L size lvname
#lvextend -L size lvnameb
merge the logical volume
#lvmerge lvname lvnameb
extend the file system
#fsadm -F vxfs -b
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 02:49 AM
тАО07-08-2009 02:49 AM
Re: Extending mirrored logical volume
You already got different procedures to extend /var when it is mirrored.
NOte: Used PV in vgdisplay can be 2 but that does NOT mean it is mirrored.....check with "lvdisplay /dev/vg00/xxxx" and look for mirror copies, if it is one that means its mirrored.
Regds,
R.K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 02:53 AM
тАО07-08-2009 02:53 AM
Re: Extending mirrored logical volume
Regds,
R.K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 03:48 AM
тАО07-08-2009 03:48 AM
Re: Extending mirrored logical volume
> SEP: Break the mirror. Not breaking the mirror might lead to incomplete mirroring, or the logical volume not being complete in the event of a lost disk.
What?!? There is NO NEED to break the mirror to extend the logical volume! This unnecessarily complicates your actions and creates a window (albeit small) where you have no high-availability and data protection.
To extend a filesystem housed in a mirrored logical volume, 'lvextend' the logical volume. All mirrors by default will be extended too. Then, enlarge the filesystem using 'fsadm' if you have OnlineJFS. If you lack OnlineJFS boot into single user mode and using the commands in '/sbin' perform an 'lvextend' and and 'extendfs'. A reboot afterwards is the simplest way to resume normal operations.
To see if a _logical_volume_ is mirrored, do:
# lvdisplay /dev/vgNN/lvolX
Look for "Mirror copies" greater than zero (0). If the number of mirror copies exceeds zero, the logical volume is mirrored.
Adding '-v' to the 'lvdisplay' will show you the physical volumes on which the mirrored extents live.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 05:01 AM
тАО07-08-2009 05:01 AM
Re: Extending mirrored logical volume
I agree with James, There is not need to break mirror.
1. Check for Mirror status with lvdisplay -v
than check for Free PE on Disk
than
lvextend -L 500
Than
fsadm
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 05:12 AM
тАО07-08-2009 05:12 AM
Re: Extending mirrored logical volume
Saying that you need to un-mirror a mirrored LV or lvsplit a mirrored LV in order to extend it is patently ridiculous. There's absolutely no need to do any of that.
If you have free extents on ALL disks in the mirror then it is as simple as JRF has said above.
Anything else is unnecessarily complicated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 09:21 AM
тАО07-08-2009 09:21 AM
Re: Extending mirrored logical volume
if you have online JFS, do it on fly. Even no need to unmount it.
Thanks