Lvextend logical volume

lvextend -r -L+100G /dev/VG/LV
this command extends your logical volume. then it does a resize2fs on it as well. added the -r switch to make it launch resize.
Sample Output
vextend -L+78G /dev/THRACE-SHARES/movies 
  Extending logical volume movies to 3.23 TiB
  Logical volume movies successfully resized
resize2fs 1.41.12 (17-May-2010)
Resizing the filesystem on /dev/THRACE-SHARES/movies to 866123776 (4k) blocks.
The filesystem on /dev/THRACE-SHARES/movies is now 866123776 blocks long.

By: bbelt16ag
2013-04-20 14:29:11

What Others Think

lvextend has the following switch which automatically launches resizes the file system: -r, --resizefs Resize underlying filesystem together with the logical volume using fsadm(8).
strasharo · 432 weeks and 1 day ago
thats awesome. i'll see if squeeze has that
bbelt16ag · 432 weeks and 1 day ago
bbelt16ag · 432 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: