您的位置:首页 > 运维架构 > Linux

Add LUN to ASM in Linux

2013-09-09 18:45 204 查看
# Create new LUN for Linux in the AMS2100

# echo "- - -" >/sys/class/scsi_host/host3/scan (rescan FC host adaptors for new LUNs)
# echo "- - -" >/sys/class/scsi_host/host4/scan (rescan FC host adaptors for new LUNs)

[Don't use this command, 'echo “1″ > /sys/class/fc_host/host0/issue_lip'; this caused a scsi_reset eventually leading to a host reboot ]

# multipath -v2 (print all info : detected paths, coalesced paths (ie multipaths) and device maps)

# multipath -ll >/tmp/multipath.txt (collect all the mpath devices as these will be the unaliased devices)

# cp /etc/multipath.conf /tmp/multipath.conf.1

# vim /etc/multipath.conf (edit this file for the WWNN and alias of the new LUNs -DG1_21)

# /etc/init.d/multipathd restart (restart multipath service, make new multipath alias effective)

# parted (use parted as partition tool when > 2T)

# select /dev/mpath/DG1_21 (choose a new multipath alias)

# mklabel msdos

# mkpart pri 63s 250G

# exit

# /etc/init.d/dgpart restart (make partition effective)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: