NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. Cost of War |
Automount RAID1I have a RAID 1 partition that works fine when assembled. When I reboot my system, the system always says the raid broke. How can I make sure the RAID 1 stays intact even on reboot. Currently I must rebuild the array after reboot which could be a problem if I forget. Duane |
Automount RAID1
I mount the PATA RAID (/dev/sda1) as /users, export it (to the cluster and to our LAN), and tell the automounter to map the /users/& directories to /home/username:
Create a mount point for the /users file system and make an entry in /etc/fstab for it:
# mkdir /users
# vi /etc/fstab
/dev/sda1
/users ext3 defaults 1 2
Add an entry in /etc/exports for the /users file system:
# vi /etc/exports
/users 10.0.0.0/255.0.0.0(rw,async,no_root_squash) \
130.118.45.45/255.255.252.0(rw,async)
Add entries in /etc/auto.home for the directories in /users:
# vi /etc/auto.home
install hydra.local:/export/home/&
baaagaard hydra.local:/users/&
:
zeng hydra.local:/users/&
Restart the automounter so it aotumounts the /users directories in /
home:
# /etc/init.d/autofs restart
When I create a new account (useradd), I specify the new home directory as "-d /users/username" and Rocks does the rest.
------------------
software reviews