LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lvreduce/lvextend vs lvresize (https://www.linuxquestions.org/questions/linux-newbie-8/lvreduce-lvextend-vs-lvresize-948329/)

drManhattan 06-03-2012 01:32 PM

lvreduce/lvextend vs lvresize
 
Hi

What is the difference in using lvreduce/lvextend vs lvresize ?

Best regards

EricTRA 06-04-2012 12:47 AM

Hi,

All three are symlinks to LVM for as far as I can tell. The only difference, in my opinion, is that lvresize can be used for both operations (shrinking and/or extending) while lvreduce / lvextend can only be used for one option, reducing / extending respectively. If there is something more to it, I'd love to know too. Always eager to learn.

Kind regards,

Eric

zhjim 06-04-2012 01:03 AM

Found one little difference:
lvreduce as the only one of the three commands has the -f option to force operation. At least according to the man page. Cheered to soon when you do a {lvreduce;lvextend;lvresize} --help all three have the -f option :(


All times are GMT -5. The time now is 09:01 PM.