Re: Hardware RAID df output...



Jason Rangle <jjrangle@xxxxxxxxxxx> wrote:
"Helmut Schneider" <jumper99@xxxxxx> wrote in message
news:5glpp4F3h2llpU1@xxxxxxxxxxxxxxxxxxxxx
Jason Rangle <jjrangle@xxxxxxxxxxx> wrote:
I'm brand new to FreeBSD and unix for that matter. I don't think I
installed FreeBSD correctly on my hardware RAID 1. Here is my df -h
and dmesg output. It seems like I should be showing the partitions
installed on ar0 rather than ad4.
acd0: CDROM <SAMSUNG CD-ROM SC-152C/CS05> at ata1-master PIO4
ad4: 76319MB <Seagate ST380011A 3.06> at ata2-master UDMA100
ad5: 76319MB <Seagate ST380011A 3.06> at ata2-slave UDMA100
ar0: 76318MB <Silicon Image Medley RAID1> status: READY
ar0: disk0 READY (master) using ad4 at ata2-master
ar0: disk1 READY (mirror) using ad5 at ata2-slave
test-fbsd# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad4s1a 496M 58M 398M 13% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad4s1e 496M 12K 456M 0% /tmp
/dev/ad4s1f 69G 2.1G 61G 3% /usr
/dev/ad4s1d 1.4G 13M 1.3G 1% /var
Did I screw it up? If so, is there a way to "fix" it with dd or
something? Thanks for the non-flame comments.
You should be able to fix it in /etc/fstab. Just replace ad4 with ar0.
Test it with /tmp, unmount it, replace the string in /etc/fstab and then
"mount -a". If everything is fine, there you go.
Sorry for my lack of RTFM'ing... I'm still an uber-noob. What do you
mean by "test it with /tmp"? Like umount /tmp then mount /tmp to ar0s1e?

Yes.

Go to /etc/fstab, change /dev/ad4s1e to /dev/ar0s1e.
# umount /tmp
# mount -a (or do a 'mount /dev/ad0s1e /tmp', 'mount -a' reads /etc/fstab
and checks for filesystems not mounted yet)

And if I can see the same stuff I did before the umount then I can assume
it's fixed?

If /tmp mounts fine and df -h shows /tmp mounted to your array then the rest
will do so, too.

Then change all the mounts in /etc/fstab then issue 'mount -a.' Last
question: can I do the mount -a while I'm logged in? Or would it be
better to just reboot?

Unless as you are not in single user mode you can't do a 'mount -a' on all
your file systems. So reboot. Checking with /tmp just ensures that the
machine will come up again.

--
Please do not feed my mailbox, Swen still does his job well


.



Relevant Pages

  • Re: HORM and unprotected volumes
    ... What is the purpose of mount util? ... This way filesystem will be reloaded only after your application is closed and you access your volume for the first time. ... > EWF) and D ... > When I reboot it resumes and I have to mount the d: ...
    (microsoft.public.windowsxp.embedded)
  • raid-system mount
    ... I have a SmartArray5300 raid system arranged as an advfs filesystem. ... This filesystem fails to mount during the normal reboot process ...
    (Tru64-UNIX-Managers)
  • Re: Root password help
    ... > Once in the single user shell, mount the root file system to a ... > the filesystem and reboot. ...
    (comp.unix.solaris)
  • Re: hardisk full
    ... mount the appropriate partition on each. ... > one filesystem at a time and use the other partition as the location to ... > c: Reboot ...
    (Fedora)
  • Re: mount() function problem !
    ... mount() attaches the filesystem specified by source (which is often a device name, ... point within a file system. ... details of the options available for each filesystem type. ... Specifies the journalling mode for file data. ...
    (comp.lang.c)