Table of Contents

NAS - QNAP - Configuration Files used - /etc/enclosure_n.conf

/etc/enclosure_n.conf

This appears to be where the Physical enclosure disks are defined.

In my system, the following enclosures exist:


Enclosure 0

cat /etc/enclosure_0.conf

returns:

[Index]
pd_bitmap = 0x7f8
pd_sysid_sg5 = 3
pd_sysid_sdf = 3
pd_sysid_sg4 = 4
pd_sysid_sde = 4
pd_sysid_sg7 = 5
pd_sysid_sdh = 5
pd_sysid_sg6 = 6
pd_sysid_sdg = 6
pd_sysid_sg1 = 7
pd_sysid_sdb = 7
pd_sysid_sg0 = 8
pd_sysid_sda = 8
pd_sysid_sg3 = 9
pd_sysid_sdd = 9
pd_sysid_sg2 = 10
pd_sysid_sdc = 10
 
[PhysicalDisk_3]
port_id = 3
att_phy_id = -1
pd_sys_id = sg5
enc_sys_id = root
pd_sys_name = /dev/sdf
pd_ctrl_name = /dev/sg5
pd_bus_name = 12:0:0:0
pd_driver_name = ahci
wwn = 5000CCA263CA5081
real_wwn = 5000CCA263CA5081
type = 0
form = 2
vendor = WDC
model = WD80EFZX-68UW8N0
serial_no = R6GRPDGY
status = 0
capabilities = 207191
sector_size = 512
capacity = 15628053168
revision = 83.H0A83
protocol_ver = 589865
link_speed = 9
max_link_speed = 9
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_4]
port_id = 4
att_phy_id = -1
pd_sys_id = sg4
enc_sys_id = root
pd_sys_name = /dev/sde
pd_ctrl_name = /dev/sg4
pd_bus_name = 11:0:0:0
pd_driver_name = ahci
wwn = 5000CCA263CA4160
real_wwn = 5000CCA263CA4160
type = 0
form = 2
vendor = WDC
model = WD80EFZX-68UW8N0
serial_no = R6GRKBJY
status = 0
capabilities = 207191
sector_size = 512
capacity = 15628053168
revision = 83.H0A83
protocol_ver = 589865
link_speed = 9
max_link_speed = 9
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_5]
port_id = 5
att_phy_id = -1
pd_sys_id = sg7
enc_sys_id = root
pd_sys_name = /dev/sdh
pd_ctrl_name = /dev/sg7
pd_bus_name = 16:0:0:0
pd_driver_name = ahci
wwn = 5000CCA263CE6C51
real_wwn = 5000CCA263CE6C51
type = 0
form = 2
vendor = WDC
model = WD80EFZX-68UW8N0
serial_no = R6H0RLDY
status = 0
capabilities = 207191
sector_size = 512
capacity = 15628053168
revision = 83.H0A83
protocol_ver = 589865
link_speed = 9
max_link_speed = 9
pd_max_link_speed = 0
read_speed = 185.65 MB/sec
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_6]
port_id = 6
att_phy_id = -1
pd_sys_id = sg6
enc_sys_id = root
pd_sys_name = /dev/sdg
pd_ctrl_name = /dev/sg6
pd_bus_name = 15:0:0:0
pd_driver_name = ahci
wwn = 5000CCA263CE8E0A
real_wwn = 5000CCA263CE8E0A
type = 0
form = 2
vendor = WDC
model = WD80EFZX-68UW8N0
serial_no = R6H10KWY
status = 0
capabilities = 207191
sector_size = 512
capacity = 15628053168
revision = 83.H0A83
protocol_ver = 589865
link_speed = 9
max_link_speed = 9
pd_max_link_speed = 0
read_speed = 180.30 MB/sec
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_7]
port_id = 7
att_phy_id = -1
pd_sys_id = sg1
enc_sys_id = root
pd_sys_name = /dev/sdb
pd_ctrl_name = /dev/sg1
pd_bus_name = 4:0:0:0
wwn = 5000CCA263CCB805
real_wwn = 5000CCA263CCB805
type = 0
form = 2
vendor = WDC
model = WD80EFZX-68UW8N0
serial_no = R6GWZBEY
status = 0
capabilities = 207191
sector_size = 512
capacity = 15628053168
revision = 83.H0A83
protocol_ver = 589865
link_speed = 9
max_link_speed = 9
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_8]
port_id = 8
att_phy_id = -1
pd_sys_id = sg0
enc_sys_id = root
pd_sys_name = /dev/sda
pd_ctrl_name = /dev/sg0
pd_bus_name = 3:0:0:0
wwn = 5000CCA263CC3C28
real_wwn = 5000CCA263CC3C28
type = 0
form = 2
vendor = WDC
model = WD80EFZX-68UW8N0
serial_no = R6GVXBKY
status = 0
capabilities = 207191
sector_size = 512
capacity = 15628053168
revision = 83.H0A83
protocol_ver = 589865
link_speed = 9
max_link_speed = 9
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_9]
port_id = 9
att_phy_id = -1
pd_sys_id = sg3
enc_sys_id = root
pd_sys_name = /dev/sdd
pd_ctrl_name = /dev/sg3
pd_bus_name = 8:0:0:0
wwn = 5000CCA261D3A3C4
real_wwn = 5000CCA261D3A3C4
type = 0
form = 2
vendor = WDC
model = WD80EFZX-68UW8N0
serial_no = VJHD6AMX
status = 0
capabilities = 207191
sector_size = 512
capacity = 15628053168
revision = 83.H0A83
protocol_ver = 589865
link_speed = 9
max_link_speed = 9
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_10]
port_id = 10
att_phy_id = -1
pd_sys_id = sg2
enc_sys_id = root
pd_sys_name = /dev/sdc
pd_ctrl_name = /dev/sg2
pd_bus_name = 7:0:0:0
wwn = 5000CCA263CD99CD
real_wwn = 5000CCA263CD99CD
type = 0
form = 2
vendor = WDC
model = WD80EFZX-68UW8N0
serial_no = R6GYXHYY
status = 0
capabilities = 207191
sector_size = 512
capacity = 15628053168
revision = 83.H0A83
protocol_ver = 589865
link_speed = 9
max_link_speed = 9
pd_max_link_speed = 0
read_speed = 208.07 kB/sec
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400

NOTE: This is the primary NAS unit.

  • It has eight, 8TB WD-RED disks configured in RAID6.
  • The NAS does support two m.2, which I currently have removed, which may indicate why the first port number is shown as PhysicalDisk_3.
    • An assumption is that ports one and two would be used by the m.2 slots.

Enclosure 1

cat /etc/enclosure_1.conf

returns:

[VirtualDisk_1]
hw_raid_disk_bitmap = 1e
hw_raid_spare_bitmap = 0
port_id = 101
att_phy_id = -1
pd_sys_id = sg10
enc_sys_id = tr_5-2
pd_sys_name = /dev/sdk
pd_ctrl_name = /dev/sg10
pd_bus_name = 19:0:0:0
wwn = PQ2ZBGRPE2G347T5MKUJ
real_wwn = 
type = 0
form = 0
vendor = QNAP
model = TR-004
serial_no = PQ2ZBGRPE2G347T5MKUJ
status = 0
capabilities = 524352
sector_size = 512
capacity = 46883930112
revision = 
protocol_ver = 0
link_speed = 8
max_link_speed = 8
pd_max_link_speed = 0
read_speed = 160.18 MB/sec
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 0
hw_raid_type = 5
 
[Index]
virtual_pd_bitmap = 0x2
pd_sysid_sg10 = 101
pd_sysid_sdk = 101
pd_bitmap = 0x1e
pd_sysid_sg10:0 = 1
pd_sysid_sg10:1 = 2
pd_sysid_sg10:2 = 3
pd_sysid_sg10:3 = 4
 
