ermeyers
October 14th, 2009, 12:38 AM
I've been reading the various pages on http://help.ubuntu.com (http://help.ubuntu.com/) regarding RAID and LVM.
https://help.ubuntu.com/9.04/serverguide/C/advanced-installation.html
http://https://help.ubuntu.com/community/Installation#Installing on external or RAID hard disks (http://https//help.ubuntu.com/community/Installation#Installing%20on%20external%20or%20RAI D%20hard%20disks)
http://https://help.ubuntu.com/community/Installation/LVMOnRaid (http://https//help.ubuntu.com/community/Installation/LVMOnRaid)
http://https://help.ubuntu.com/community/Installation/SoftwareRAID (http://https//help.ubuntu.com/community/Installation/SoftwareRAID)
http://https://help.ubuntu.com/community/Installation/RAID1%2BLVM (http://https//help.ubuntu.com/community/Installation/RAID1%2BLVM)
I want to install Ubuntu LTSP servers with both SW_RAID and LVM. I have a server named ltsp which has 4 scsi disks /dev/sd[abcd]. Using the LTSP server install selection on the Alternate CD, and selecting "Guided - use the entire disk and setup LVM" partitioning, the VG=ltsp, LV=root|swap_1 are created. I like this basic LVM setup, so I'd like to emulate its LVM organization, when adding RAID to it.
root@lts1:~# ls -l /dev/ltsp
total 0
lrwxrwxrwx 1 root root 21 2009-09-11 15:02 root -> /dev/mapper/ltsp-root
lrwxrwxrwx 1 root root 23 2009-09-11 15:02 swap_1 -> /dev/mapper/ltsp-swap_1
Abbreviated:
root@ltsp:~# lshw -C disk
*-cdrom
...
*-disk:0
logical name: /dev/sda
size: 8683MiB (9105MB)
*-disk:1
logical name: /dev/sdb
size: 8683MiB (9105MB)
*-disk:2
logical name: /dev/sdc
size: 16GiB (18GB)
*-disk:3
logical name: /dev/sdd
size: 8683MiB (9105MB)
Following the https://help.ubuntu.com/9.04/serverguide/C/advanced-installation.html RAID section, I partitioned the disks for RAID, as follows:
sda 9.1G
1 pri 452.4 MB K raid (RAID1 active for swap)
2 pri 8.6 GB K raid (RAID10 active for / part 1)
sdb 9.1 GB
1 pri 9.1 GB K raid (RAID10 active for / part 2)
sdc 18.2 GB
1 pri 452.4 MB K raid (RAID1 spare for swap)
2 pri 8.6 GB K raid (RAID10 spare for / part 1)
sdd 9.1 GB
1 pri 9.1 GB K raid (RAID10 spare for / part 2)
The problem that I'm having is that the section "Logical Volume Manager (LVM)" in the page https://help.ubuntu.com/9.04/serverguide/C/advanced-installation.html talks about LVM install without RAID.
How do I continue from the RAID into adding LVM?
Thanks,
Eric
https://help.ubuntu.com/9.04/serverguide/C/advanced-installation.html
http://https://help.ubuntu.com/community/Installation#Installing on external or RAID hard disks (http://https//help.ubuntu.com/community/Installation#Installing%20on%20external%20or%20RAI D%20hard%20disks)
http://https://help.ubuntu.com/community/Installation/LVMOnRaid (http://https//help.ubuntu.com/community/Installation/LVMOnRaid)
http://https://help.ubuntu.com/community/Installation/SoftwareRAID (http://https//help.ubuntu.com/community/Installation/SoftwareRAID)
http://https://help.ubuntu.com/community/Installation/RAID1%2BLVM (http://https//help.ubuntu.com/community/Installation/RAID1%2BLVM)
I want to install Ubuntu LTSP servers with both SW_RAID and LVM. I have a server named ltsp which has 4 scsi disks /dev/sd[abcd]. Using the LTSP server install selection on the Alternate CD, and selecting "Guided - use the entire disk and setup LVM" partitioning, the VG=ltsp, LV=root|swap_1 are created. I like this basic LVM setup, so I'd like to emulate its LVM organization, when adding RAID to it.
root@lts1:~# ls -l /dev/ltsp
total 0
lrwxrwxrwx 1 root root 21 2009-09-11 15:02 root -> /dev/mapper/ltsp-root
lrwxrwxrwx 1 root root 23 2009-09-11 15:02 swap_1 -> /dev/mapper/ltsp-swap_1
Abbreviated:
root@ltsp:~# lshw -C disk
*-cdrom
...
*-disk:0
logical name: /dev/sda
size: 8683MiB (9105MB)
*-disk:1
logical name: /dev/sdb
size: 8683MiB (9105MB)
*-disk:2
logical name: /dev/sdc
size: 16GiB (18GB)
*-disk:3
logical name: /dev/sdd
size: 8683MiB (9105MB)
Following the https://help.ubuntu.com/9.04/serverguide/C/advanced-installation.html RAID section, I partitioned the disks for RAID, as follows:
sda 9.1G
1 pri 452.4 MB K raid (RAID1 active for swap)
2 pri 8.6 GB K raid (RAID10 active for / part 1)
sdb 9.1 GB
1 pri 9.1 GB K raid (RAID10 active for / part 2)
sdc 18.2 GB
1 pri 452.4 MB K raid (RAID1 spare for swap)
2 pri 8.6 GB K raid (RAID10 spare for / part 1)
sdd 9.1 GB
1 pri 9.1 GB K raid (RAID10 spare for / part 2)
The problem that I'm having is that the section "Logical Volume Manager (LVM)" in the page https://help.ubuntu.com/9.04/serverguide/C/advanced-installation.html talks about LVM install without RAID.
How do I continue from the RAID into adding LVM?
Thanks,
Eric