http://fibrevillage.com/storage/279-hot-add-remove-rescan-of-scsi-devices-on-linux



Finding informations about SCSI devices

The first problem when working with SCSI devices might be to map informations you got from /proc/scsi/scsi to the device names the kernel uses like /dev/sda and so on.

Or you can use lsscsi utlity. Here's an example:

# lsscsi
[0:0:0:0]    disk    ATA      SEAGATE ST31000N SU0E  /dev/sda
[0:0:1:0]    disk    ATA      SEAGATE ST31000N SU0E  /dev/sdb
...
[1:0:1:0]    disk    ATA      SEAGATE ST31000N SU0E  /dev/sdj
[1:0:2:0]    disk    ATA      SEAGATE ST31000N SU0E  /dev/sdk
[1:0:3:0]    disk    ATA      HITACHI H7210CA3 A3CB  /dev/sdl
[1:0:4:0]    disk    ATA      HITACHI HUA7210S AC5A  /dev/sdm
...
[5:0:7:0]    disk    ATA      SEAGATE ST31000N SU0D  /dev/sdav
[6:0:0:0]    mediumx IBM      TS3500           0104  /dev/sch0
[6:0:1:0]    tape    IBM      ULT3580-TD5      0104  /dev/st0
[6:0:2:0]    tape    IBM      ULT3580-TD5      0104  /dev/st1

You can find same info by checking /proc/scsi/scsi

# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST31000N Rev: SU0E
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: ATA      Model: SEAGATE ST31000N Rev: SU0E
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi0 Channel: 00 Id: 02 Lun: 00
  Vendor: ATA      Model: SEAGATE ST31000N Rev: SU0E
  Type:   Direct-Access                    ANSI  SCSI revision: 05
...

In the example above

Host: scsi0 Channel: 00 Id: 01 Lun: 00 
is the same device of [0:0:0:0] in the output of lsscsi

Where the output

          h == hostadapter id (first one being 0)
          c == SCSI channel on hostadapter (first one being 0)
          t == ID
          l == LUN (first one being 0)

Rescan of a SCSI bus

Surely reboot a server will let the scsi device get rescanned. But this is not the prefered way. The easiest way is to rescan the whole SCSI bus which will enable the Linux kernel to detect new devices!

To issue a SCSI bus rescan you must know on which bus you've added the device. If you don't know which bus and if there are mutliple buses on the system you can rescan each bus which will be somehow annoying but will not interrupt the system. 
To initiate a SCSI bus rescan type

echo "- - -" > /sys/class/scsi_host/host<H>/scan

where H stands for the SCSI bus you want to scan.

# lsscsi
...
[1:0:0:7]    disk    IBM      1814      FAStT  1060  /dev/sdb
[1:0:0:8]    disk    IBM      1814      FAStT  1060  /dev/sdc
[1:0:0:10]   disk    IBM      1814      FAStT  1060  /dev/sde
# echo "- - -" > /sys/class/scsi_host/host1/scan
# lsscsi
...
[1:0:0:7]    disk    IBM      1814      FAStT  1060  /dev/sdb
[1:0:0:8]    disk    IBM      1814      FAStT  1060  /dev/sdc
[1:0:0:9]    disk    IBM      1814      FAStT  1060  /dev/sdd
[1:0:0:10]   disk    IBM      1814      FAStT  1060  /dev/sde

Well done, we got /dev/sdd back.

By the way this does not only work for disks but also for SCSI CD/DVD devices.

You can still use the old way, to get sdd back

echo "scsi add-single-device 1 0 0 9" > /proc/scsi/scsi

For more devices, you have to repeat the same for all devices

Deletion of a SCSI Device

There might be the situation where you must remove a SCSI device from the system.

Easy by using

    echo 1 > /sys/class/scsi_device/h:c:t:l/device/delete
    or
    echo 1 > /sys/block/<dev>/device/delete
    where <dev> is like sda or sdb etc..

Here's an example:

# echo 1 > /sys/block/sdau/device/delete 
# lsscsi | grep sdau
#

