lindsayward
May 31st, 2014, 05:34 AM
Hi, and thanks in advance for replying!
I have an existing 12.04 system with 2 HDDs setup using LVM, and I want to know the best way to add my new SSD and install 14.04 on it (best in terms of performance and maintainability).
I think I would like to keep using LVM, but I'm not sure how best to combine/move or start over for the LVs, and what should be on the SSD and what should stay on the HDDs. I am thinking I could do a fresh install to the SSD and leave the existing install as is, until I get it right (safety), then somehow reclaim the space on the current HDDs... maybe.
I use the system for MythTV (run ubuntu rather than mythbuntu though), hence the large "movies" drive.
Here are some details of the current system...
I have connected the new SSD (called sdc) but not done anything to it yet.
fdisk -l
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xbc04db52
Device Boot Start End Blocks Id System
/dev/sda1 2048 3907029167 1953513560 83 Linux
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000d1e6b
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 976895 487424 83 Linux
/dev/sdb2 976896 3907028991 1953026048 8e Linux LVM
Disk /dev/sdc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg-lvroot: 20.0 GB, 19998441472 bytes
255 heads, 63 sectors/track, 2431 cylinders, total 39059456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg-lvhome: 9999 MB, 9999220736 bytes
255 heads, 63 sectors/track, 1215 cylinders, total 19529728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg-lvswap: 4999 MB, 4999610368 bytes
255 heads, 63 sectors/track, 607 cylinders, total 9764864 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg-lvmovies: 3965.3 GB, 3965290807296 bytes
255 heads, 63 sectors/track, 482085 cylinders, total 7744708608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
pvdisplay
--- Physical volume ---
PV Name /dev/sdb2
VG Name vg
PV Size 1.82 TiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 476812
Free PE 0
Allocated PE 476812
PV UUID XHeIXt-d3xr-Wo1f-rZF9-7rCm-nvey-AfJ0QU
--- Physical volume ---
PV Name /dev/sda1
VG Name vg
PV Size 1.82 TiB / not usable 4.09 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 476931
Free PE 0
Allocated PE 476931
PV UUID AYUyq4-1YYp-kOK2-FYyB-qRjV-nZKx-vie8lT
vgdisplay
--- Volume group ---
VG Name vg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 26
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 2
Act PV 2
VG Size 3.64 TiB
PE Size 4.00 MiB
Total PE 953743
Alloc PE / Size 953743 / 3.64 TiB
Free PE / Size 0 / 0
VG UUID KoLIJC-xIB9-uKKh-Q7Ba-nfQR-Hf8I-OqsXS5
lvdisplay
--- Logical volume ---
LV Name /dev/vg/lvroot
VG Name vg
LV UUID iNv6Ss-DDbi-IFdG-dSmB-Ewee-Rxzc-AZvI8L
LV Write Access read/write
LV Status available
# open 1
LV Size 18.62 GiB
Current LE 4768
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Name /dev/vg/lvhome
VG Name vg
LV UUID rEKL7X-nsFk-qpu1-jAVG-ENzm-w1la-igpQRb
LV Write Access read/write
LV Status available
# open 1
LV Size 9.31 GiB
Current LE 2384
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Logical volume ---
LV Name /dev/vg/lvswap
VG Name vg
LV UUID VfIbym-pFvq-Izkc-G0aa-9Yb4-3EXo-UwwPr4
LV Write Access read/write
LV Status available
# open 2
LV Size 4.66 GiB
Current LE 1192
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
--- Logical volume ---
LV Name /dev/vg/lvmovies
VG Name vg
LV UUID 6Xdubx-0I0S-2dWu-cvNz-2jlU-EUWy-dA7qbr
LV Write Access read/write
LV Status available
# open 1
LV Size 3.61 TiB
Current LE 945399
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:3
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg-lvroot 19G 6.1G 12G 35% /
udev 1.7G 4.0K 1.7G 1% /dev
tmpfs 690M 1016K 689M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.7G 108K 1.7G 1% /run/shm
/dev/sdb1 473M 53M 398M 12% /boot
/dev/mapper/vg-lvhome 9.3G 3.1G 5.8G 35% /home
/dev/mapper/vg-lvmovies 3.6T 1.8T 1.7T 51% /movies
Let me know if there is any other info that would be useful, and thank you for taking the time to help me out!
I have an existing 12.04 system with 2 HDDs setup using LVM, and I want to know the best way to add my new SSD and install 14.04 on it (best in terms of performance and maintainability).
I think I would like to keep using LVM, but I'm not sure how best to combine/move or start over for the LVs, and what should be on the SSD and what should stay on the HDDs. I am thinking I could do a fresh install to the SSD and leave the existing install as is, until I get it right (safety), then somehow reclaim the space on the current HDDs... maybe.
I use the system for MythTV (run ubuntu rather than mythbuntu though), hence the large "movies" drive.
Here are some details of the current system...
I have connected the new SSD (called sdc) but not done anything to it yet.
fdisk -l
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xbc04db52
Device Boot Start End Blocks Id System
/dev/sda1 2048 3907029167 1953513560 83 Linux
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000d1e6b
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 976895 487424 83 Linux
/dev/sdb2 976896 3907028991 1953026048 8e Linux LVM
Disk /dev/sdc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg-lvroot: 20.0 GB, 19998441472 bytes
255 heads, 63 sectors/track, 2431 cylinders, total 39059456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg-lvhome: 9999 MB, 9999220736 bytes
255 heads, 63 sectors/track, 1215 cylinders, total 19529728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg-lvswap: 4999 MB, 4999610368 bytes
255 heads, 63 sectors/track, 607 cylinders, total 9764864 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg-lvmovies: 3965.3 GB, 3965290807296 bytes
255 heads, 63 sectors/track, 482085 cylinders, total 7744708608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
pvdisplay
--- Physical volume ---
PV Name /dev/sdb2
VG Name vg
PV Size 1.82 TiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 476812
Free PE 0
Allocated PE 476812
PV UUID XHeIXt-d3xr-Wo1f-rZF9-7rCm-nvey-AfJ0QU
--- Physical volume ---
PV Name /dev/sda1
VG Name vg
PV Size 1.82 TiB / not usable 4.09 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 476931
Free PE 0
Allocated PE 476931
PV UUID AYUyq4-1YYp-kOK2-FYyB-qRjV-nZKx-vie8lT
vgdisplay
--- Volume group ---
VG Name vg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 26
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 2
Act PV 2
VG Size 3.64 TiB
PE Size 4.00 MiB
Total PE 953743
Alloc PE / Size 953743 / 3.64 TiB
Free PE / Size 0 / 0
VG UUID KoLIJC-xIB9-uKKh-Q7Ba-nfQR-Hf8I-OqsXS5
lvdisplay
--- Logical volume ---
LV Name /dev/vg/lvroot
VG Name vg
LV UUID iNv6Ss-DDbi-IFdG-dSmB-Ewee-Rxzc-AZvI8L
LV Write Access read/write
LV Status available
# open 1
LV Size 18.62 GiB
Current LE 4768
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Name /dev/vg/lvhome
VG Name vg
LV UUID rEKL7X-nsFk-qpu1-jAVG-ENzm-w1la-igpQRb
LV Write Access read/write
LV Status available
# open 1
LV Size 9.31 GiB
Current LE 2384
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Logical volume ---
LV Name /dev/vg/lvswap
VG Name vg
LV UUID VfIbym-pFvq-Izkc-G0aa-9Yb4-3EXo-UwwPr4
LV Write Access read/write
LV Status available
# open 2
LV Size 4.66 GiB
Current LE 1192
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
--- Logical volume ---
LV Name /dev/vg/lvmovies
VG Name vg
LV UUID 6Xdubx-0I0S-2dWu-cvNz-2jlU-EUWy-dA7qbr
LV Write Access read/write
LV Status available
# open 1
LV Size 3.61 TiB
Current LE 945399
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:3
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg-lvroot 19G 6.1G 12G 35% /
udev 1.7G 4.0K 1.7G 1% /dev
tmpfs 690M 1016K 689M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.7G 108K 1.7G 1% /run/shm
/dev/sdb1 473M 53M 398M 12% /boot
/dev/mapper/vg-lvhome 9.3G 3.1G 5.8G 35% /home
/dev/mapper/vg-lvmovies 3.6T 1.8T 1.7T 51% /movies
Let me know if there is any other info that would be useful, and thank you for taking the time to help me out!