- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Expand Linux Partition.
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-19-2007 03:54 PM
тАО07-19-2007 03:54 PM
Expand Linux Partition.
I have Linux Mail server, the mail box partition is running out of space. I have added the new LUN to this partition using concatenation, but please let us know how to expand partition from OS side.
Thanks & Regards
Walter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 06:36 PM
тАО07-19-2007 06:36 PM
Re: Expand Linux Partition.
Expanding with an LVM is easy:
- Add LUN to box.
- Verify box has seen the new LUN (ie. dmesg and logs)
- pvcreate /dev/disk/
- vgextend
- now use lvextend to extend your data partitions, for example, to add 20G: lvextend -L +20G /dev/disk/vgsan/maildata
- depending upon the filesystem & distribution(actually the version & config of mke2fs and kernel (>= 2.6.12) is important) used, you can use online or offline resizing. For offline resizing you'll need to stop your mailsoftware & umount the /dev/vgsan/maildata device
* Online ReiserFS 3.6: resize_reiserfs /dev/vgsan/maildata
* Online Ext3: resize2fs /dev/vgsan/maildata (this Ext3 option is very dependant upon your distribution, wheter the original filesystem was created with the necessary online resize options: sparse_super,filetype,resize_inode)
* ext2resize also exists, but afaik it is going end of life, use the replacement from e2fsprogs: resize2fs.
* Offline Ext2/3: just run resize2fs /dev/vgsan/maildata
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2007 01:43 AM
тАО07-20-2007 01:43 AM
Re: Expand Linux Partition.
Are you using a hardware RAID, MD devices (mdadm-raidtools) or LVM?
Can you post the output of:
fdisk -l
df
vgdisplay -v
And the name of the file system that you want to extend.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2007 11:29 PM
тАО07-20-2007 11:29 PM
Re: Expand Linux Partition.
as Ivan already wrote we need some additional informations about you're enviroment.
There are different ways. If you're not using LVM, but RAID Controllers with local disks, you can try to expand the array. Then you can expand the filesystem. Remember: The free space after expanding an array is at the end of the disk. So if you're filesystem is not the last parition on that array, you can't expand it.
The most filesystems that you can use with linux can be extended, some online, some offline. I always try to do this kind of work in a maintenance window with a tested backup in my back. ;)
Best regards,
Patrick
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2007 05:14 PM
тАО07-22-2007 05:14 PM
Re: Expand Linux Partition.
Thanks for the reply, I do not have LVM but has RAID configured, also I found on net that "resiz2fs" is good command to expand the partition.
Please let us know is it the only command or is there any other alternative good command ?
Thanks & Regards
Walter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2007 09:28 PM
тАО07-22-2007 09:28 PM
Re: Expand Linux Partition.
if you're using an RAID Controller, you can expand the array with additional disks. After that check the new size of the logical drive with fdisk. The command resize2fs is only for ext2/3.
Before you can resize, you should unmount the volume and check it with fsck. After that you can resize it. Check the manpage of resize2fs.
Best regards,
Patrick
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2007 01:49 AM
тАО07-23-2007 01:49 AM
Re: Expand Linux Partition.
What is your current partitioning scheme?
Can you send us "mount" and "du / | sort -rn | head -20" output?