- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvextend vg00 logical volume without any dowtime!!
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
тАО02-01-2009 11:16 PM
тАО02-01-2009 11:16 PM
We would like to extend the logical volume related to /opt. Is there any way through which we can do it without rebooting our servers.
All the valuable comments will be appreciated.
Thanks & regards,
Amit
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2009 11:22 PM
тАО02-01-2009 11:22 PM
Re: lvextend vg00 logical volume without any dowtime!!
Because /opt has a lot of open files, you can check with lsof.
The best way is using ONLINEJFS, you need to license the product, this way you can the FS without needing to umount them.
product: B3929DA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2009 11:27 PM
тАО02-01-2009 11:27 PM
Re: lvextend vg00 logical volume without any dowtime!!
There are few possibilities. Following are some to my knowledge (applicable for HP-UX 11i):
1) If you have OnlineJFS installed.
#swlist -l product | grep Online*
2) If you have DRD (Dynamic Root Disk). More on DRD, refer http://docs.hp.com/en/DRD/index.html
3) refer following link (though for / and /stand, will work for /opt without requireing reboot): http://www.symmetricwebsites.com/articles/HP-UX/hpuxDynamicallyExtendSlashAndOrStand.php
Hope this helps.
Ram.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2009 11:31 PM
тАО02-01-2009 11:31 PM
SolutionOnline doing lvxtend and increasing the Filesystem on that is only posible with the use of the OnlineJFS as said by orangeADM in the post.
1)
#lvextend -L
2)
#fsadm -b
step 2 is only possible with the OnlineJFS.
Else you need to umount the LV and need to do an extendfs after lvextend
#extendfs -F vxfs /dev/
also need to make sure that you have enough free space as available in vg00 and mirrioring policy(also need to see if that is contiguous) of LV (which has /opt) to take into account that teh expansion will be feasible or not.
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2009 11:38 PM
тАО02-01-2009 11:38 PM
Re: lvextend vg00 logical volume without any dowtime!!
Thanks for yor valuable responses.
I tried to increase it using SAM and it extended successfully and the same extended size is visible in "bdf". Is it ok or not?? Do we face any problem in future??
Please clarify,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2009 11:42 PM
тАО02-01-2009 11:42 PM
Re: lvextend vg00 logical volume without any dowtime!!
Please clarify,<<
Hi Astra,
Do we face any problem in future??
NO problem, As You mentioned that you have extended successfully via SAM and the same extended size is visible in "bdf".
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2009 12:00 AM
тАО02-02-2009 12:00 AM
Re: lvextend vg00 logical volume without any dowtime!!
would like to see the O/P of the commands as you can give from your system.
1)#bdf
2)swlist -l product -l bundle | grep -i online
the reason is that lvextend you can always do even on a mounted LV, But the actual part that is of the Extension of the File System that resides on that LV to occupy all the extended space can be online using fsadm if you have OnlineJFS or by unmounting the LV and doing an extendfs for that LV as in absence of OnlineJFS , extendfs is the only resort and extendfs shall work only for an umnounted LV.
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2009 04:43 PM
тАО02-02-2009 04:43 PM
Re: lvextend vg00 logical volume without any dowtime!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2009 06:13 PM
тАО02-02-2009 06:13 PM
Re: lvextend vg00 logical volume without any dowtime!!
The job is only half completed. You did not increase the filesystem, you increased the lvol -- which nothing but disk geometry.
> Is it ok or not??
Nope. bdf is correct. Your vgdisplay command will show the increased size for the lvol, but an lvol is not a filesystem. Filesystems can reside on an lvol, but the lvol could be a swap area, or it could be a raw database volume.
> Do we face any problem in future??
No, but the additional space is wasted.
In other words, expanding an lvol to allow for more files is a two step process. The first half is complete (lvextend). Now run extendfs. NOTE: this is where you will fail until all processes using /opt are stopped. Since this is just about everything, you will realize that the only way to extend the filesystem into the new lvol space is to reboot into single user mode and run extendfs for /opt.
Or, you can purchase the optional Online JFS product (mentioned above) so the filesystem can be extended at any time.
Bill Hassell, sysadmin