Show Table of Contents
25.2. 新增連接了 FCP 的邏輯單元(LUN)
以下為如何新增 FCP LUN 的範例。
注意
若在 z/VM 下執行的話,請確認 FCP 介面卡已連至 z/VM 客座端虛擬機器上。若要在生產環境下進行 multipath,在不同的兩個實體介面卡(CHPID)上,必須含有至少兩個 FCP 裝置。例如:
CP ATTACH FC00 TO *CP ATTACH FCD0 TO *
25.2.1. 動態式地啟動一個 FCP LUN
請依照下列步驟來啟動 LUN:
- 請使用
cio_ignore指令來將 FCP adapter 由忽略裝置清單中移除,並使其能讓 Linux 偵測到:# cio_ignore -r DeviceNumber將 DeviceNumber 替換為 FCP 控制器的裝置編號。例如: - 若要啟用 FCP 介面卡裝置,請使用下列指令:
# chccwdev -e fc00 - 驗證必要的 WWPN 能被 zfcp 裝置驅動程式的自動連接埠掃描偵測到:
# ls -l /sys/bus/ccw/drivers/zfcp/0.0.fc00/ drwxr-xr-x. 3 root root 0 Apr 28 18:19 0x500507630040710b drwxr-xr-x. 3 root root 0 Apr 28 18:19 0x50050763050b073d drwxr-xr-x. 3 root root 0 Apr 28 18:19 0x500507630e060521 drwxr-xr-x. 3 root root 0 Apr 28 18:19 0x500507630e860521 -r--r--r--. 1 root root 4096 Apr 28 18:17 availability -r--r--r--. 1 root root 4096 Apr 28 18:19 card_version -rw-r--r--. 1 root root 4096 Apr 28 18:17 cmb_enable -r--r--r--. 1 root root 4096 Apr 28 18:17 cutype -r--r--r--. 1 root root 4096 Apr 28 18:17 devtype lrwxrwxrwx. 1 root root 0 Apr 28 18:17 driver -> ../../../../bus/ccw/drivers/zfcp -rw-r--r--. 1 root root 4096 Apr 28 18:17 failed -r--r--r--. 1 root root 4096 Apr 28 18:19 hardware_version drwxr-xr-x. 35 root root 0 Apr 28 18:17 host0 -r--r--r--. 1 root root 4096 Apr 28 18:17 in_recovery -r--r--r--. 1 root root 4096 Apr 28 18:19 lic_version -r--r--r--. 1 root root 4096 Apr 28 18:17 modalias -rw-r--r--. 1 root root 4096 Apr 28 18:17 online -r--r--r--. 1 root root 4096 Apr 28 18:19 peer_d_id -r--r--r--. 1 root root 4096 Apr 28 18:19 peer_wwnn -r--r--r--. 1 root root 4096 Apr 28 18:19 peer_wwpn --w-------. 1 root root 4096 Apr 28 18:19 port_remove --w-------. 1 root root 4096 Apr 28 18:19 port_rescan drwxr-xr-x. 2 root root 0 Apr 28 18:19 power -r--r--r--. 1 root root 4096 Apr 28 18:19 status lrwxrwxrwx. 1 root root 0 Apr 28 18:17 subsystem -> ../../../../bus/ccw -rw-r--r--. 1 root root 4096 Apr 28 18:17 uevent
- 將 FCP LUN 新增至您將會用來存取 LUN 的連接埠(WWPN),以將它啟用:
# echo 0x4020400100000000 > /sys/bus/ccw/drivers/zfcp/0.0.fc00/0x50050763050b073d/unit_add - 找出指定的 SCSI 裝置名稱:
# lszfcp -DV /sys/devices/css0/0.0.0015/0.0.fc00/0x50050763050b073d/0x4020400100000000 /sys/bus/ccw/drivers/zfcp/0.0.fc00/host0/rport-0:0-21/target0:0:21/0:0:21:1089355792
欲取得更多相關資訊,請參閱 Linux on System z Device Drivers, Features, and Commands on Red Hat Enterprise Linux 6 中的 SCSI-over-Fibre Channel 章節。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.