Talk:RAID1, Software, How to setup
From FreeBSDwiki
(Difference between revisions)
(also,) |
(why?) |
||
Line 23: | Line 23: | ||
# mv /mnt/etc/fstab /mnt/etc/fstab.old | # mv /mnt/etc/fstab /mnt/etc/fstab.old | ||
# mv /mnt/etc/fstab.new /mnt/etc/fstab | # mv /mnt/etc/fstab.new /mnt/etc/fstab | ||
+ | |||
+ | == why? == | ||
+ | |||
+ | Why SHOULD the sed command be that instead of the other? --[[User:65.4.110.65|65.4.110.65]] 10:22, 1 Oct 2005 (EDT) |
Revision as of 09:22, 1 October 2005
good article....might wanna drop it in the FBSD for Servers section too
--Dave 20:27, 23 Jul 2005 (EDT)
we have one of those? --Jimbo 00:21, 24 Jul 2005 (EDT)
we do now --Dave 01:53, 24 Jul 2005 (EDT)
also,
shouldn't the sed line be "sed s/ad0/mirror\/gm0/g /mnt/etc/fstab > /mnt/etc/fstab.new" instead? (i'd also recommend doing a diff between the fstabs before just switching them, but if you're doing software raid, i guess it can be assumed that you're smart enough to do it or accept the risks)
Now we need to fix fstab to refer to the mirror, not to /dev/ad0 itself. You can either manually edit it using ee or vi and change all references to /dev/ad0? to /dev/mirror/gm0? - ie /dev/ad0s1b becomes /dev/mirror/gm0s1b - or you can use a sed command to do it for you: # sed "s%ad0%mirror/gm0%" /mnt/etc/fstab > /mnt/etc/fstab.new # mv /mnt/etc/fstab /mnt/etc/fstab.old # mv /mnt/etc/fstab.new /mnt/etc/fstab
why?
Why SHOULD the sed command be that instead of the other? --65.4.110.65 10:22, 1 Oct 2005 (EDT)