| Richards Center at Yale University |
| RC Home | Search | Table of Contents | General Information |
Last Modified: Wednesday, 18-Apr-2007 14:16:43 EDT
( .img files) NFS [linux WS] NFS ( .ISO file)
[1] (/srv/frames)---->[ mkisofs]---->(/srv/images)
( on vs1) ( on ring4)
( .ISO file) SMB [ elijah ]local( ISO cache)
[2] (\\Isoserver)---->[download]---->(on D: or C:)
( on ring4)
( ISO cache)local[ elijah ]local
[3] (on D: or C:)---->[ burn ]---->(DVDR)
For each DVD to be burned, the following steps are performed. For multiple
DVDs, they may be performed sequentialy for each DVD, or step 1 may be
performed for all DVDs, followed by the other steps for all DVDs.
Approximate times are indicated.
Each disk has already been partitioned as described in http://www.csb.yale.edu/sysadm/diskstorage/linuxserver/200601-ring4.html .
Stop existing R5 raidsets:
ring4# raidstop /dev/md0
ring4# raidstop /dev/md1
Find out which disks are 73GB
/etc# foreach i ( a b c d e f g h i j k l )
foreach? fdisk -l /dev/sd$i | grep "Disk /dev/sd"
foreach? end
Create new stripesets on 73GB disks:
ring4# mdadm -C /dev/md0 -l stripe -n 5 --auto=md /dev/sd[bcdef]1
ring4# mdadm -C /dev/md1 -l stripe -n 5 --auto=md /dev/sd[hijkl]1
Make entries in /etc/fstab and /etc/exports
/etc/fstab:
/dev/md0 /mnt/csb0 ext3 defaults 1 1
/dev/md1 /mnt/csb1 ext3 defaults 1 1
/etc/exports:
/mnt/csb0/images cormorant(rw,sync) coot(rw,sync) albatross(rw,sync) \
loon(rw,sync) locksmith(rw,sync) sliderule(rw,sync)
/mnt/csb1/images cormorant(rw,sync) coot(rw,sync) albatross(rw,sync) \
loon(rw,sync) locksmith(rw,sync) sliderule(rw,sync)
Finish up:
ring4:~ # mkfs.ext3 -T largefile4 /dev/md0
ring4:~ # mkfs.ext3 -T largefile4 /dev/md1
ring4:~ # mount /mnt/csb0
ring4:~ # mount /mnt/csb1
ring4:~ # mkdir /mnt/csb0/images
ring4:~ # mkdir /mnt/csb1/images
ring4:~ # chmod 777 /mnt/csb0/images
ring4:~ # chmod 777 /mnt/csb1/images
ring4:~ # exportfs -rv
ring4:/mnt/csb0/images /srv/images/0 nfs rw,nfsvers=3,hard,async,intr,bg
ring4:/mnt/csb1/images /srv/images/1 nfs rw,nfsvers=3,hard,async,intr,bg
And of course, we make the requisite directories and mount the filesystems:
albatross# mkdir /srv/images/0
albatross# mkdir /srv/images/1
albatross# mount /srv/images/1
albatross# mount /srv/images/0
Return to top
The config file is /etc/samba/smb.conf, and a copy is here. After creating the file:
ring4# /etc/init.d/smb start
ring4# /etc/init.d/nmb start
We want to have these services at startup:
ring4:# chkconfig smb on
ring4:# chkconfig nmb on
Finally, reboot ring4 and check that everything still works.
In /etc/cron.hourly, keep the clocks synchronized:
ring4:# cat > ntpdate
/usr/sbin/ntpdate -s -t 12.0 csbtime1.core
ring4:# chmod +x ntpdate
In /etc/cron.daily, throw out .iso and .pdf files more than a day old:
ring4:# cat > clean-csb
find /mnt/csb0 -type f -atime "+1" -exec rm {} \;
find /mnt/csb1 -type f -atime "+1" -exec rm {} \;
ring4:# chmod +x clean-csb
It is probably not a good idea to configure a RAIDset using the 146GB drives, because they are slower.
Last Modified: Wednesday, 18-Apr-2007 14:16:43 EDT
| RC Home | Search | Table of Contents | General Information |
|
Richards Center (www.rc.yale.edu) at
Yale University (www.yale.edu)
Contact: webmaster_at_ben^rc^yale^edu |