I've set up a home server and I've set-up RAID-5 with 3 drives, mostly by following the guides here (http://www.howtogeek.com/51873/how-t...ver-on-ubuntu/) and here (http://ubuntuforums.org/showthread.php?t=517282).
I had some problems setting up the array but finally got i working (seemed to be a problem with how I had setup the config), but now I have a space that is called /dev/md0/.
I have a problem and a question:
First the problem, I run this in the terminal:
Code:
sudo mkfs.ext4 /dev/md0
Which seems to do nothing, it creates no partion which can be mounted or anything, although the output seems ok:
Code:
mke2fs 1.42.5 (29-Jul-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=128 blocks, Stripe width=256 blocks
244178944 inodes, 976690944 blocks
48834547 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
29807 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
And now for the question:
fdisk -l command shows two "swap" which is roughly the size of the array, which is listed under /dev/mapper/
What exactly is those drives and should they be there?
When I do sudo fdisk -l the output is:
Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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
Device Boot Start End Blocks Id System
/dev/sda1 1 312581807 156290903+ ee GPT
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
63 heads, 63 sectors/track, 984386 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: 0x0001315a
Device Boot Start End Blocks Id System
/dev/sdb1 2048 3907029167 1953513560 fd Linux raid autodetect
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
63 heads, 63 sectors/track, 984386 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: 0x000264b1
Device Boot Start End Blocks Id System
/dev/sdc1 2048 3907029167 1953513560 fd Linux raid autodetect
Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
63 heads, 63 sectors/track, 984386 cylinders, total 3907029168 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: 0x00052515
Device Boot Start End Blocks Id System
/dev/sdd1 2048 3907029167 1953513560 fd Linux raid autodetect
Disk /dev/md0: 4000.5 GB, 4000526106624 bytes
2 heads, 4 sectors/track, 976690944 cylinders, total 7813527552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 1048576 bytes
Disk identifier: 0x00000000
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/mapper/ServerWatcher-root: 155.6 GB, 155608678400 bytes
255 heads, 63 sectors/track, 18918 cylinders, total 303923200 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/ServerWatcher-root doesn't contain a valid partition table
Disk /dev/mapper/ServerWatcher-swap_1: 3972 MB, 3972005888 bytes
231 heads, 4 sectors/track, 8395 cylinders, total 7757824 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: 0x2ed23834
Device Boot Start End Blocks Id System
/dev/mapper/ServerWatcher-swap_1p1 2048 7757823 3877888 fd Linux raid autodetect
Disk /dev/mapper/ServerWatcher-swap_1p1: 3970 MB, 3970957312 bytes
255 heads, 63 sectors/track, 482 cylinders, total 7755776 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/ServerWatcher-swap_1p1 doesn't contain a valid partition table
Bookmarks