- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to extend an LV while its mounted?
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
12-13-2003 09:08 PM
12-13-2003 09:08 PM
How to extend an LV while its mounted?
Is there a way to extend the size an LV while is mounted?
The VG is mirrored and Strict allocation policy is on.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2003 09:12 PM
12-13-2003 09:12 PM
Re: How to extend an LV while its mounted?
well you can extend any lvol while it is mounted. If you have online JFS installed, you can even increase the filesystem in it while the filesystem ist mounted.
Instead of "extendfs" you have to use "fsadm" in this case.
To find out, if you have Online JFS installed, use "swlist".
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2003 09:20 PM
12-13-2003 09:20 PM
Re: How to extend an LV while its mounted?
Can I just use lvextend.
Thanks,
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2003 10:04 PM
12-13-2003 10:04 PM
Re: How to extend an LV while its mounted?
If you have online jvs,
# lvextend -L xxx /dev/vgxx/lvolx
xxx = size in MB
# fsadm -F vxfs -b yyy /mountpoint
yyy = KB (xxx * 1024)
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 12:30 AM
12-14-2003 12:30 AM
Re: How to extend an LV while its mounted?
You can extend a logical volume any time you want as long as the Volume Group is active.
If you want to extend the file system while it is mounted, you need to have JFS Online installed. If you do, then you can use the fsadm command.
#lvextend -L nnnn /dev/vgname/lvname [/dev/dsk/diskname]
#fsadm -b nnnnnnnn /mountpoint
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 05:33 AM
12-14-2003 05:33 AM
Re: How to extend an LV while its mounted?
The bad news is that Online JFS is not free, you need to buy one license for each host.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 03:05 PM
12-14-2003 03:05 PM
Re: How to extend an LV while its mounted?
Use these command to extend mounted LV:
- umount /mount_point
(If cannot umount, use fuser -cu /mount_point
and then kill -9 PID)
- lvextend -L newsize /dev/vg##/lvol#
- extendfs -F type /dev/vg##/rlvol#
- mount /dev/vg##/lvol# /mountpoint
Goodluck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 04:58 PM
12-14-2003 04:58 PM
Re: How to extend an LV while its mounted?
If you have Online JFS installed you can do it,
#lvextend
#fsadm
if you are using Veritas volume manager insted, you can use
#vxresize
with appropriate options
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2003 07:22 PM
12-14-2003 07:22 PM
Re: How to extend an LV while its mounted?
When it is strict/contiguous, there must be free extents immediatley following those that belong to the logical volume in question. in most cases, this isn't possible.
If the logical volume doesn't actually need to be contiguous, you can change the police with "lvchange -C n" and then you should be able to extend it assuming you have free extends anywhere in the volume group (and assuming the mirror can extend and yet still be on a seperate disk).
If the logical volume needs to be contiguous and there is a logical volume straight after it, you will have to start moving logical volumes around to make space and this is goinf to give you significant trouble if doing it online.