요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
FCoE controller instances
sysfs-bus-fcoe:25-78ctlr_X는 생성, per-port 설정, 활성화의 3단계 lifecycle을 따르며 mode·enabled·FCF timeout과 LESB error counters를 노출합니다.
Fibre Channel Forwarder instances
sysfs-bus-fcoe:80-138fcf_X는 Ethernet의 FCoE packets와 FC fabric의 frames를 중계하는 FCF의 식별자, 선택 정보, keep-alive와 연결 state를 노출합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/bus/fcoe/
Date: August 2012
KernelVersion: TBD
Contact: Robert Love <[email protected]>, [email protected]
Description: The FCoE bus. Attributes in this directory are control interfaces.
Attributes:
ctlr_create:
'FCoE Controller' instance creation interface. Writing an
<ifname> to this file will allocate and populate sysfs with a
fcoe_ctlr_device (ctlr_X). The user can then configure any
per-port settings and finally write to the fcoe_ctlr_device's
'start' attribute to begin the kernel's discovery and login
process.
ctlr_destroy:
'FCoE Controller' instance removal interface. Writing a
fcoe_ctlr_device's sysfs name to this file will log the
fcoe_ctlr_device out of the fabric or otherwise connected
FCoE devices. It will also free all kernel memory allocated
for this fcoe_ctlr_device and any structures associated
with it, this includes the scsi_host.
What: /sys/bus/fcoe/devices/ctlr_X
Date: March 2012
KernelVersion: TBD
Contact: Robert Love <[email protected]>, [email protected]
Description: 'FCoE Controller' instances on the fcoe bus.
The FCoE Controller now has a three stage creation process.
1) Write interface name to ctlr_create 2) Configure the FCoE
Controller (ctlr_X) 3) Enable the FCoE Controller to begin
discovery and login. The FCoE Controller is destroyed by
writing its name, i.e. ctlr_X to the ctlr_delete file.
Attributes:
fcf_dev_loss_tmo:
Device loss timeout period (see below). Changing
this value will change the dev_loss_tmo for all
FCFs discovered by this controller.
mode:
Display or change the FCoE Controller's mode. Possible
modes are 'Fabric' and 'VN2VN'. If a FCoE Controller
is started in 'Fabric' mode then FIP FCF discovery is
initiated and ultimately a fabric login is attempted.
If a FCoE Controller is started in 'VN2VN' mode then
FIP VN2VN discovery and login is performed. A FCoE
Controller only supports one mode at a time.
enabled:
Whether an FCoE controller is enabled or disabled.
0 if disabled, 1 if enabled. Writing either 0 or 1
to this file will enable or disable the FCoE controller.
lesb/link_fail:
Link Error Status Block (LESB) link failure count.
lesb/vlink_fail:
Link Error Status Block (LESB) virtual link
failure count.
lesb/miss_fka:
Link Error Status Block (LESB) missed FCoE
Initialization Protocol (FIP) Keep-Alives (FKA).
lesb/symb_err:
Link Error Status Block (LESB) symbolic error count.
lesb/err_block:
Link Error Status Block (LESB) block error count.
lesb/fcs_error:
Link Error Status Block (LESB) Fibre Channel
Services error count.
Notes: ctlr_X (global increment starting at 0)
What: /sys/bus/fcoe/devices/fcf_X
Date: March 2012
KernelVersion: TBD
Contact: Robert Love <[email protected]>, [email protected]
Description: 'FCoE FCF' instances on the fcoe bus. A FCF is a Fibre Channel
Forwarder, which is a FCoE switch that can accept FCoE
(Ethernet) packets, unpack them, and forward the embedded
Fibre Channel frames into a FC fabric. It can also take
outbound FC frames and pack them in Ethernet packets to
be sent to their destination on the Ethernet segment.
Attributes:
fabric_name:
Identifies the fabric that the FCF services.
switch_name:
Identifies the FCF.
priority:
The switch's priority amongst other FCFs on the same
fabric.
selected:
1 indicates that the switch has been selected for use;
0 indicates that the switch will not be used.
fc_map:
The Fibre Channel MAP
vfid:
The Virtual Fabric ID
mac:
The FCF's MAC address
fka_period:
The FIP Keep-Alive period
fabric_state: The internal kernel state
- "Unknown" - Initialization value
- "Disconnected" - No link to the FCF/fabric
- "Connected" - Host is connected to the FCF
- "Deleted" - FCF is being removed from the system
dev_loss_tmo: The device loss timeout period for this FCF.
Notes: A device loss infrastructure similar to the FC Transport's
is present in fcoe_sysfs. It is nice to have so that a
link flapping adapter doesn't continually advance the count
used to identify the discovered FCF. FCFs will exist in a
"Disconnected" state until either the timer expires and the
FCF becomes "Deleted" or the FCF is rediscovered and becomes
"Connected."
Users: The first user of this interface will be the fcoeadm application,
which is commonly packaged in the fcoe-utils package.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
FCoE bus control interfaces
1-23| 항목 | 전문 번역 |
|---|---|
| What | /sys/bus/fcoe/ |
| Date | 2012년 8월 |
| KernelVersion | TBD |
| Contact | Robert Love <[email protected]>, [email protected] |
| Description | FCoE bus입니다. 이 directory의 attributes는 control interfaces입니다. |
| Attribute | 전문 번역 |
|---|---|
| ctlr_create | 'FCoE Controller' instance 생성 interface입니다. 이 file에 <ifname>을 쓰면 fcoe_ctlr_device(ctlr_X)를 할당하고 sysfs를 채웁니다. 그 후 사용자는 port별 설정을 구성하고, 마지막으로 fcoe_ctlr_device의 'start' attribute에 써서 kernel의 discovery 및 login process를 시작할 수 있습니다. |
| ctlr_destroy | 'FCoE Controller' instance 제거 interface입니다. 이 file에 fcoe_ctlr_device의 sysfs 이름을 쓰면 fcoe_ctlr_device를 fabric 또는 그 밖에 연결된 FCoE devices에서 logout시킵니다. 또한 이 fcoe_ctlr_device와 연관 구조체에 할당된 모든 kernel memory를 해제하며, 여기에는 scsi_host도 포함됩니다. |
FCoE controller instances
25-78| 항목 | 전문 번역 |
|---|---|
| What | /sys/bus/fcoe/devices/ctlr_X |
| Date | 2012년 3월 |
| KernelVersion | TBD |
| Contact | Robert Love <[email protected]>, [email protected] |
| Description | FCoE bus의 'FCoE Controller' instances입니다. FCoE Controller의 생성 process는 이제 세 단계입니다. 1) interface 이름을 ctlr_create에 씁니다. 2) FCoE Controller(ctlr_X)를 구성합니다. 3) FCoE Controller를 enable하여 discovery와 login을 시작합니다. FCoE Controller는 그 이름, 즉 ctlr_X를 ctlr_delete file에 써서 제거합니다. |
| Attribute | 전문 번역 |
|---|---|
| fcf_dev_loss_tmo | Device loss timeout 기간입니다. 아래 설명도 참조합니다. 이 값을 변경하면 이 controller가 발견한 모든 FCF의 dev_loss_tmo가 변경됩니다. |
| mode | FCoE Controller의 mode를 표시하거나 변경합니다. 가능한 mode는 'Fabric'과 'VN2VN'입니다. 'Fabric' mode로 시작하면 FIP FCF discovery를 시작하고 최종적으로 fabric login을 시도합니다. 'VN2VN' mode로 시작하면 FIP VN2VN discovery와 login을 수행합니다. FCoE Controller는 한 번에 하나의 mode만 지원합니다. |
| enabled | FCoE controller의 enable 또는 disable 여부입니다. disable이면 0, enable이면 1입니다. 이 file에 0 또는 1을 쓰면 FCoE controller를 disable하거나 enable합니다. |
| lesb/link_fail | Link Error Status Block(LESB)의 link failure count입니다. |
| lesb/vlink_fail | Link Error Status Block(LESB)의 virtual link failure count입니다. |
| lesb/miss_fka | Link Error Status Block(LESB)에서 누락된 FCoE Initialization Protocol(FIP) Keep-Alives(FKA)의 수입니다. |
| lesb/symb_err | Link Error Status Block(LESB)의 symbolic error count입니다. |
| lesb/err_block | Link Error Status Block(LESB)의 block error count입니다. |
| lesb/fcs_error | Link Error Status Block(LESB)의 Fibre Channel Services error count입니다. |
참고: ctlr_X는 0부터 시작해 전역적으로 증가합니다.
Fibre Channel Forwarder instances
80-138| 항목 | 전문 번역 |
|---|---|
| What | /sys/bus/fcoe/devices/fcf_X |
| Date | 2012년 3월 |
| KernelVersion | TBD |
| Contact | Robert Love <[email protected]>, [email protected] |
| Description | FCoE bus의 'FCoE FCF' instances입니다. FCF는 Fibre Channel Forwarder입니다. FCoE(Ethernet) packets를 받아 unpack하고 그 안의 Fibre Channel frames를 FC fabric으로 전달할 수 있는 FCoE switch입니다. 또한 outbound FC frames를 Ethernet packets에 넣어 Ethernet segment의 목적지로 보낼 수 있습니다. |
| Attribute | 전문 번역 |
|---|---|
| fabric_name | FCF가 서비스하는 fabric을 식별합니다. |
| switch_name | FCF를 식별합니다. |
| priority | 같은 fabric에 있는 다른 FCF와 비교한 switch의 priority입니다. |
| selected | 1은 사용할 switch로 선택되었음을 나타내고, 0은 switch가 사용되지 않음을 나타냅니다. |
| fc_map | Fibre Channel MAP입니다. |
| vfid | Virtual Fabric ID입니다. |
| mac | FCF의 MAC address입니다. |
| fka_period | FIP Keep-Alive 기간입니다. |
| fabric_state | 내부 kernel state입니다. 'Unknown'은 initialization value, 'Disconnected'는 FCF/fabric과 link가 없는 상태, 'Connected'는 host가 FCF에 연결된 상태, 'Deleted'는 FCF가 system에서 제거되는 중인 상태입니다. |
| dev_loss_tmo | 이 FCF의 device loss timeout 기간입니다. |
참고: FC Transport와 유사한 device loss infrastructure가 fcoe_sysfs에 있습니다. link가 반복해서 끊겼다 붙는 adapter 때문에 발견된 FCF를 식별하는 데 쓰는 count가 계속 증가하지 않도록 하는 데 유용합니다. FCF는 timer가 만료되어 'Deleted'가 되거나, 다시 발견되어 'Connected'가 될 때까지 'Disconnected' state로 존재합니다.
사용자: 이 interface의 첫 사용자는 fcoeadm application이며, 일반적으로 fcoe-utils package에 포함됩니다.
FCoE bus control interfaces
sysfs-bus-fcoe:1-23FCoE bus의 ctlr_create와 ctlr_destroy는 interface 이름으로 controller를 만들고, sysfs controller 이름으로 fabric logout과 관련 kernel 자원 해제를 수행합니다.