°Ô½Ã¹° 260°Ç
   
[RHEL7.3] where is scsi_id in rhel7 [ wwn ]
±Û¾´ÀÌ : theko ³¯Â¥ : 2017-10-12 (¸ñ) 18:14 Á¶È¸ : 3948
 # lsscsi --scsi_id -g
[4:0:0:0]    disk    HP       LOGICAL VOLUME   5.70  /dev/sda   3600508b1001c072a93d8825b16500fea  /dev/sg1
[4:0:0:1]    disk    HP       LOGICAL VOLUME   5.70  /dev/sdb   3600508b1001c4c98d3b101921097c450  /dev/sg2
[4:0:0:2]    disk    HP       LOGICAL VOLUME   5.70  /dev/sdc   3600508b1001c5096699d2d9dc6993ef2  /dev/sg3
[4:3:0:0]    storage HP       P410i            5.70  -          -  /dev/sg0
[8:0:0:5]    tape    IBM      ULT3580-TD4      0104  /dev/st0   -




# udevadm info --name sda
P: /devices/pci0000:00/0000:00:01.0/0000:04:00.0/host4/target4:0:0/4:0:0:0/block/sda
N: sda
:
E: ID_SCSI_SERIAL=50014380212E90E0
E: ID_SERIAL=3600508b1001c072a93d8825b16500fea
E: ID_SERIAL_SHORT=600508b1001c072a93d8825b16500fea



# udevadm info --name sg0
P: /devices/pci0000:00/0000:00:01.0/0000:04:00.0/host4/target4:3:0/4:3:0:0/scsi_generic/sg0
N: sg0
E: DEVNAME=/dev/sg0
E: DEVPATH=/devices/pci0000:00/0000:00:01.0/0000:04:00.0/host4/target4:3:0/4:3:0:0/scsi_generic/sg0
E: MAJOR=21
E: MINOR=0
E: SUBSYSTEM=scsi_generic


# sg_inq -p 0x83 /dev/sg0
VPD INQUIRY: Device Identification page
  Designation descriptor number 1, descriptor length: 20
    designator_type: vendor specific [0x0],  code_set: ASCII
    associated with the addressed logical unit
      vendor specific: 50014380212E90E0
  Designation descriptor number 2, descriptor length: 8
    designator_type: vendor specific [0x0],  code_set: Binary
    associated with the addressed logical unit
      vendor specific:
        00 00 00 00


$ ls -l /dev/disk/by-id | grep sdm
lrwxrwxrwx 1 root root  9 Jul 24 15:52 scsi-360014380125989a100004000013a0000 -> ../../sdm
$ ls -l /dev/tape/by-id | grep st0
lrwxrwxrwx 1 root root  9 Jul 24 15:52 scsi-360014380125989a100004000013b0000 -> ../../st0



¸µÅ© https://access.redhat.com/articles/17054


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com