2013年6月16日 星期日

Promise Vtrak Ex30 storage support ALUA on RHEL 6


- Configure the ALUA option on Promise storage (use WebPAM)

1. Device > Component List > Controller > setting
    Choose the option what's "LUN Affinity" and "ALUA".
2. Distribute the RAID to preferred Controller ID when build up LD (Logical Device) .

- Configure the partition and multipath on OS

1. Check the partition ready on system.
cat /proc/partitions

major minor  #blocks  name

   8        0  488386584 sda
... ...
   8       48 21484373504 sdd
   8       32 21484373504 sdc

2. If not dm-X device , then need to install and start the multipath daemon on the system.
# Install device mapper
yum install device-mapper-multipath -y

# Install Promise alua driver
rpm -ivh scsi_dh_alua_Vtrak-2-1.x86_64.rpm

# Configure multipath.conf
cat /etc/multipath.conf
------------------------------
defaults {
        user_friendly_names yes
}

blacklist {
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^(hd|xvd)[b-z][[0-9]*]"
        devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*"
}

devices {
        device {
        vendor                  "Promise"
        product                 "VTrak"
        path_grouping_policy    group_by_prio
        getuid_callout          "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
        prio                    alua
        path_checker            tur
        path_selector           "round-robin 0"
        hardware_handler        "1 alua"
        failback                immediate
        rr_weight               uniform
        rr_min_io               5000
        no_path_retry           queue
        features                "1 queue_if_no_path"
        product_blacklist "VTrak V-LUN"
        }
}
----------------------

# Start the multipath daemon, and add into chkconfig.
/etc/init.d/multipathd start

chkconfig multipathd on

chkconfig --list multipathd
multipathd      0:off   1:off   2:on    3:on    4:on    5:on    6:off

# Confirm the multipath status
multipath -ll -v2
... ...
mpatha (222XXXXXXXXXXXXXX) dm-0 Promise,VTrak E830f
size=20T features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=130 status=active
| `- 7:0:0:5 sdc 8:32 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 8:0:0:5 sdd 8:48 active ready running

- Format file system, and mounting

1. Format to xfs file system.
# need to install xfsprogs on system . sunit dependent on RAID strip size (unit: block size)
yum install xfsprogs -y

mkfs -t xfs -f -d sunit=128,swidth=128 /dev/dm-0

2. Label the partition
xfs_admin -L "test01" /dev/dm-0

3. Edit the fstab to mount.
#Add configuration into /etc/fstab
LABEL="test01"          /test01                 xfs     defaults,sunit=128,swidth=128 0 0

mkdir /test01

mount -a

3. df -h to check the  partition status. Run touch to test the function.
df -h

touch /test01/test.file










Done




--
OS: Scientific Linux  6.4
(base on RHEL 6)

Promise Vtrak support alua on RHEL 5.4 
http://kb.promise.com/KnowledgebaseArticle10261.aspx



沒有留言:

張貼留言