[PhysicalDisk_1]
port_id = 1
att_phy_id = -1
pd_sys_id = sg10:0
enc_sys_id = tr_5-2
pd_sys_name = /dev/sg10:0
pd_ctrl_name = /dev/sg10:0
pd_bus_name = 
wwn = R6GYZ8RY
real_wwn = 
type = 0
form = 0
vendor = WDC
model = WD80EFZX-68UW8N0
serial_no = R6GYZ8RY
status = 0
capabilities = 65538
sector_size = 512
capacity = 15628042240
revision = 83.H0A83
protocol_ver = 589865
link_speed = 8
max_link_speed = 8
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_2]
port_id = 2
att_phy_id = -1
pd_sys_id = sg10:1
enc_sys_id = tr_5-2
pd_sys_name = /dev/sg10:1
pd_ctrl_name = /dev/sg10:1
pd_bus_name = 
wwn = R6GZ2LBY
real_wwn = 
type = 0
form = 0
vendor = WDC
model = WD80EFZX-68UW8N0
serial_no = R6GZ2LBY
status = 0
capabilities = 65538
sector_size = 512
capacity = 15628042240
revision = 83.H0A83
protocol_ver = 589865
link_speed = 8
max_link_speed = 8
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_3]
port_id = 3
att_phy_id = -1
pd_sys_id = sg10:2
enc_sys_id = tr_5-2
pd_sys_name = /dev/sg10:2
pd_ctrl_name = /dev/sg10:2
pd_bus_name = 
wwn = R6GZ55XY
real_wwn = 
type = 0
form = 0
vendor = WDC
model = WD80EFZX-68UW8N0
serial_no = R6GZ55XY
status = 0
capabilities = 65538
sector_size = 512
capacity = 15628042240
revision = 83.H0A83
protocol_ver = 589865
link_speed = 8
max_link_speed = 8
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_4]
port_id = 4
att_phy_id = -1
pd_sys_id = sg10:3
enc_sys_id = tr_5-2
pd_sys_name = /dev/sg10:3
pd_ctrl_name = /dev/sg10:3
pd_bus_name = 
wwn = VAJB0YAL
real_wwn = 
type = 0
form = 0
vendor = WDC
model = WD80EFAX-68KNBN0
serial_no = VAJB0YAL
status = 0
capabilities = 65538
sector_size = 512
capacity = 15628042240
revision = 81.00A81
protocol_ver = 589865
link_speed = 8
max_link_speed = 8
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400

NOTE: This is an external QNAP RAID expansion enclosure connected via a USB 3.2 Gen 1 cable.

  • It has four, 8TB WD-RED disks configured in RAID5.
  • There are dip switches on this expansion unit, allowing various configurations, and it is configured to be “managed” by the primary NAS.

Enclosure 3

cat /etc/enclosure_3.conf

returns:

[VirtualDisk_1]
hw_raid_disk_bitmap = 1e
hw_raid_spare_bitmap = 0
port_id = 101
att_phy_id = -1
pd_sys_id = sg8
enc_sys_id = tr_5-1
pd_sys_name = /dev/sdi
pd_ctrl_name = /dev/sg8
pd_bus_name = 17:0:0:0
wwn = O1ZOXRGXKARXMLK43LSX
real_wwn = 
type = 0
form = 0
vendor = QNAP
model = TR-004
serial_no = O1ZOXRGXKARXMLK43LSX
status = 0
capabilities = 524352
sector_size = 512
capacity = 46883930112
revision = 
protocol_ver = 0
link_speed = 8
max_link_speed = 8
pd_max_link_speed = 0
read_speed = 160.86 MB/sec
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 0
hw_raid_type = 5
 
[Index]
virtual_pd_bitmap = 0x2
pd_sysid_sg8 = 101
pd_sysid_sdi = 101
pd_bitmap = 0x1e
pd_sysid_sg8:0 = 1
pd_sysid_sg8:1 = 2
pd_sysid_sg8:2 = 3
pd_sysid_sg8:3 = 4
 
