I rented a server from a provider and they won't install RAID0 without an additional fee.
So I'm trying to figure out how to link these two drives so that my programs that are installed on the hard disk will see the space from the second drive.
This is how it's setup:
df -h
:
Filesystem Size Used Avail Use% Mounted on
rootfs 139G 93G 39G 71% /
udev 10M 0 10M 0% /dev
tmpfs 599M 208K 599M 1% /run
/dev/disk/by-uuid/e7a9cc0e-9caa-4d33-b60f-... 139G 93G 39G 71% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.7G 0 2.7G 0% /run/shm
/dev/sda1 961M 36M 877M 4% /boot
/dev/sda5 139G 93G 39G 71% /media/hd
fdisk -l
:
Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders, total 312500000 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: 0x00066abb
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2000895 999424 83 Linux
/dev/sda2 2002942 312498175 155247617 5 Extended
/dev/sda5 2002944 296499199 147248128 83 Linux
/dev/sda6 296501248 312498175 7998464 82 Linux swap / Solaris
Disk /dev/sdb: 160.0 GB, 160000000000 bytes
58 heads, 29 sectors/track, 185790 cylinders, total 312500000 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: 0x00088a99
Device Boot Start End Blocks Id System
/dev/sdb1 2048 312499999 156248976 83 Linux
I did my best with my n00bness to mount the 2nd drive. Does anyone know what I need to do to make the drives show up as one?
/dev/sda5
anddev/disk/by-uuid/e7...
are almost certainly the same volumes given their stats. I suspect your provider just provides the/media/hd
mount point as a convenience. – jscott May 28 '13 at 01:07fdisk -l
in addition to thedf
output? It's a little unclear which ones are the drives you want to mirror. – Bratchley May 28 '13 at 02:00mdadm
to mirror the individual partitions to their LVM analogs, then once the mirror is completed, break the mirror,pvcreate
the source volumes and expand out the new logical volumes as you see fit. – Bratchley May 28 '13 at 11:29