Erinevus lehekülje "Linux ja fiber channel" redaktsioonide vahel

Allikas: Kuutõrvaja
12. rida: 12. rida:
 
  0x2050g01b3291a1a4
 
  0x2050g01b3291a1a4
 
  0x2001221b32b1a1a4
 
  0x2001221b32b1a1a4
 +
 +
Üldiselt üritab fiibrikaart juba bootimisel kõik saadaolevad kettad külge haakida. Nüüd aga kuidas öelda masinale, et skännigu uuesti saadaolevaid kettaid? selleks soovitati anda käsud
 +
 +
# ls /sys/class/fc_host
 +
host0 host3
 +
 +
Ja siis anname kummagile hostile ehk pordile käsu
 +
 +
echo "1" > /sys/class/fc_host/host0/issue_lip
 +
echo "- - -" > /sys/class/scsi_host/host0/scan
 +
 +
echo "1" > /sys/class/fc_host/host3/issue_lip
 +
echo "- - -" > /sys/class/scsi_host/host3/scan
 +
 +
Tundus, et toimis, dmesgi hüppas kohe teade kahe ketta leidmise kohta (üle kummagi fiibripordi siis)
 +
 +
scsi 0:0:1:0: Direct-Access    IBM      2145            0000 PQ: 0 ANSI: 6
 +
sd 0:0:1:0: Attached scsi generic sg19 type 0
 +
scsi 0:0:0:0: Direct-Access    IBM      2145            0000 PQ: 0 ANSI: 6
 +
sd 0:0:0:0: Attached scsi generic sg20 type 0
 +
sd 0:0:1:0: [sdl] 21474836480 512-byte logical blocks: (10.9 TB/10.0 TiB)
 +
sd 0:0:0:0: [sdm] 21474836480 512-byte logical blocks: (10.9 TB/10.0 TiB)
 +
sd 0:0:1:0: [sdl] Write Protect is off
 +
sd 0:0:1:0: [sdl] Mode Sense: 97 00 10 08
 +
sd 0:0:1:0: [sdl] Write cache: disabled, read cache: enabled, supports DPO and FUA
 +
sd 0:0:0:0: [sdm] Write Protect is off
 +
sd 0:0:0:0: [sdm] Mode Sense: 97 00 10 08
 +
sd 0:0:0:0: [sdm] Write cache: disabled, read cache: enabled, supports DPO and FUA
 +
  sdl:
 +
  sdm: unknown partition table
 +
  unknown partition table
 +
sd 0:0:0:0: [sdm] Attached SCSI disk
 +
sd 0:0:1:0: [sdl] Attached SCSI disk

Redaktsioon: 5. juuni 2015, kell 16:59

Qlogic qle2562 2xgbic dsc1696.jpg

Lspci info fiibrkaardi kohta

04:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
04:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)

Igas masinas oleval fiibrikaardil on kaks porti, igal pordil on oma numbriline identifikaator, neid saab teada käsuga

# cat /sys/class/scsi_host/host*/device/fc_host/host*/node_name
0x2050g01b3291a1a4
0x2001221b32b1a1a4

Üldiselt üritab fiibrikaart juba bootimisel kõik saadaolevad kettad külge haakida. Nüüd aga kuidas öelda masinale, et skännigu uuesti saadaolevaid kettaid? selleks soovitati anda käsud

# ls /sys/class/fc_host
host0 host3

Ja siis anname kummagile hostile ehk pordile käsu

echo "1" > /sys/class/fc_host/host0/issue_lip
echo "- - -" > /sys/class/scsi_host/host0/scan
echo "1" > /sys/class/fc_host/host3/issue_lip
echo "- - -" > /sys/class/scsi_host/host3/scan

Tundus, et toimis, dmesgi hüppas kohe teade kahe ketta leidmise kohta (üle kummagi fiibripordi siis)

scsi 0:0:1:0: Direct-Access     IBM      2145             0000 PQ: 0 ANSI: 6
sd 0:0:1:0: Attached scsi generic sg19 type 0
scsi 0:0:0:0: Direct-Access     IBM      2145             0000 PQ: 0 ANSI: 6
sd 0:0:0:0: Attached scsi generic sg20 type 0
sd 0:0:1:0: [sdl] 21474836480 512-byte logical blocks: (10.9 TB/10.0 TiB)
sd 0:0:0:0: [sdm] 21474836480 512-byte logical blocks: (10.9 TB/10.0 TiB)
sd 0:0:1:0: [sdl] Write Protect is off
sd 0:0:1:0: [sdl] Mode Sense: 97 00 10 08
sd 0:0:1:0: [sdl] Write cache: disabled, read cache: enabled, supports DPO and FUA
sd 0:0:0:0: [sdm] Write Protect is off
sd 0:0:0:0: [sdm] Mode Sense: 97 00 10 08
sd 0:0:0:0: [sdm] Write cache: disabled, read cache: enabled, supports DPO and FUA
 sdl:
 sdm: unknown partition table
 unknown partition table
sd 0:0:0:0: [sdm] Attached SCSI disk
sd 0:0:1:0: [sdl] Attached SCSI disk