- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: extending the filesystem-- 11iv2
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
09-07-2011 10:53 AM
09-07-2011 10:53 AM
Hi,
The below is the vgdisplay output in my cluster server. OS is 11iv2. I have 4 filesystems in this VG and i could see no free PEs are available to extend the filesystem. In this situation I need to extend one of the filesystem due to its size getting filled. Kindly guide me what is the best way to extend the filesystem.. Is this possible that, if i delete any unwanted filesystem and then when i get the free space, can i extend the required file system..As this VG is active in exclusive mode, what is the procedure to be followed up when extending the filesystem...I knew that I can add 4 more PVs in this VG, that way i will get more extends...Please ask me if any more output is required....
# vgdisplay dev/vg_stc_irb_data
--- Volume groups ---
VG Name /dev/vg_stc_irb_data
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 4
Open LV 4
Max PV 16
Cur PV 12
Act PV 12
Max PE per PV 16184
VGDA 24
PE Size (Mbytes) 32
Total PE 129454
Alloc PE 129454
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
Regards,
Masthan..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2011 11:25 PM
09-07-2011 11:25 PM
Re: extending the filesystem-- 11iv2
If you have PVs (extra disks) to add to this VG, you can do so with vgextend. Afterwards extend LV with lvextend. Both of these actions (vgextend/lvextend) can be done online while the LVs are mounted. The last bit is to extend the filesystem on this LV. If you have Online JFS, this operation too can be done online, no umount necessary. Use fsadm to extend the filesystem online. If you don't have Online JFS, umount the necessary LV first, then use extendfs to extend its file system and then mount it back. This might help: http://www.unixguide.net/hp/hplvmtasks.shtml
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2011 10:56 AM
09-11-2011 10:56 AM
Re: extending the filesystem-- 11iv2
Thanks for your reply.
If I am deleting any mount point within this VG, I will be getting some LV's free right?...So can this free LV's be used to extend the filesystem I wish to do?..
Is there any specific commands i need to use other than #lvextend -L (mentioning the total size after counting the LV's free) /dev/vgname/mylvname
is this enough?
Regards,
Masthan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2011 11:52 AM
09-11-2011 11:52 AM
Solution
@masthan_1 wrote:If I am deleting any mount point within this VG, I will be getting some LV's free right?...So can this free LV's be used to extend the filesystem I wish to do?..
Masthan
Simply deleting a mount point (a directory) and/or all of its contents, does not create free LVM extents. You must 'lvremove' the underlying logical volume or resize it with 'lvreduce' to obtain free extents.
If you wish to preserve a filesystem but reduce its size and in doing so obtain free LVM physical extents for use elsewhere, resize the filesystem downward with 'fsadm' and then do an 'lvreduce'. The point is you must do things in the opposite order that you did them to create the filesystem. To do otherwise will result in filesystem corruption.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2011 10:44 AM
09-26-2011 10:44 AM
Re: extending the filesystem-- 11iv2
unmount, lvremove, then i will get free extends right?...then i can use the free extends to extend the other filesystems right?
Regards,
Masthan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2011 10:48 AM
09-26-2011 10:48 AM
Re: extending the filesystem-- 11iv2
@masthan_1 wrote:
Thanks JRF. But if i dont want that LV & filesystem, i can simply do like this,
unmount, lvremove, then i will get free extends right?...then i can use the free extends to extend the other filesystems right?
That's correct, this will return free extents to the volume group. Depending on the allocation policies (strict, contiguous) of the *other* logical volumes you may nor may not be able to use the freed extents without other reorganizations (e.g. a 'pvmove').
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2011 02:45 PM
09-27-2011 02:45 PM