Now you see the device sdau is gone.

In old way, this is what you would like to do

echo "scsi remove-single-device h c t l" > /proc/scsi/scsi

Add a SCSI Device back

Surely this can be done just rescan the SCSI bus that the disk seats inuse wildcard like below

    echo "- - -" > /sys/class/scsi_host/host<h>/scan

You can also do this if you know the device SCSI location h:c:t:l

    echo "c t l" >  /sys/class/scsi_host/host<h>/scan

Old way

    echo "scsi add-single-device a b c d" > /proc/scsi/scsi

Rescan of a SCSI Device

The problem of a SCSI bus rescan is, that it will only detect new devices. Can a existing or missing device be rescanned?

Sure, here is it

echo 1 > /sys/block/sdau/device/rescan 
or
echo 1 > /sys/class/scsi_device/h:c:t:l/device/rescan

 In SAN environment, there is a easier way to manage SAN scsi devices, see Sysfs fibre channel tools


'IBM PowerLinux > REDHAT' 카테고리의 다른 글

RHV RHVM 관련  (0) 2018.08.07
Redhat Nouveau 내장그래픽카드 nvidia 드라이버 설치 삭제  (0) 2018.07.03
CentOS 7 bonding nmcli  (0) 2017.11.01
gnome login screen id  (0) 2016.08.11
Linux semaphore  (0) 2016.07.11

 

ipmitool sel clear

 

 

추천 https://subicura.com/2017/01/19/docker-guide-for-beginners-1.html

 

 

 

 

 

 

How to disable the Nouveau driver and install the Nvidia driver in RHEL 7

 

 

 

 

 

How to uninstall proprietary "Nvidia" module and switch back to Red Hat shipped "Nouveau" module ?

 

 

 

 

 

 

How to remove Nvidia drivers and switch back to nouveau for Red Hat Enterprise Linux 7?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

'IBM PowerLinux > REDHAT' 카테고리의 다른 글

RHV RHVM 관련  (0) 2018.08.07
Hot add, remove, rescan of SCSI devices on Linux  (0) 2018.07.09
CentOS 7 bonding nmcli  (0) 2017.11.01
gnome login screen id  (0) 2016.08.11
Linux semaphore  (0) 2016.07.11

requisites for installing PowerAI Vision

 

https://www.ibm.com/support/knowledgecenter/en/SSRU69_1.1.0/base/vision_install_prereq.htm


https://www-304.ibm.com/support/customercare/sas/f/lopdiags/scaleOutLCdebugtool.html



Scale-out LC Service and Support

[ Last updated: 01 June 2018 ]

Start

If a Linux partition is up and running then the standard sosreport should be collected in addition to running the plc.pl data collection script.

The sosreport needs to be run by root user, the script will prompt for additional information and when complete will show the location of the output file.

To collect the data from the BMC, the plc.pl script file (contained in the plc.zip package below) should be used by the customer to collect additional data.

Installation

For MT 8348-21C, 8335-GCA, 8335-GTA, and 8335-GTB systems:
plc.zip

For MT 8001-12C, 8001-22C, 8005-12N, 8005-22N, 7063-CR1, 9006-22P, 9006-22C, and 5104-22C systems:
plc.zip

Prerequisites

Installation steps

Usage

usage: plc.pl { -b bmc_address | -i } [-a admin_pw] [-s sysadmin_pw] [-h host -u user -p password] [-f]

Flags:

-b BMC hostname or IP address
-a BMC ADMIN password if changed from default (admin)
-s BMC sysadmin password if changed from default (superuser)
-i Interactive mode
-f Collect BMC firmware image
-h Linux host address: Only on POWER8 Systems
-u Linux host user ID: Only on POWER8 Systems
-p Linux host password: Only on POWER8 Systems

Errors

Reference Information

This section is intended as additional reference information.

Installing Requisite Packages

Note: The linux server that is going to be used for running data collection script can be running any version of Linux on any type of server. It is not related to the Scale-out LC server or the version of Linux running on the Scale-out LC server.

We would expect the administrator to be familiar with installing packages and files on their Linux environment.

