Sei sulla pagina 1di 7

Database File location

/var/symapi/db/symapi_db.bin

/opt/emc/SMAS/boss/server/default-em/data/msq/data/spa

/var/symapi/log/symapi-yyyymmdd.log

./EMC/emcgrab/tools/bin/inq.LinuxIA64.Z
./EMC/emcgrab/tools/bin/inq.LinuxPPC64.Z

[/var/emcgrab/tools/bin]#./inq.LinuxAMD64

For Running Grabs

need to add -R to add the x permission to all the scripts in the tools dir

command is

cd /var
cd /emcgrab
chmod +x -R tools
./emcgrab.sh -smas

scanning luns

1) To check for the HBA's available

#cd /sys/class/scsi_host

[root@DC2SMCsrv ~]# cd /sys/class/scsi_host

[root@DC2SMCsrv scsi_host]# pwd


/sys/class/scsi_host

[root@DC2SMCsrv scsi_host]# ls
host0 host1 host2 host3 host4 host5 host6 host7 host8

[root@DC2SMCsrv scsi_host]#
[root@DC2SMCsrv scsi_host]# ll
total 0
drwxr-xr-x 2 root root 0 Mar 22 10:16 host0
drwxr-xr-x 2 root root 0 Mar 22 10:16 host1
drwxr-xr-x 2 root root 0 Mar 22 10:16 host2
drwxr-xr-x 2 root root 0 Mar 22 10:16 host3
drwxr-xr-x 2 root root 0 Mar 22 10:16 host4
drwxr-xr-x 2 root root 0 Mar 22 10:16 host5
drwxr-xr-x 2 root root 0 Mar 22 10:16 host6
drwxr-xr-x 2 root root 0 Mar 22 10:16 host7
drwxr-xr-x 2 root root 0 Mar 22 10:16 host8
[root@DC2SMCsrv scsi_host]#

2) Scanning for devices

echo "- - -" > /sys/class/scsi_host/host0/scan


echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/host2/scan
echo "- - -" > /sys/class/scsi_host/host3/scan
echo "- - -" > /sys/class/scsi_host/host4/scan
echo "- - -" > /sys/class/scsi_host/host5/scan
echo "- - -" > /sys/class/scsi_host/host6/scan
echo "- - -" > /sys/class/scsi_host/host7/scan

for i in {0..8};do echo "- - -" > /sys/class/scsi_host/host$i/scan ; done

1) checking for FC HBA details

cd /sys/class/fc_host

[root@DC2SMCsrv ~]# cd /sys/class/fc_host

[root@DC2SMCsrv fc_host]# ls
host3 host4

[root@DC2SMCsrv fc_host]# pwd


/sys/class/fc_host
[root@DC2SMCsrv fc_host]#
[root@DC2SMCsrv fc_host]#cat node_name

multipath -ll | grep mpath

or

#systool -c fc_host -v

systool -vc fc_host | grep port_name

____________________________________________________________________________

[root@DC2kvmhost13 ~]# ssh 10.64.252.35


The authenticity of host '10.64.252.35 (10.64.252.35)' can't be established.
RSA key fingerprint is ee:a7:3a:26:c3:39:fb:87:67:8a:3c:79:f2:1d:9a:c6.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.64.252.35' (RSA) to the list of known hosts.
root@10.64.252.35's password:
Permission denied, please try again.
root@10.64.252.35's password:
Last login: Tue Oct 23 05:12:18 2012 from 10.64.252.34

[root@DC2kvmhost15 ~]# echo 1 > /sys/class/fc_host/host4/issue_lip


[root@DC2kvmhost15 ~]# echo 1 > /sys/class/fc_host/host5/issue_lip
[root@DC2kvmhost15 ~]#
[root@DC2kvmhost15 ~]#

