mounting a raid partition to /dir
Hi, all. I am setting up a little file server. I created some partitions during install:
sda_______sdb
../..|../scratch...(50 gb each)
..../www...........(raid md126, 150 gb)
..../repos.........(raid md127, 750 gb)
I could have sworn I told the installer to mount md126 as /www, and md127 as /repos, but this turns out to not have been the case.
It created the /repos and /www folders, but apparently didn't link them to the raid partitions. I found this out when I filled up /. Oopsie.
% df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 50395844 5814504 42021340 13% /
/dev/sdb1 50395844 36636116 11199728 77% /scratch
tmpfs 3958980 0 3958980 0% /dev/shm
So that's not what I had in mind... (In case you're curious, I had filled up /, but mved it to /scratch.)
I ran fdisk -l, and it listed the partitions, but I noticed that both md127 and md126
"Disk /dev/md126 doesn't contain a valid partition table"
And, if it's any help:
%cat /etc/fstab
/dev/sda1 / ext4 defaults 1 1
/dev/md1 /repos btrfs defaults 1 2
/dev/md3 /www btrfs defaults 1 2
/dev/sdb1 /scratch ext4 defaults 1 2
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
So my question:
How do I mount /dev/md127 so that when I write a file to /repos, it is stored on that raid partition, rather than the / partition? If it helps, I'm mostly interacting with /repos using sftp and git.
Last edited by mmtrebuchet; 01-21-2012 at 10:27 PM.
Reason: added cat /etc/fstab.
|