Building a New Massive MythTV Media Volume with RAID 1 and LVM.

So I’ve got four new 2TB drives mirrored together in pairs with mdadm, then welded together with LVM. Here are the commands I used to execute the build.

fdisk /dev/sdf

# note the mdadm arguments below are prefixed with double dashes.

mdadm –create /dev/md1 –level=1 –raid-devices=2 /dev/sd[fh]1
mdadm –create /dev/md2 –level=1 –raid-devices=2 /dev/sd[gi]1
pvcreate /dev/md1
pvcreate /dev/md2
vgcreate -s 256M RaidDataGroup /dev/md1 /dev/md2
lvcreate -l 14904 –name RaidData RaidDataGroup
mkfs.xfs -i size=1024 /dev/RaidDataGroup/RaidData
mkdir /Volumes/newdata
mount /dev/RaidDataGroup/RaidData /Volumes/newdata

This entry was posted in Computers, Mythtv. Bookmark the permalink.

Comments are closed.