Results 1 to 4 of 4
HPDL385 with dual raid controllers (8 disks each). During the install of the ISO, it sees the raid controllers individually. I tried "One Generic Drive" but it still only partitions ...
- 06-02-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 11
Ubuntu 9.04
HPDL385 with dual raid controllers (8 disks each). During the install of the ISO, it sees the raid controllers individually. I tried "One Generic Drive" but it still only partitions one of the raid controllers.
Is it possible after the OS is installed to configure the space as one logical volume?
- 06-02-2010 #2
Hi, Triton46, and welcome
You may use LVM, if you what you want is to use all 16 disks as one. Why do you want that?
with lvm you can create one volume group with all your raid/disks (those will be the physical volumes). Then you create logical volumes (one or more) that will act like partitions (but that can be extended/grow)
Any way, the idea is that with lvm you can create logical volumes and after (whenever you need) you may add space to them with space from the same or another disk/raid
See LVM HOWTO, Chapter 11 for a quick how it is done.
Hope that helps
Regards
Luis
PS: You may also use mdadm to make a software raid of your hardware raids if they have the same size.
- 06-02-2010 #3Just Joined!
- Join Date
- Jun 2010
- Posts
- 11
Thanks for the reply, yes, I'd like to create one big bucket. Could you walk me through how I would go about creating an LVM? I've been googling around but finding little information.
- 06-03-2010 #4
LVM HOWTO, is all there, I guess
You have physical volumes, that's your hard drives or hardware/software raids. You can make a volume group with them. Then you can make one or several logical volumes out of it.
logical volumes is what you use.
Like I have two volumes groups (on karmic 9.10, lvm2)
each one based on two mdadm raids (physical as far as lvm concern)Code:$ sudo vgdisplay --- Volume group --- VG Name vgraid0 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 7 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size 15.32 GB PE Size 4.00 MB Total PE 3922 Alloc PE / Size 3072 / 12.00 GB Free PE / Size 850 / 3.32 GB VG UUID BG3CUG-3FWk-6rKb-t3tI-8NdP-mKhS-6Ckmvj --- Volume group --- VG Name vgraid1 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 12 VG Access read/write VG Status resizable MAX LV 0 Cur LV 4 Open LV 4 Max PV 0 Cur PV 1 Act PV 1 VG Size 120.50 GB PE Size 4.00 MB Total PE 30847 Alloc PE / Size 30847 / 120.50 GB Free PE / Size 0 / 0 VG UUID V897j7-BTCg-3NeA-Rc0G-igu9-4Zwd-UOHpGn
With those I made several logical volumesCode:$ sudo pvdisplay --- Physical volume --- PV Name /dev/md6 VG Name vgraid0 PV Size 15.32 GB / not usable 256.00 KB Allocatable yes PE Size (KByte) 4096 Total PE 3922 Free PE 850 Allocated PE 3072 PV UUID UFcA7G-ITRt-vh8N-SKmB-0QbL-vrRx-e4CSLh --- Physical volume --- PV Name /dev/md2 VG Name vgraid1 PV Size 120.50 GB / not usable 1.75 MB Allocatable yes (but full) PE Size (KByte) 4096 Total PE 30847 Free PE 0 Allocated PE 30847 PV UUID v2OcAK-R7nr-hClE-mfAf-b6M2-gcV3-lpTPv2
Which I have mounted like thisCode:$ sudo lvdisplay --- Logical volume --- LV Name /dev/vgraid0/var VG Name vgraid0 LV UUID z9DW66-PHRe-Ffey-1hjD-G2gR-E0et-Ht7chF LV Write Access read/write LV Status available # open 1 LV Size 10.00 GB Current LE 2560 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:0 --- Logical volume --- LV Name /dev/vgraid0/wpagefile VG Name vgraid0 LV UUID 11nawQ-WEd6-pwTE-wOg9-206b-9FLD-5ofqlL LV Write Access read/write LV Status available # open 0 LV Size 2.00 GB Current LE 512 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:1 --- Logical volume --- LV Name /dev/vgraid1/root VG Name vgraid1 LV UUID ydlZHz-czqd-qvQ7-DLTN-T2q3-KBLk-XRurTI LV Write Access read/write LV Status available # open 1 LV Size 5.00 GB Current LE 1280 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:2 --- Logical volume --- LV Name /dev/vgraid1/libvirt VG Name vgraid1 LV UUID PwdtRY-2IBl-w0ra-xMAg-Nm2e-jL56-NYHfn2 LV Write Access read/write LV Status available # open 1 LV Size 40.00 GB Current LE 10240 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:3 --- Logical volume --- LV Name /dev/vgraid1/home VG Name vgraid1 LV UUID DVt4re-gcLO-n3Jk-6Kjv-8dnl-uY7K-93xnYd LV Write Access read/write LV Status available # open 1 LV Size 15.00 GB Current LE 3840 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:4 --- Logical volume --- LV Name /dev/vgraid1/backup VG Name vgraid1 LV UUID bXjMMf-nP0X-RR7E-d0zg-F4uZ-IgSD-fv9pGL LV Write Access read/write LV Status available # open 1 LV Size 60.50 GB Current LE 15487 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:5
To install lvm you may runCode:$ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' to print the universally unique identifier # for a device; this may be used with UUID= as a more robust way to name # devices that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/mapper/vgraid1-root / xfs defaults 0 1 # /boot was on /dev/md0 during installation UUID=ec79891c-e0c6-4bb7-9ac1-7505cc31a095 /boot ext2 defaults 0 2 #/dev/mapper/vgraid0-var UUID=f10e8375-c367-46e1-99f0-befc709e5753 /var xfs defaults 0 2 # /dev/mapper/vgraid1-libvirt UUID=55772291-a674-4949-8832-8322cf5b9108 /var/lib/libvirt xfs defaults 0 2 #/dev/mapper/vgraid1-home UUID=8a6695e1-2ab7-402f-8dd0-4b7587891b9a /home xfs defaults 0 2 # swap was on /dev/md1 during installation UUID=f2c7a5f8-a519-4f41-95aa-f775fef9b9ab none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0 192.168.xxx.yyy:/home/lpaulo/backup /home/lpaulo/backup nfs defaults,noauto 0 0 /dev/mapper/vgraid1-backup /mnt/temp_backup xfs defaults 0 3
$ sudo apt-get install lvm2
and optionally
$ sudo apt-get install system-config-lvm
Post your questions as you go, and have fun
Regards
Luis


Reply With Quote