On 3/12/25 16:41, Yassine Chaouche wrote:
Dear list,

I have 5 disks on my server,
2x1 terabyte disks + 3x450 Gb disks,
but smartctl and cciss_vol_status only show 3 disks.
My controller is sg0 as shown in the output of lssci


   root@messagerie-recup[10.10.10.22] ~ # lsscsi -gs
  [1:0:0:0]    cd/dvd  hp       DVD A  DS8A5LH   1HE3  /dev/sr0   /dev/ sg3   1.07GB   [2:0:0:0]    storage HP       P420i            3.22  -          /dev/ sg0        -   [2:1:0:0]    disk    HP       LOGICAL VOLUME   3.22  /dev/sda   /dev/ sg1    450GB   [2:1:0:1]    disk    HP       LOGICAL VOLUME   3.22  /dev/sdb   /dev/ sg2   2.00TB
   root@messagerie-recup[10.10.10.22] ~ #


and this is the output from cciss

   root@messagerie-recup[10.10.10.22] ~ # cciss_vol_status -V /dev/sg0
   Controller: Smart Array P420i
     Board ID: 0x3354103c
     Logical drives: 2
     Running firmware: 3.22
     ROM firmware: 3.22
  /dev/sda: (Smart Array P420i) RAID 1(1+0) Volume 0 status: Using interim recovery mode.
     Failed drives:
           connector 1I box 2 bay 2                  HP EG0450FBLSF                          6XQ1HLAJ0000B239FN4Z     HPD7
       Total of 1 failed physical drives detected on this logical drive.
  /dev/sdb: (Smart Array P420i) RAID 5 Volume 1 status: Using interim recovery mode.
     Failed drives:
           connector 2I box 2 bay 6                  HP MM1000FBFVR                          9XG25D7Z00009248ZTUB     HPD5
       Total of 1 failed physical drives detected on this logical drive.
     Physical drives: 3
           connector 1I box 2 bay 1                  HP EG0450FBLSF                          6XQ1HGMC0000B307B4YK     HPD7 S.M.A.R.T. predictive failure.            connector 2I box 2 bay 5                  HP MM1000FBFVR                          9XG2CG0J00009250NWN4     HPD5 OK            connector 2I box 2 bay 7                  HP MM1000FBFVR                          9XG5RYDQ000094198GDT     HPD8 OK
   /dev/sg0(Smart Array P420i:0): Non-Volatile Cache status:
                      Cache configured: Yes
                    Total cache memory: 816 MiB
                           Cache Ratio: 10% Read / 90% Write
                     Read cache memory: 82 MiB
                    Write cache memory: 734 MiB
                   Write cache enabled: Yes
      Flash backed cache present
   root@messagerie-recup[10.10.10.22] ~ #



in particular, it says physical drives: 3
smartctl also detects 3 drives:



  root@messagerie-recup[10.10.10.22] ~ # for i in {0..10}; do smartctl -a -d cciss,"$i" /dev/sg0 | grep -E '(User Capacity|Serial number| Logical Unit id)'; done
   User Capacity:        450,098,159,616 bytes [450 GB]
   Logical Unit id:      0x5000c5005a341ef7
   Serial number:        6XQ1HGMC0000B307B4YK
   User Capacity:        1,000,204,886,016 bytes [1.00 TB]
   Logical Unit id:      0x5000c500421e7a3f
   Serial number:        9XG2CG0J00009250NWN4
   User Capacity:        1,000,204,886,016 bytes [1.00 TB]
   Logical Unit id:      0x5000c50057d167ff
   Serial number:        9XG5RYDQ000094198GDT
   root@messagerie-recup[10.10.10.22] ~ #

According to my (very old) scripts you should use something like
/dev/cciss/c1d0 instead of /dev//sg?. So try:
smartctl -i -d cciss,$i /dev/cciss/c1d0

Greg

Reply via email to