Automount RAID1

I 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

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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

Syndicate content