[PhysicalDisk_1]
port_id = 1
att_phy_id = -1
pd_sys_id = sg8:0
enc_sys_id = tr_5-1
pd_sys_name = /dev/sg8:0
pd_ctrl_name = /dev/sg8:0
pd_bus_name = 
wwn = 7HKKB22F
real_wwn = 
type = 0
form = 0
vendor = WDC
model = WD80EFAX-68LHPN0
serial_no = 7HKKB22F
status = 0
capabilities = 65538
sector_size = 512
capacity = 15628042240
revision = 83.H0A83
protocol_ver = 589865
link_speed = 8
max_link_speed = 8
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_2]
port_id = 2
att_phy_id = -1
pd_sys_id = sg8:1
enc_sys_id = tr_5-1
pd_sys_name = /dev/sg8:1
pd_ctrl_name = /dev/sg8:1
pd_bus_name = 
wwn = 7HKKBJUF
real_wwn = 
type = 0
form = 0
vendor = WDC
model = WD80EFAX-68LHPN0
serial_no = 7HKKBJUF
status = 0
capabilities = 65538
sector_size = 512
capacity = 15628042240
revision = 83.H0A83
protocol_ver = 589865
link_speed = 8
max_link_speed = 8
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_3]
port_id = 3
att_phy_id = -1
pd_sys_id = sg8:2
enc_sys_id = tr_5-1
pd_sys_name = /dev/sg8:2
pd_ctrl_name = /dev/sg8:2
pd_bus_name = 
wwn = R6H0S6YY
real_wwn = 
type = 0
form = 0
vendor = WDC
model = WD80EFZX-68UW8N0
serial_no = R6H0S6YY
status = 0
capabilities = 65538
sector_size = 512
capacity = 15628042240
revision = 83.H0A83
protocol_ver = 589865
link_speed = 8
max_link_speed = 8
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400
 
[PhysicalDisk_4]
port_id = 4
att_phy_id = -1
pd_sys_id = sg8:3
enc_sys_id = tr_5-1
pd_sys_name = /dev/sg8:3
pd_ctrl_name = /dev/sg8:3
pd_bus_name = 
wwn = VAHARY2L
real_wwn = 
type = 0
form = 0
vendor = WDC
model = WD80EFAX-68KNBN0
serial_no = VAHARY2L
status = 0
capabilities = 65538
sector_size = 512
capacity = 15628042240
revision = 81.00A81
protocol_ver = 589865
link_speed = 8
max_link_speed = 8
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 5400

NOTE: This is another external QNAP RAID expansion enclosure connected via a USB 3.2 Gen 1 cable.

  • It has four, 8TB WD-RED disks configured in RAID5.
  • There are dip switches on this expansion unit, allowing various configurations, and it is configured to be “managed” by the primary NAS.

Enclosure 33

cat /etc/enclosure_33.conf

returns:

[Index]
pd_bitmap = 0x8
pd_sysid_sg9 = 3
pd_sysid_sdj = 3
 
[PhysicalDisk_3]
port_id = 3
att_phy_id = -1
pd_sys_id = sg9
enc_sys_id = root_usb
pd_sys_name = /dev/sdj
pd_ctrl_name = /dev/sg9
pd_bus_name = 18:0:0:0
wwn = D067E516480EF480F618623A
real_wwn = 
type = 2
form = 0
vendor = Kingston
model = DataTraveler 3.0
serial_no = D067E516480EF480F618623A
status = 0
capabilities = 0
sector_size = 512
capacity = 60437492
revision = 
protocol_ver = 0
link_speed = 4
max_link_speed = 0
pd_max_link_speed = 0
read_speed = none
read_iops = none
write_speed = none
write_iops = none
rotation_speed = 0

NOTE: This is a USB stick, containing the most recent QNAP BIOS, which is currently plugged in due to the system having problems booting.

  • Attempts were being made to update the BIOS, by pressing F11 at boot, but this never works.
  • Probably not needed.