- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Extending File System on RHEL 5.5
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-13-2011 01:29 PM
тАО02-13-2011 01:29 PM
We need to extend file system /opt/pluto by 150 Gigs to a non root volume group assigned file system.
SAN team have provided LUNs on this server.
Can someone elaborate steps to be performed to extend file system here ?
Thanks,
Manoj
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 01:15 AM
тАО02-14-2011 01:15 AM
Re: Extending File System on RHEL 5.5
Basic steps would be:
Determine volume group + logical volume with df.
Add provided LUN(s) into VG with vgextend.
Enlarge logical volume with lvextend.
Enlarge filesystem with resize2fs.
..assuming that the provided LUN(s) are visible and ready for use.
Cheers
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 09:05 AM
тАО02-14-2011 09:05 AM
Solutionhttp://tldp.org/HOWTO/LVM-HOWTO/extendlv.html
Check these articles out. It documents the process of expanding logical volumes very well.
I have used it and it's worked for me.
Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2011 01:08 PM
тАО02-14-2011 01:08 PM
Re: Extending File System on RHEL 5.5
Issue:
/dev/mapper/vgname-lvolname /data is at 99%
How to Increase Filesystem:
vgdisplay vgname
(check if there are free extents to extend the logical volume of the underlying "Filesystem)
lvextend -L +4GB /dev/vgname/volname
resize2fs /dev/vgname/lvolname
ALL done ONLINE without unmounting the filesystem/interrupting I/O.
Now to shrink filesystem ONLINE -- now that is another matter.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2011 08:38 PM
тАО02-21-2011 08:38 PM
Re: Extending File System on RHEL 5.5
So that we do not accidently use the LUNs which are already being used by the systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2011 12:09 AM
тАО02-22-2011 12:09 AM
Re: Extending File System on RHEL 5.5
Example:
# pvcreate /dev/sdc1
Can't initialize physical volume "/dev/sdc1" of volume group "vg00" without -ff
(Oops, it's already in use. No harm done...)
If you use legacy PC partition tables (= those created by fdisk and similar tools) on your disks, you should notice that the disk already has a partition of type "Linux", "Linux LVM", "Linux raid autodetect" or similar.
If you have multipathing, use whatever tool you have to list all multipathed disks ("multipath -l" for RHEL default device-mapper-multipath; "powermt display" for EMC PowerPath; etc.). Then run "pvs" to see all PVs managed by LVM, and look for disks that are in one list but not in the other.
NOTE: if your site is using any software that uses raw disks, look into the documentation of that software to find out how to identify that a disk is in use by that software. (Because raw disk formats are often proprietary, there is no all-encompassing tool for this.)
Make sure other sysadmins at your site know that identification procedure too.
MK