[Rocks-Discuss] Areca RAID Array on Rocks 4.2.1

Bart Brashers bbrashers at geomatrix.com
Wed Nov 29 10:53:12 PST 2006





> *From:* npaci-rocks-discussion-bounces at sdsc.edu on behalf of Jeff
Pummill
> *Sent:* Tue 11/21/2006 10:18 AM
>
> I have an Areca RAID card installed on my head node and connected to a
> group of disks. I believe all of the low level stuff is done, but I am
> uncertain as to what to do next to get things mounted so that the
users
> can access the storage.
>
> Any Areca users out there with a simple checklist for getting one of
> these up and going?

Sorry, I was away on vacation for a week. I've asked for Areca help
before, but not heard anything, so it might not be so popular with the
Rocks crowd. Either they have more money than us and can afford better
NAS/SAN devices, or the Areca cards are poor. If it's the latter, I'd
appreciate hearing why people dislike them.

Here's my notes for getting an array on an Areca ARC-1160 (ARC-11X0) up
and running. Should be the same for the ARC-12X0 series (ARC-11X0 is
PCI-x, ARC-12X0 is PCIe).

These directions assume you did a stock Rocks install on a system disk
(/dev/sda) and already have one partition on that disk mounted at
/state/partition1. I really like to have a separate system disk and use
my RAID array for user data, since OS's are expendable (e.g. when
upgrading). It also makes it much easier to compile/install drivers for
RAID arrays and the like.

# Get the pre-compiled module from Areca:

cd /usr/local/src
mkdir arcmsr
cd arcmsr
wget
ftp://60.248.88.208/RaidCards/AP_Drivers/Linux/DRIVER/CentOS/CentOS-4.4/
1.20.0X.13/install.zip
<ftp://60.248.88.208/RaidCards/AP_Drivers/Linux/DRIVER/CentOS/CentOS-4.4
/1.20.0X.13/install.zip>
unzip install.zip
dd if=driver.img of=tmp
mount -o loop tmp /mnt/
cp /mnt/* .
umount /mnt
rm tmp
gzip -cd modules.cgz > modules.cpio
cat modules.cpio | cpio -i -d

# Copy the module to the right place, and load it:

cd 2.6.9-42.ELsmp/x86_64/
cp arcmsr.ko /lib/modules/2.6.9-42.0.2.ELsmp/kernel/drivers/scsi/
cd /lib/modules/2.6.9-42.0.2.ELsmp
depmod
modprobe arcmsr

# Make sure it's loaded (should give some output)

lsmod | grep arcmsr

# Make a new initial ramdisk

mkinitrd -v -f /boot/initrd-2.6.9-42.0.2.ELsmp.arcmsr.img
2.6.9-42.0.2.ELsmp

# edit /boot/grub/grub-orig.conf, adding the following just after
"hiddenmenu",
# so it's the first in the list.

title Rocks (2.6.9-42.0.2.ELsmp.arcmsr)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-42.0.2.ELsmp ro root=LABEL=/1 rhgb
quiet
initrd /boot/initrd-2.6.9-42.0.2.ELsmp.arcmsr.img

# Reboot your system, and log in again. `fdisk -l` should now "see" the
device, for example:

fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util
fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 3749.9 GB, 3749998755840 bytes
255 heads, 63 sectors/track, 455911 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

# (This array has already been formatted, just look for "/dev/sdb" or
whichever is the next device in your system).

# Create the partition:

set blocks = `dmesg | grep SCSI | grep sdb | grep 512-byte | head -1 |
cut -d: -f2 | cut -d" " -f2`
# blocks = 7324216320 for this system, six 750 GB disks
set mb = `echo "$blocks*512/1024^2" | bc`
# mb = 3576277 (size of disk in megabytes)
parted /dev/sdb mklabel gpt mkpart primary ext3 0 $mb

# Format the partition:

mkfs -t ext3 -b 4096 -i 262144 -m 1 /dev/sdb1

# Stop the autofs service:

service autofs stop

# Copy over your user data:

mount /dev/sdb1 /mnt
rsync -av /state/partition1/* /mnt
umount /mnt

# Un-mount the old drive:

umount /state/partition1

# Edit /etc/fstab, adding a line like this:

/dev/sdb1 /state/partition1 ext3 defaults
1 2

# and removing (or commenting out) the old line containing
/state/partition1.
# Finally, mount the new drive, and start the auto-mounter again (or
reboot):

mount /state/partition1
service autofs start

Bart

————– next part ————–
An HTML attachment was scrubbed…
URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20061129/13b5e313/attachment.html







More information about the npaci-rocks-discussion mailing list

img 드라이버로 커널 모듈 탑재

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다