LinHES Forums
http://forum.linhes.org/

mdadm RAID and "media" directory in new installati
http://forum.linhes.org/viewtopic.php?f=14&t=16450
Page 1 of 1

Author:  balthisar [ Tue Sep 11, 2007 6:21 pm ]
Post subject:  mdadm RAID and "media" directory in new installati

Just upgraded from R5D50 or so to R5F27, and my super-reliable mounting of my two mdadm volumes (dev/md0 and dev/md1) have me concerned. My fstab is correct, but my mount is showing that they're mounted to a new top level /media directory. If I go into /mnt, it looks like they're being linked to /media. When I go to /media, horror of horrors, the INDIVIDUAL VOLUMES of my RAID system show up here. That's not cool. How do I stop this from happening?

If it's part of the automounter for USB stuff, I don't care -- this is a closet backend.

Or... if it's not a concern, I'll leave it be. Just makes me nervous.

Thanks!

Author:  cecil [ Tue Sep 11, 2007 8:02 pm ]
Post subject: 

Just edit fstab...

Author:  balthisar [ Wed Sep 12, 2007 7:22 am ]
Post subject: 

cecil wrote:
Just edit fstab...


It's strange, when I df, it shows my volumes correctly.

My fstab's the first thing I fixed upon reinstall. Here's my current fstab with all the media stuff properly crossed out, and my correct md devices mounted.

Code:
# /etc/fstab: filesystem table.
#
# filesystem  mountpoint  type  options  dump  pass
/dev/hda1  /  ext3 defaults,errors=remount-ro  0  1
/dev/hda3  /myth  ext3  defaults,auto  0  2

proc  /proc  proc  defaults  0  0
usbfs  /proc/bus/usb  usbfs  devmode=0666  0  0
sysfs  /sys  sysfs  defaults  0  0
tmpfs  /dev/shm  tmpfs defaults  0  0
/dev/cdrom /cdrom  auto  defaults,ro,user,noexec,noauto  0  0

# Added by KNOPPIX
/dev/hda2 none swap defaults 0 0

/dev/md0 /mnt/md0   ext3  defaults,auto               0  2
/dev/md1 /mnt/md1   ext3  defaults,auto               0  2




#/dev/hde1 /media/hde1 ext3 noauto,users,exec 0 0
#/dev/hdf1 /media/hdf1 ext3 noauto,users,exec 0 0
#/dev/hdg1 /media/hdg1 ext3 noauto,users,exec 0 0
#/dev/hdh1 /media/hdh1 ext3 noauto,users,exec 0 0
#/dev/md0 /media/md0 ext3 noauto,users,exec 0 0
#/dev/md1 /media/md1 ext3 noauto,users,exec 0 0


At least df and mount are now showing the correct filesystems and mounts, but I'm still nervous that /mnt and /media show my individual devices, even though they don't show up in df or mount.

What's the mechanism that controls this? I can do all of the investigatory legwork without needing to trouble you. This is just new behavior compared to my previous versions, and all I need is the starting point. Again, it could be nothing.

Thanks!

Author:  cecil [ Wed Sep 12, 2007 9:57 am ]
Post subject: 

No need to worry. The drives were just seen and the fstab entries made. The drives were not touched. This was done by the updated Koppix scripts/udev.

Author:  balthisar [ Wed Sep 12, 2007 1:13 pm ]
Post subject: 

Good enough, and thanks! I'll let it be.

Author:  balthisar [ Tue Sep 18, 2007 2:45 pm ]
Post subject: 

Just FYI in case someone stumbles upon this...

It's embarrassing, but the links were only created in /mnt a single time. I only had to delete them. I initially assumed there was some neat new dynamic auto-mounter that would put and remove entries here, and I was freaking about to how prevent that behavior. Instead, as Cecil says, they were autodetected during installation, entries made one time only, and that was that. Typical circa-1997 newbie mistake ;).

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/