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)
# 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)
相关文章推荐
- How to hot add lun to Linux server without rebooting
- How to add swap space in Linux
- (转)How to use udev for Oracle ASM in Oracle Linux 6
- How to use udev for Oracle ASM in Oracle Linux 5
- How to add a new user in linux and add it to a new group
- Add a system call to the linux kernel in Ubuntu
- How to add route in Linux
- How to use udev for Oracle ASM in Oracle Linux 6 怎样使用udev在linux 6系统上使用asm
- Linux 启动 Apache 时报错:(98)Address already in use: make_sock: could not bind to add
- linux内网SSH,SCP登录其他服务器Add correct host key in /root/.ssh/known_hosts to get rid of this message
- How to use udev for Oracle ASM in Oracle Linux 6
- Linux 启动 Apache 时报错:(98)Address already in use: make_sock: could not bind to add
- How to create Oracle ASM devices using device-mapper multipath devices in Red Hat Enterprise Linux 6
- win7下VC6.0出现Unable to register this add-in because its DLLRegisterServer returnan error
- Moving ASM spfile to a shared device in RAC
- Linux教程之:Nginx [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
- How to perform Rolling Upgrade-Downgrade in 11g ASM
- R12: How to add Microsoft Excel as Type to the Create Template List of Values in BI Publisher (Doc ID 1343225.1)
- linux 机器之间 zssh, rz, sz互相传输 ( How to install zssh in Ubuntu 13.10 (Saucy))
- How to setup tomcat in linux?