Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Extending an ext3 LVM [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
robbie-k
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2004
Posts: 90

PostPosted: Sat Apr 15, 2006 8:04 pm    Post subject: Extending an ext3 LVM [Solved] Reply with 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?

# 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
View user's profile Send private message
Lorithar
n00b
n00b


Joined: 10 Mar 2006
Posts: 29

PostPosted: Sat Apr 15, 2006 8:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum