miniPCがUSBからHDDを認識しているかの確認

sudo dmesg | grep sd
実行結果
[    0.016092] ACPI: SSDT 0x000000007552B000 005D0B (v02 CpuRef CpuSsdt  00003000 INTL 20200717)
[    0.016095] ACPI: SSDT 0x0000000075528000 002935 (v02 SaSsdt SaSsdt   00003000 INTL 20200717)
[    0.016099] ACPI: SSDT 0x0000000075524000 0033D3 (v02 INTEL  IgfxSsdt 00003000 INTL 20200717)
[    0.308001] ACPI: SSDT 0xFFFF8A8300EB1400 0001AB (v02 PmRef  Cpu0Psd  00003000 INTL 20200717)
[    0.320809] ACPI: SSDT 0xFFFF8A8300CE6000 001349 (v02 PmRef  ApPsd    00003000 INTL 20200717)
[    1.250032] sdhci: Secure Digital Host Controller Interface driver
[    1.250039] sdhci: Copyright(c) Pierre Ossman
[    1.251182] ahci 0000:00:17.0: flags: 64bit ncq sntf pm clo only pio slum part deso sadm sds
[    1.252689] sdhci-pci 0000:00:1a.0: SDHCI controller found [8086:54c4] (rev 0)
[177931.594275] sd 2:0:0:0: Attached scsi generic sg0 type 0
[177931.595539] sd 2:0:0:0: [sda] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[177931.595545] sd 2:0:0:0: [sda] 4096-byte physical blocks
[177931.595695] sd 2:0:0:0: [sda] Write Protect is off
[177931.595699] sd 2:0:0:0: [sda] Mode Sense: 2f 00 00 00
[177931.596052] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[177931.596507] sd 2:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[177931.596904] sd 3:0:0:0: Attached scsi generic sg1 type 0
[177931.598199] sd 3:0:0:0: [sdb] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[177931.598204] sd 3:0:0:0: [sdb] 4096-byte physical blocks
[177931.598402] sd 3:0:0:0: [sdb] Write Protect is off
[177931.598406] sd 3:0:0:0: [sdb] Mode Sense: 2f 00 00 00
[177931.598802] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[177931.599223] sd 3:0:0:0: [sdb] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[177931.600264] sd 4:0:0:0: Attached scsi generic sg2 type 0
[177931.602408] sd 4:0:0:0: [sdc] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[177931.602414] sd 4:0:0:0: [sdc] 4096-byte physical blocks
[177931.602626] sd 4:0:0:0: [sdc] Write Protect is off
[177931.602630] sd 4:0:0:0: [sdc] Mode Sense: 2f 00 00 00
[177931.602990] sd 4:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[177931.603483] sd 4:0:0:0: [sdc] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[177931.855011] sd 5:0:0:0: [sdd] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[177931.855016] sd 5:0:0:0: [sdd] 4096-byte physical blocks
[177931.855226] sd 5:0:0:0: [sdd] Write Protect is off
[177931.855229] sd 5:0:0:0: [sdd] Mode Sense: 2f 00 00 00
[177931.855603] sd 5:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[177931.856037] sd 5:0:0:0: [sdd] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[177932.143823] sd 6:0:0:0: Attached scsi generic sg4 type 0
[177932.146412] sd 6:0:0:0: [sde] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[177932.146416] sd 6:0:0:0: [sde] 4096-byte physical blocks
[177932.146615] sd 6:0:0:0: [sde] Write Protect is off
[177932.146618] sd 6:0:0:0: [sde] Mode Sense: 2f 00 00 00
[177932.147040] sd 6:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[177932.147531] sd 6:0:0:0: [sde] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[177932.569405] sd 4:0:0:0: [sdc] Attached SCSI disk
[177932.722000] sd 2:0:0:0: [sda] Attached SCSI disk
[177932.765726] sd 3:0:0:0: [sdb] Attached SCSI disk
[177933.106148] sd 5:0:0:0: [sdd] Attached SCSI disk
[177933.518688] sd 6:0:0:0: [sde] Attached SCSI disk
[604106.481853] sd 4:0:0:0: [sdc] Synchronizing SCSI cache
[604106.725815] sd 4:0:0:0: [sdc] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[604106.773952] sd 2:0:0:0: [sda] Synchronizing SCSI cache
[604107.013802] sd 2:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[604107.057950] sd 3:0:0:0: [sdb] Synchronizing SCSI cache
[604107.297789] sd 3:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[604107.349881] sd 5:0:0:0: [sdd] Synchronizing SCSI cache
[604107.601774] sd 5:0:0:0: [sdd] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[604107.645863] sd 6:0:0:0: [sde] Synchronizing SCSI cache
[604107.885776] sd 6:0:0:0: [sde] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[688984.674348] sd 2:0:0:1: Attached scsi generic sg0 type 0
[688984.678814] sd 2:0:0:1: [sda] 62914560 512-byte logical blocks: (32.2 GB/30.0 GiB)
[688984.679415] sd 2:0:0:1: [sda] Write Protect is off
[688984.679422] sd 2:0:0:1: [sda] Mode Sense: 43 00 10 08
[688984.680516] sd 2:0:0:1: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
[688984.681588] sd 2:0:0:1: [sda] Optimal transfer size 16384 logical blocks > dev_max (8192 logical blocks)
[688984.687627] sd 2:0:0:1: alua: transition timeout set to 60 seconds
[688984.687635] sd 2:0:0:1: alua: port group 00 state A non-preferred supports TOlUSNA
[688984.694348] sd 2:0:0:1: [sda] Attached SCSI disk
[693392.317924] sd 2:0:0:1: [sda] Synchronizing SCSI cache
[693392.318547] sd 2:0:0:1: Capacity data has changed
[693435.634046] sd 2:0:0:1: Attached scsi generic sg0 type 0
[693435.638637] sd 2:0:0:1: [sda] 629145600 512-byte logical blocks: (322 GB/300 GiB)
[693435.639159] sd 2:0:0:1: [sda] Write Protect is off
[693435.639164] sd 2:0:0:1: [sda] Mode Sense: 43 00 10 08
[693435.639938] sd 2:0:0:1: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
[693435.641091] sd 2:0:0:1: [sda] Optimal transfer size 16384 logical blocks > dev_max (8192 logical blocks)
[693435.649499] sd 2:0:0:1: alua: transition timeout set to 60 seconds
[693435.649507] sd 2:0:0:1: alua: port group 00 state A non-preferred supports TOlUSNA
[693435.655414] sd 2:0:0:1: [sda] Attached SCSI disk
[695091.083103] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[695091.218061] NFSD: Using nfsdcld client tracking operations.
[1013384.253890] sd 2:0:0:1: [sda] Synchronizing SCSI cache
[1013780.574704] sd 2:0:0:1: Attached scsi generic sg0 type 0
[1013780.579774] sd 2:0:0:1: [sda] 629145600 512-byte logical blocks: (322 GB/300 GiB)
[1013780.580371] sd 2:0:0:1: [sda] Write Protect is off
[1013780.580377] sd 2:0:0:1: [sda] Mode Sense: 43 00 10 08
[1013780.581594] sd 2:0:0:1: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
[1013780.582757] sd 2:0:0:1: [sda] Optimal transfer size 16384 logical blocks > dev_max (8192 logical blocks)
[1013780.586481] sd 2:0:0:1: alua: transition timeout set to 60 seconds
[1013780.586488] sd 2:0:0:1: alua: port group 00 state A non-preferred supports TOlUSNA
[1013780.595997] sd 2:0:0:1: [sda] Attached SCSI disk
一部抜粋 以下が認識されたHDD 8TBのHDDが5枚認識されている.
c0a21137@archive-s:~$ sudo dmesg | grep sd | grep "8.00\sTB"
[177931.595539] sd 2:0:0:0: [sda] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[177931.598199] sd 3:0:0:0: [sdb] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[177931.602408] sd 4:0:0:0: [sdc] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[177931.855011] sd 5:0:0:0: [sdd] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[177932.146412] sd 6:0:0:0: [sde] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)

sa-ba.jpg (1.8 MB)

image.png (474.9 kB)

アーカイブサーバ ハードウェア ファイル構成図 image.png (232.9 kB)

以下のコードで接続されているハードウェアが確認できる

sudo lshw 
実行結果(一部抜粋)
 *-scsi
          physical id: 1
          logical name: scsi2
        *-disk
             description: SCSI Disk
             product: Storage
             vendor: SYNOLOGY
             physical id: 0.0.1
             bus info: scsi@2:0.0.1
             logical name: /dev/sda
             version: 4.0
             serial: 009dc67e-e4a5-41f1-acf7-fdad331d06e6
             size: 300GiB (322GB)
             configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512

現在iSCSIを使って接続されているターゲット一覧

c0a21137@archive-s:~$ sudo iscsiadm -m session
tcp: [11] 192.168.110.5:3260,1 iqn.2000-01.com.synology:tapioca.Target-11.58838159382 (non-flash)

iSCSI helpコマンド https://support.citrix.com/article/CTX140118/helpful-iscsi-commands

c0a21137@archive-s:~$ sudo iscsiadm -m session -P3
iSCSI Transport Class version 2.0-870
version 2.1.5
Target: iqn.2000-01.com.synology:tapioca.Target-11.58838159382 (non-flash)
        Current Portal: 192.168.110.5:3260,1
        Persistent Portal: 192.168.110.5:3260,1
                **********
                Interface:
                **********
                Iface Name: default
                Iface Transport: tcp
                Iface Initiatorname: iqn.2004-10.com.ubuntu:01:84de25ddfc37
                Iface IPaddress: 192.168.110.11
                Iface HWaddress: default
                Iface Netdev: default
                SID: 11
                iSCSI Connection State: LOGGED IN
                iSCSI Session State: LOGGED_IN
                Internal iscsid Session State: NO CHANGE
                *********
                Timeouts:
                *********
                Recovery Timeout: 120
                Target Reset Timeout: 30
                LUN Reset Timeout: 30
                Abort Timeout: 15
                *****
                CHAP:
                *****
                username: <empty>
                password: ********
                username_in: <empty>
                password_in: ********
                ************************
                Negotiated iSCSI params:
                ************************
                HeaderDigest: None
                DataDigest: None
                MaxRecvDataSegmentLength: 262144
                MaxXmitDataSegmentLength: 262144
                FirstBurstLength: 65536
                MaxBurstLength: 262144
                ImmediateData: Yes
                InitialR2T: Yes
                MaxOutstandingR2T: 1
                ************************
                Attached SCSI devices:
                ************************
                Host Number: 2  State: running
                scsi2 Channel 00 Id 0 Lun: 1
                        Attached scsi disk sda      State: running

物理的に接続されているディスクの一覧を表示

sudo fdisk -l
実行結果
c0a21137@archive-s:~$ sudo fdisk -l
Disk /dev/loop1: 63.91 MiB, 67014656 bytes, 130888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 86.99 MiB, 91213824 bytes, 178152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 86.99 MiB, 91213824 bytes, 178152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 40.43 MiB, 42393600 bytes, 82800 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 40.86 MiB, 42840064 bytes, 83672 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop6: 63.91 MiB, 67010560 bytes, 130880 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/nvme0n1: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Samsung SSD 980 1TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 16384 bytes / 131072 bytes
Disklabel type: gpt
Disk identifier: D6F9C039-0E5F-46AD-B3F8-95ADE272BC5B

Device           Start        End    Sectors   Size Type
/dev/nvme0n1p1    2048    2203647    2201600     1G EFI System
/dev/nvme0n1p2 2203648    6397951    4194304     2G Linux filesystem
/dev/nvme0n1p3 6397952 1953521663 1947123712 928.5G Linux filesystem


Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 928.46 GiB, 996923146240 bytes, 1947115520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 16384 bytes / 131072 bytes


Disk /dev/sda: 300 GiB, 322122547200 bytes, 629145600 sectors
Disk model: Storage
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

現状02/27・28

8TBのHDD5つが認識されていないためマウントする必要がある ここでHDDとminiPCのUSBを抜きなおししてしまった. dmesg(OSのから書き込まれるlog?)によれば[177933.518688]まではOS上では5枚のHDDだと考えられる「sda」「sdb」「sdc」「sdd」「sde」が認識されていた. しかし,[604106.481853]からそれぞれにエラーが発生しており,先ほどの抜き差しが原因だと考えられる. 今現在,ディスクの一覧を確認すると容量が300GBの「sda」とminiPCにもともと組み込まれているSSDが表示される この300GBの「sda」はおそらくiSCSIのインタフェースに内蔵されている容量だと考えられる.

OSに「sda」「sdb」「sdc」「sdd」「sde」をもう一度再認識させる必要がある. ・miniPCのリブート?再起動を行いもう一度認識させる?

どこで実行するのかどこを経由するのかを明確に図があるといいよね

02/29

前日のHDDの問題は解決した miniPCをリブートし,HDDラックの電源をOFF,もう一度電源を入れなおす.もう一度miniPCをリブート 以上で再認識することができた

再認識した結果

sudo fdisk -l
Disk /dev/sda: 7.28 TiB, 8001563222016 bytes, 15628053168 sectors
Disk model: EAZZ-00BKLB0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 3167EC22-4AAD-413E-BCE5-05AF1AAF4617

Device     Start         End     Sectors  Size Type
/dev/sda1   2048 15628052479 15628050432  7.3T Linux filesystem


Disk /dev/sdb: 7.28 TiB, 8001563222016 bytes, 15628053168 sectors
Disk model: EAZZ-00BKLB0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 71740B85-40D4-4F1C-B36C-D0473E97E6BB

Device     Start         End     Sectors  Size Type
/dev/sdb1   2048 15628052479 15628050432  7.3T Linux filesystem


Disk /dev/sdc: 7.28 TiB, 8001563222016 bytes, 15628053168 sectors
Disk model: EAZZ-00BKLB0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: D23D2C5C-5CB8-4319-A108-D3E613611C90

Device     Start         End     Sectors  Size Type
/dev/sdc1   2048 15628052479 15628050432  7.3T Linux filesystem


Disk /dev/sdd: 7.28 TiB, 8001563222016 bytes, 15628053168 sectors
Disk model: EAZZ-00BKLB0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: C2208AF4-ED98-473A-858C-C929356710B3

Device     Start         End     Sectors  Size Type
/dev/sdd1   2048 15628052479 15628050432  7.3T Linux filesystem


Disk /dev/sde: 7.28 TiB, 8001563222016 bytes, 15628053168 sectors
Disk model: EAZZ-00BKLB0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: A178F4D2-D36F-4D2A-8068-039E251EF17C

Device     Start         End     Sectors  Size Type
/dev/sde1   2048 15628052479 15628050432  7.3T Linux filesystem
再認識された!!