|
From: Dominic R. <dl...@ed...> - 2013-06-07 13:46:37
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Thanks guys for your replies. My particular problem was that I
needed a location available at boot-time before md assembles the
RAID1 array which contains the devil-linux VG. <br>
<br>
Background: <br>
<br>
I was trying to setup a RAID1 array combining SSD (/dev/sdb) as one
drive and conventional platter drive ('rust', /dev/sdc) as the
other, with this command:<br>
<br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<span class="CodeChar"><span style="font-size:11.0pt;
line-height:115%;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;
mso-bidi-font-family:"Times
New Roman";mso-bidi-theme-font:minor-bidi;
mso-fareast-language:EN-US;mso-bidi-language:EN-US">mdadm -C
/dev/md0
--level=raid1 -n 2 /dev/sdb2 --write-mostly --write-behind=16383
--bitmap=/mnt/raid1.bmp --bitmap-chunk=256M /dev/sdc2<br>
<br>
</span></span>This configuration should give the same read speed
as SSD alone and was intended to minimise write slowdowns caused by
the 'rust' drive. <br>
<br>
/dev/sdb1 is a small partition on the SSD formatted with ext2 for
the sole purpose of holding the 'write intent bitmap file' which you
have to have for this raid configuration. By making this file
external to the array but located on the SSD. So I put /dev/sdb1 in
/etc/fstab to be auto-mounted as /mnt.<br>
<br>
It was auto-mounted, but it didn't work for the purpose - md (the
RAID daemon) failed to start. I'm guessing that at the point in the
boot process when md starts /etc/fstab has not yet been processed,
so md could not see /mnt/raid1.bmp and it spat its dummy out.<br>
<br>
For now, I'm using a non-RAID configuration based just on SSD and
will rely regular (but not of course instantaneous) backups.<br>
<br>
Dominic<br>
<br>
07/06/2013 07:28, Motycka Jiri wrote:<br>
<blockquote cite="mid:51B...@vc..." type="cite">
<pre wrap="">You can use bind mount if you need to have some data in /mnt directory.
man mount
mount --bind olddir newdir
Jiri
Dick Middleton wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 06/06/13 18:25, Dominic Raferd wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Does Devil-linux have any other available mountpoints for hard disk
partitions at boot time (i.e. for listing in /etc/fstab) apart from /mnt
and those inside a devil-Linux VG. Fortunately I only needed one, so I
am using /mnt!
Just wondering...
</pre>
</blockquote>
<pre wrap="">I guess on DL most of the file systems are read-only so if you're going to
create a new mount point it'd have to be in shared memory - /etc, /var and so
on. You can also create them on a disc already mounted on /mnt. Commonly
subdirectories of /mnt are created for such things. /mnt/foo /mnt/bar and so on.
Dick
</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>
|