- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Extend a filesystem
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
тАО11-28-2007 06:58 AM
тАО11-28-2007 06:58 AM
Extend a filesystem
I'm a fresh bee in Linux. I would like to extend a filesystem which looks like,
/dev/silo/c0d0p2 66054908 57574968 5124548 92% /home/rpt
Linux atdbs05 2.4.21-40.ELsmp #1 SMP Thu Nov 28 14:15:39 EST 2007 i686 i686 i386 GNU/Linux
Could someone throw some lights, Thxs WH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 08:36 AM
тАО11-28-2007 08:36 AM
Re: Extend a filesystem
Probably you need to backup, destroy, resize, restore your partion. If you do that, ensure to use LVM now.
There may be workarounds to this, but is dangerous, you can loss your data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 09:07 AM
тАО11-28-2007 09:07 AM
Re: Extend a filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 04:41 PM
тАО11-28-2007 04:41 PM
Re: Extend a filesystem
Here are the steps involved for EXPANDING a filesystem & partition:
1. Backup your data.
2. Print the output from the fdisk -l command on a printer, or write down the details by hand. This is in case you need to restore your partition table to it's previous state.
3. Make note of the cylinder size of the disk in bytes, and call this number C. For example, from the following output you would note C = 8225280
Disk /dev/hda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
4.
5. Run the command tune2fs -l
6. Make note of the following values from the above output: Block count, Block Size, and Free blocks. Label the Block Count T, the Block Size K, and Free Blocks F.
7. Reboot the system into rescue mode. Do this by booting off of the first CD and typing linux rescue at the boot: prompt.
8. DO NOT mount any partitions, especially those on the device containing filesystems you are going to resize.
9. Take the number of bytes you would like to add to the filesystem and label it Z.
10. Divide Z by C, rounding any fraction up to the next whole number or add 1 if the result is zero. Call this resulting number N.
11. Calculate ((N*C)/K) and call the result X.
12. Add X to T calling the result R.
13. Execute the command e2fsck -fy
14. Enter the fdisk utility with the command fdisk
15. Display the current partition table with the p command.
16. Use the d command to delete the partition the resized filesystem is on.
17. Use the n command to create a new partition.
18. For the starting cylinder, specify the same value as before. (You did print out the original partition table in step 2, right?)
19. For the ending cylinder, specify the original ending cylinder Plus N.
20. Use the w command to save the new partition table.
21. Run the command e2fsck -y
22. Execute the command resize2fs -f
Note: you must use -f to grow filesystem otherwise it will refuse the command.
23. Assuming the resize was successful, run the command e2fsck -y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2007 04:43 PM
тАО11-28-2007 04:43 PM
Re: Extend a filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 08:37 PM
тАО11-29-2007 08:37 PM
Re: Extend a filesystem
pvdisplay
lvcreste
lvdispay
these are all the commands the must be used to creste the volume and then makefilesystem using
mkfs command and filename. for more refernce log on to
//tldp.org/HOWTO/LVM-HOWTO/index.html