SUSE linux 10sp2安装多路径软件


 

明:存储为华赛的S5300,如果存储为IBM或其他厂商的话,操作方法不一样,请注意!

 

bmp1a:~ # uname -a

Linux bmp1a 2.6.16.60-0.21-smp #1 SMP Tue May 6 12:41:02 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux

所以安装smp版本的多路径:

bmp1a:~ # rpm -ivh UltraPath-2.01.022.suse10_sp2.x86_64.smp.rpm

bmp1a:~ # reboot

检查多路径是否安装成功:

bmp1a:~ # rpm -qa | grep Ul

UltraPath-2.01.022-1

bmp1a:~ # lsmod |grep up

upVhba                180672  0

upUpper               340444  1 upVhba

scsi_mod              170936  11 mptctl,upVhba,qla2xxx,scsi_transport_fc,mptsas,mptscsih,scsi_transport_sas,libata,upUpper,sg,sd_mod

驱动已经加载,多路径软件安装成功后,有两个驱动存在upVhba、upUpper,表示驱动加载成功。

查看启动项是否更改正确:

bmp1a:~ # cat /boot/grub/menu.lst

# Modified by YaST2. Last modification on Fri Nov  4 10:34:23 UTC 2011

default 4

timeout 8

gfxmenu (hd0,8)/message

##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###

title SUSE Linux Enterprise Server 10 SP2

    serial=1,9600n8

    root (hd0,8)

    kernel /vmlinuz-2.6.16.60-0.21-smp root=/dev/sda2 crashkernel=64M@16M console=ttyS0,9600 console=tty0  hde=noprobe hdg=noprobe auto resume=/dev/sda1 splash=silent showopts elevator=noop

    initrd /initrd-2.6.16.60-0.21-smp

###Don't change this comment - YaST2 identifier: Original name: xen###

title XEN

    serial=1,9600n8

    root (hd0,8)

    kernel /xen.gz

    module /vmlinuz-2.6.16.60-0.21-xen root=/dev/sda2 crashkernel=64M@16M console=ttyS0,9600 console=tty0  hde=noprobe hdg=noprobe auto resume=/dev/sda1 splash=silent showopts elevator=noop

    module /initrd-2.6.16.60-0.21-xen

###Don't change this comment - YaST2 identifier: Original name: failsafe###

title Failsafe -- SUSE Linux Enterprise Server 10 SP2

    serial=1,9600n8

    root (hd0,8)

    kernel /vmlinuz-2.6.16.60-0.21-smp root=/dev/sda2 crashkernel=64M@16M console=ttyS0,9600 console=tty0 showopts ide=nodma apm=off acpi=off noresume edd=off 3 elevator=noop

    initrd /initrd-2.6.16.60-0.21-smp

###Don't change this comment - YaST2 identifier: Original name: LOCAL RESCUE###

title LOCAL RESCUE

    root (hd0,8)

    kernel /vmlinuz-2.6.16.60-0.21-smp root=/dev/sda2  hde=noprobe hdg=noprobe  resume=/dev/sda1 splash=silent showopts  init=/sbin/sulogin

    initrd /initrd-2.6.16.60-0.21-smp

 

title Linux with UltraPath

    serial=1,9600n8

    root (hd0,8)

    kernel /vmlinuz-2.6.16.60-0.21-smp root=/dev/sda2 crashkernel=64M@16M console=ttyS0,9600 console=tty0  hde=noprobe hdg=noprobe auto resume=/dev/sda1 splash=silent showopts elevator=noop

    initrd /mpp-2.6.16.60-0.21-smp.img

说明:default 后面对应参数表示默认是从第几个启动项启动,对应找准启动项名称是以“title Linux with UltraPath”打头,表示启动项已经被修改正确

扫描设备:

bmp1a:~ # hot_add

Starting new devices re-scan...

delete LUN not mapped or mapping changed...

scan qla2 HBA host /sys/class/scsi_host/host4...

 no new device found

scan qla2 HBA host /sys/class/scsi_host/host3...

 no new device found

scan mptsas HBA host /sys/class/scsi_host/host2...

 no new device found

run /usr/sbin/upadm start busscan...

scan mpp virtual host /sys/class/scsi_host/host5...

 no new virtual device found

wait for syncing device reference count...

/usr/sbin/hot_add is completed.

bmp1a:~ # lsscsi |grep sd

[2:1:0:0]    disk    LSILOGIC Logical Volume   3000  /dev/sda

[5:0:0:0]    disk    up       updisk           1     /dev/sdb

[5:0:0:1]    disk    up       updisk           1     /dev/sdc

[5:0:0:2]    disk    up       updisk           1     /dev/sdd

bmp1a:~ # fdisk -l

Disk /dev/sda: 73.2 GB, 73272393728 bytes

255 heads, 63 sectors/track, 8908 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1               1        1045     8393931   82  Linux swap / Solaris

/dev/sda2            1046        2351    10490445   83  Linux

/dev/sda3            2352        8908    52669102+   f  W95 Ext'd (LBA)

/dev/sda5            2352        3004     5245191   83  Linux

/dev/sda6            3005        5615    20972826   83  Linux

/dev/sda7            5616        6268     5245191   83  Linux

/dev/sda8            6269        6921     5245191   83  Linux

/dev/sda9            6922        7052     1052226   83  Linux

/dev/sda10           7053        7705     5245191   83  Linux

/dev/sda11           7706        7967     2104483+  83  Linux

Disk /dev/sdb: 64.4 GB, 64424509440 bytes

64 heads, 32 sectors/track, 61440 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 107.3 GB, 107373133824 bytes

255 heads, 63 sectors/track, 13054 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdd: 128.8 GB, 128849018880 bytes

255 heads, 63 sectors/track, 15665 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdd doesn't contain a valid partition table

附加:

卸载多路径

如果不再使用多路径,可以将多路径卸载,卸载前请停止业务。

去激活所有虚拟盘上的VG。

1) 卸载LV的挂载点;

2) 查询虚拟盘上的VG状态是否为active状态;去激活虚拟盘上的VG

3) 卸载多路径

# rpm –qa |grep Ul 或者rpm –qa |grep Up

查询得到安装的多路径软件包名

# rpm –e 包名

卸载成功

4) 重启主机

# reboot

 

摘自 HW_LiBo的专栏

相关内容

    暂无相关文章