Managing software
Taskapt (deb) Debian, Ubuntuzypp (rpm) openSUSEyum/dnf (rpm) Fedora, CentOSurpmi (rpm) Mandriva, Mageia
Install new software from package repositoryapt-get install pkgzypper install pkgyum install pkgurpmi pkg
Install new software from package filedpkg -i pkgzypper install pkgyum localinstall pkgurpmi pkg
Update existing softwareapt-get install pkgzypper update -t package pkgyum update pkgurpmi pkg
Remove unwanted softwareapt-get remove pkgzypper remove pkgyum erase pkgurpmi pkg

IBM OpenBMC tool

The IBM OpenBMC tool is used to interact with the new OpenBMC on the 8335-GTG, 8335-GTC, 8335-GTW, 8335-GTH, and 8335-GTX products.

Pre-requisites:

For RHEL distributions:
openbmctool-1.0-4.noarch.rpm

For other operating systems:
openbmctool.zip

Note: For Windows OS support, version 1.04 or greater of the tool is needed.

RHEL


Other operating systems

To install, complete the following:

Execution

Scale-out LC system VPD update tool

The Scale-out LC system VPD update tool is used to make VPD modifications to POWER Systems from the host OS of the machine.

For Ubuntu distributions: 
ophtk-lht_20160128-1.ub14.04_ppc64el.deb

For RHEL distributions:
ophtk-lht-20160128-1.el7.ppc64le.rpm

Petitboot Plugin:

Ubuntu

RHEL


Petitboot Plugin:

Note: /path/to needs to be substituted with the actual path to the petitboot plugin. For example, pb-plugin install /var/petitboot/mnt/dev/sda/vpdupdate-1.3.pb-plugin

To install the plugin from a network location from the petitboot shell:
pb-plugin install http://mystorage.com/path/to/vpdupdate-1.3.pb-plugin

Execution

SNMP Trap enablement

For MT 8348-21C, 8335-GCA, 8335-GTA, and 8335-GTB systems:

For MT 8001-12C, 8001-22C, 8005-12N, 8005-22N, and 7063-CR1 systems:


'IBM PowerLinux' 카테고리의 다른 글

H/W check and status check  (0) 2018.07.23
Amber off  (0) 2018.07.05
RHEL7: How to get started with CPU governor  (0) 2018.03.20
리눅스에서 LVM 구성 및 사용방법  (0) 2018.03.06
LVM home삭제후 root 증설  (0) 2018.02.14

 

 

항공권 ( G마켓 )

 

 

 

 

항공스케줄

요금규정
여정 항공편 출발 도착 비행시간 좌석등급
출국 인천(ICN)
후쿠오카(FUK)
제주항공
7C1404
2018/06/23 (토)
15:30
2018/06/23 (토)
16:45
01시간 15분 일반석
총 소요시간 : 01시간 15분 (총 비행시간 : 01시간 15분)
귀국 후쿠오카(FUK)
인천(ICN)
제주항공
7C1401
2018/06/25 (월)
12:45
2018/06/25 (월)
14:10
01시간 25분 일반석
총 소요시간 : 01시간 25분 (총 비행시간 : 01시간 25분)

 

 

 

 

6월 23일

 

 

Valie Hotel Tenjin
ヴァリエ ホテル 天神

 
 
 
orange-yellow star-3
2-8-12 Daimyou Chuo-ku, Fukuoka, Fukuoka, Japan 810-0041
〒810-0041 福岡県福岡市中央区大名2-8-12, 福岡, 福岡, 日本 810-0041
 
숙박일수 및 객실수: 객실 1개, 1박
체크인 날짜: June 23, 2018 (after 03:00 PM)
체크아웃 날짜: June 24, 2018 (before 10:00 AM)
예약 번호:
투숙객 이름:
 

고객님의 예약요금이 전액 결제 완료되었습니다.

Queen Double Room with Queen Bed - Non-Smoking KRW 134,387
포함: 봉사료 10%, 세금 8%
총 카드 결제액: KRW 134,387