[root@DC2kvmhost15 ~]# yum list device-mapper*


Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Installed Packages
device-mapper.x86_64 1.02.66-6.el6
@anaconda-RedHatEnterpriseLinux-201111171049.x86_64/6.2
device-mapper-event.x86_64 1.02.66-6.el6
@anaconda-RedHatEnterpriseLinux-201111171049.x86_64/6.2
device-mapper-event-libs.x86_64 1.02.66-6.el6
@anaconda-RedHatEnterpriseLinux-201111171049.x86_64/6.2
device-mapper-libs.x86_64 1.02.66-6.el6
@anaconda-RedHatEnterpriseLinux-201111171049.x86_64/6.2
Available Packages
device-mapper-event-libs.i686 1.02.66-6.el6
server
device-mapper-libs.i686 1.02.66-6.el6
server
device-mapper-multipath.x86_64 0.4.9-46.el6
server
device-mapper-multipath-libs.x86_64 0.4.9-46.el6
server

[root@DC2kvmhost15 ~]# yum install device-mapper-multipath.x86_64


Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package device-mapper-multipath.x86_64 0:0.4.9-46.el6 will be installed
--> Processing Dependency: device-mapper-multipath-libs = 0.4.9-46.el6 for package:
device-mapper-multipath-0.4.9-46.el6.x86_64
--> Processing Dependency: libmultipath.so()(64bit) for package: device-mapper-
multipath-0.4.9-46.el6.x86_64
--> Running transaction check
---> Package device-mapper-multipath-libs.x86_64 0:0.4.9-46.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
===================================================================================
==
Package Arch
Version Repository Size
===================================================================================
===================================================================================
==
Installing:
device-mapper-multipath x86_64
0.4.9-46.el6 server 89 k
Installing for dependencies:
device-mapper-multipath-libs x86_64
0.4.9-46.el6 server 141 k

Transaction Summary
===================================================================================
===================================================================================
==
Install 2 Package(s)

Total download size: 230 k


Installed size: 627 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): device-mapper-multipath-0.4.9-46.el6.x86_64.rpm
| 89 kB 00:00
(2/2): device-mapper-multipath-libs-0.4.9-46.el6.x86_64.rpm
| 141 kB 00:00
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--
Total
3.7 MB/s | 230 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : device-mapper-multipath-libs-0.4.9-46.el6.x86_64
1/2
Installing : device-mapper-multipath-0.4.9-46.el6.x86_64
2/2
Installed products updated.

Installed:
device-mapper-multipath.x86_64 0:0.4.9-46.el6

Dependency Installed:
device-mapper-multipath-libs.x86_64 0:0.4.9-46.el6

Complete!
[root@DC2kvmhost15 ~]#
[root@DC2kvmhost15 ~]#
[root@DC2kvmhost15 ~]#

[root@DC2kvmhost15 ~]# /etc/init.d/multipathd restart


Stopping multipathd daemon: [FAILED]
Starting multipathd daemon: [ OK ]

[root@DC2kvmhost15 ~]# /etc/init.d/multipathd restart


Stopping multipathd daemon: [ OK ]
Starting multipathd daemon: [ OK ]

[root@DC2kvmhost15 ~]# multipath -ll


Oct 23 22:20:13 | DM multipath kernel driver not loaded
Oct 23 22:20:13 | /etc/multipath.conf does not exist, blacklisting all devices.
Oct 23 22:20:13 | A sample multipath.conf file is located at
Oct 23 22:20:13 | /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf
Oct 23 22:20:13 | You can run /sbin/mpathconf to create or modify
/etc/multipath.conf
Oct 23 22:20:13 | DM multipath kernel driver not loaded

[root@DC2kvmhost15 ~]# cp /usr/share/doc/device-mapper-multipath-


0.4.9/multipath.conf /etc/multipath.conf

[root@DC2kvmhost15 ~]# vi /etc/multipath.conf


# This is a basic configuration file with some examples, for device mapper
# multipath.
# For a complete list of the default configuration values, see
# /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf.defaults
# For a list of configuration options with descriptions, see
# /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf.annotated

## By default, devices with vendor = "IBM" and product = "S/390.*" are


## blacklisted. To enable mulitpathing on these devies, uncomment the
## following lines.
#blacklist_exceptions {
# device {
# vendor "IBM"
# product "S/390.*"
# }
#}

## Use user friendly names, instead of using WWIDs as names.


