View previous topic :: View next topic |
Author |
Message |
robbie-k Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 23 Feb 2004 Posts: 90
|
Posted: Sat Apr 15, 2006 8:04 pm Post subject: Extending an ext3 LVM [Solved] |
|
|
Need to extend an LVM partition (ext3) to save data from a failing drive. Is the below commands the proper way to extend the partition? When I do this does the partition need to be unmounted for both commands?
# lvextend -L+50G /dev/vg/home
# resize2fs /dev/vg/home
must be unmounted to resize the partition _________________ Never trust a pre-compiled kernel.
Last edited by robbie-k on Sat Apr 15, 2006 8:47 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Lorithar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/970193384439c97b02e44.jpg)
Joined: 10 Mar 2006 Posts: 29
|
Posted: Sat Apr 15, 2006 8:46 pm Post subject: |
|
|
Quote: | Need to extend an LVM partition (ext3) to save data from a failing drive. Is the below commands the proper way to extend the partition? When I do this does the partition need to be unmounted for both commands? |
You can resize the volume under the filesystem live -- it has no affect on the filesystem.
ext2 filesystems usually need to be dismounted to reduce, but can (depending on version) be extended on the fly *if* there is sufficient free filesystem space to start.
reiserfs filesystems can be extended on the fly, reduced on the fly, depending on free space.
Quote: | Code: | # lvextend -L+50G /dev/vg/home
# resize2fs /dev/vg/home
|
|
try Code: | lvextend -L +5oG -r /dev/vg/home |
which might well manage to resize the fs at the same time.
if you are unsure - add a -t to the lvextend command and it will TEST the command without doing anything. _________________ I do the computer thing. Lots. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|