LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   LVM question - move, resize. (https://www.linuxquestions.org/questions/linux-software-2/lvm-question-move-resize-813600/)

nimnull22 06-11-2010 01:14 PM

LVM question - move, resize.
 
Dear All.
I have kind of test partition, but I need lv_root on it. So I have:
Code:

    Using physical volume(s) on command line
  PV                  VG      Fmt  Attr PSize      PFree  Start    SSize    LV            Start  Type    PE Ranges         
  /dev/sda6  VolGroup lvm2 a-  29.73g 440.00m      0    6859    lv_root    0        linear  /dev/sda6:0-6858 
  /dev/sda6  VolGroup lvm2 a-  29.73g 440.00m  6859      128    lv_swap  0        linear  /dev/sda6:6859-6986
  /dev/sda6  VolGroup lvm2 a-  29.73g 440.00m  6987      512    lv_root    6859  linear  /dev/sda6:6987-7498
  /dev/sda6  VolGroup lvm2 a-  29.73g 440.00m  7499          2    lv_swap  128    linear  /dev/sda6:7499-7500
  /dev/sda6  VolGroup lvm2 a-  29.73g 440.00m  7501      110            0 free

I want to move "lv_swap" to the end of VG. I want to delete its segment, and rest of VG to use for "lv_root".

Can anyone give me suggestion how to do it.
Thanks

ichrispa 06-11-2010 07:58 PM

This howto did me a lot of good ;)

http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html

nimnull22 06-12-2010 04:29 AM

Thanks, I will try to do as suggested.


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