Zapnologica |
02-12-2014 01:41 PM |
Help With LVM in Ubuntu
Good day all, I am new to this forum so I say hello.
I need some help with a little boo boo I made. I just installed a nice new fresh copy of Ubuntu Server, Installed Webmin and then started playing around trying to mount a 3tb drive to the system. Now I chose to install my setup and a LVM drive as I though it would give me allot of flexibility. But I seem to have messed it up now.
Basically I exended the root drive to all my free disk space. Here is my situation:
Code:
dylan@server:~$ sudo pvdisplay -m
[sudo] password for dylan:
--- Physical volume ---
PV Name /dev/sda5
VG Name server-vg
PV Size 232,65 GiB / not usable 1,81 MiB
Allocatable yes (but full)
PE Size 4,00 MiB
Total PE 59557
Free PE 0
Allocated PE 59557
PV UUID n43xj5-aexN-W9n7-SuE0-RIFe-p2dt-W9G1n9
--- Physical Segments ---
Physical extent 0 to 59076:
Logical volume /dev/server-vg/root
Logical extents 0 to 59076
Physical extent 59077 to 59555:
Logical volume /dev/server-vg/swap_1
Logical extents 0 to 478
Physical extent 59556 to 59556:
Logical volume /dev/server-vg/root
Logical extents 59077 to 59077
--- Physical volume ---
PV Name /dev/sdb2
VG Name server-vg
PV Size 2,73 TiB / not usable 3,00 MiB
Allocatable NO
PE Size 4,00 MiB
Total PE 715364
Free PE 0
Allocated PE 715364
PV UUID 90NDL3-LZCU-H7FH-Z1Dw-S7AW-tOxe-3Uv612
--- Physical Segments ---
Physical extent 0 to 715363:
Logical volume /dev/server-vg/root
Logical extents 59078 to 774441
--- Physical volume ---
PV Name /dev/sdb1
VG Name server-vg
PV Size 127,81 MiB / not usable 3,81 MiB
Allocatable NO
PE Size 4,00 MiB
Total PE 31
Free PE 0
Allocated PE 31
PV UUID rMOQPq-1Smm-MkfI-9PGi-cME0-7KWD-feTzLX
--- Physical Segments ---
Physical extent 0 to 30:
Logical volume /dev/server-vg/root
Logical extents 774442 to 774472
Here is my Logical Volumes:
Code:
dylan@server:~$ lvdisplay -m
WARNING: Running as a non-root user. Functionality may be unavailable.
No volume groups found
dylan@server:~$ sudo lvdisplay -m
--- Logical volume ---
LV Name /dev/server-vg/root
VG Name server-vg
LV UUID W4tvZX-FohJ-Ufqc-2LcE-rsFd-ay8Q-KFMbzG
LV Write Access read/write
LV Status available
# open 1
LV Size 2,95 TiB
Current LE 774473
Segments 4
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Segments ---
Logical extent 0 to 59076:
Type linear
Physical volume /dev/sda5
Physical extents 0 to 59076
Logical extent 59077 to 59077:
Type linear
Physical volume /dev/sda5
Physical extents 59556 to 59556
Logical extent 59078 to 774441:
Type linear
Physical volume /dev/sdb2
Physical extents 0 to 715363
Logical extent 774442 to 774472:
Type linear
Physical volume /dev/sdb1
Physical extents 0 to 30
--- Logical volume ---
LV Name /dev/server-vg/swap_1
VG Name server-vg
LV UUID fdgcQU-ARVD-jp8h-tPFw-a3Bm-fi75-xeWbyD
LV Write Access read/write
LV Status available
# open 2
LV Size 1,87 GiB
Current LE 479
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Segments ---
Logical extent 0 to 478:
Type linear
Physical volume /dev/sda5
Physical extents 59077 to 59555
Now what I actully want to do is remove my 3tb drive from the LVM as I want to store important backups on it. And if say my 250 root drive dies I want to be able to plug the 3tb into a windows machine and read the data off it.
I really hope that I can fix this issue.
Thanks
|