defaults {
user_friendly_names yes
}
##
## Here is an example of how to configure some standard options.
##
#
#defaults {
# udev_dir /dev
# polling_interval 10
# selector "round-robin 0"
# path_grouping_policy multibus
# getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
# prio alua
# path_checker readsector0
# rr_min_io 100
# max_fds 8192
# rr_weight priorities
# failback immediate
# no_path_retry fail
# user_friendly_names yes
#}
##
## The wwid line in the following blacklist section is shown as an example
## of how to blacklist devices by wwid. The 2 devnode lines are the
## compiled in default blacklist. If you want to blacklist entire types
## of devices, such as all scsi devices, you should use a devnode line.
## However, if you want to blacklist specific devices, you should use
## a wwid line. Since there is no guarantee that a specific device will
## not change names on reboot (from /dev/sda to /dev/sdb for example)
## devnode lines are not recommended for blacklisting specific devices.
##

#blacklist {
# wwid 26353900f02796769
# devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
# devnode "^hd[a-z]"
#}

#multipaths {
# multipath {
# wwid 3600508b4000156d700012000000b0000
# alias yellow
# path_grouping_policy multibus
# path_checker readsector0
# path_selector "round-robin 0"
# failback manual
# rr_weight priorities
# no_path_retry 5
# }
# multipath {
# wwid 1DEC_____321816758474
# alias red
# }
#}
#devices {
# device {
# vendor "COMPAQ "
# product "HSV110 (C)COMPAQ"
# path_grouping_policy multibus
# getuid_callout "/lib/udev/scsi_id --whitelisted
--device=/dev/%n"
# path_checker readsector0
# path_selector "round-robin 0"
# hardware_handler "0"
# failback 15
# rr_weight priorities
# no_path_retry queue
# }
# device {

[root@DC2kvmhost15 ~]# vi /etc/multipath.conf

[root@DC2kvmhost15 ~]# /etc/init.d/multipathd restart


Stopping multipathd daemon: [ OK ]
Starting multipathd daemon: [ OK ]

[root@DC2kvmhost15 ~]# multipath -ll


mpathd (360060480000290100759533031443637) dm-5 EMC,SYMMETRIX
size=204G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 4:0:0:2 sde 8:64 active ready running
`- 5:0:0:2 sdg 8:96 active ready running
mpathc (360060480000290100759533031443631) dm-4 EMC,SYMMETRIX
size=204G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 4:0:0:1 sdd 8:48 active ready running
`- 5:0:0:1 sdf 8:80 active ready running
mpathb (360060480000290100759533030303432) dm-3 EMC,SYMMETRIX
size=2.8M features='1 queue_if_no_path' hwhandler='0' wp=ro
`-+- policy='round-robin 0' prio=1 status=active
|- 4:0:0:0 sdb 8:16 active ready running
`- 5:0:0:0 sdc 8:32 active ready running

-----------------------------------------------------------------------------------
---------

[root@DC2SMCsrv ~]# yum list device-mapper


Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Installed Packages
device-mapper.i386 1.02.39-1.el5
installed
device-mapper.x86_64 1.02.39-1.el5
installed
Available Packages
device-mapper.i386 1.02.55-2.el5
bsae
device-mapper.x86_64 1.02.55-2.el5
bsae
[root@DC2SMCsrv ~]#
[root@DC2SMCsrv ~]#
[root@DC2SMCsrv ~]# yum list device-mapper*
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Installed Packages
device-mapper.i386 1.02.39-1.el5
installed
device-mapper.x86_64 1.02.39-1.el5
installed
device-mapper-event.x86_64 1.02.39-1.el5
installed
device-mapper-multipath.x86_64 0.4.7-46.el5_7.1
installed
Available Packages
device-mapper.i386 1.02.55-2.el5
bsae
device-mapper.x86_64 1.02.55-2.el5
bsae
device-mapper-event.x86_64 1.02.55-2.el5
bsae
[root@DC2SMCsrv ~]#
[root@DC2SMCsrv ~]#
[root@DC2SMCsrv ~]#

Potrebbero piacerti anche