среда, 2 октября 2019 г.

Изменение размера логического диска Smart Array P410i HP ProLiant DL380 G7 на esx5.1

Увеличение размера массива без выключение хоста. На контроллерах 400 серии эта функция не поддерживается.

Логические диски:
ctrl slot=0 ld all show

Smart Array P410i in Slot 0 (Embedded)

   array A

      logicaldrive 1 (136.7 GB, RAID 1, OK)

   array B

      logicaldrive 2 (279.4 GB, RAID 1, OK)

   array C

      logicaldrive 3 (465.7 GB, RAID 1, OK)

Проверяем физические диски:

Smart Array P410i in Slot 0 (Embedded)

   array A

      physicaldrive 2I:1:1 (port 2I:box 1:bay 1, SAS, 300 GB, OK)
      physicaldrive 2I:1:2 (port 2I:box 1:bay 2, SAS, 146 GB, OK)


Меняем второй диск 

Smart Array P410i in Slot 0 (Embedded)

   array A

      physicaldrive 2I:1:1 (port 2I:box 1:bay 1, SAS, 300 GB, OK)
      physicaldrive 2I:1:2 (port 2I:box 1:bay 2, SAS, 300 GB, Rebuilding)

Во время перестроения массива изменение размера выдаст ошибку:

Error: This operation is not supported with the current configuration. Use the
       "show" command on devices to show additional details about the
       configuration.
Reason: Array is transforming

Само увеличение логического диска: 

ctrl slot=0 ld 1 modify size=max forced

Проверяем:

ctrl slot=0 ld all show

Smart Array P410i in Slot 0 (Embedded)

   array A

      logicaldrive 1 (279.4 GB, RAID 1, OK)

   array B

      logicaldrive 2 (279.4 GB, RAID 1, OK)

   array C

      logicaldrive 3 (465.7 GB, RAID 1, OK)

Увеличение хранилища на ESX:
1.
 2.
 3.
 4.
 5.

HPE Smart Array P408i-a SR Gen10 transforming raid 1 to raid 10

1. List Smart Array config:

/opt/smartstorageadmin/ssacli/bin/ssacli controller slot=0 pd all show

HPE Smart Array P408i-a SR Gen10 in Slot 0 (Embedded)

   Array A

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS HDD, 1.2 TB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS HDD, 1.2 TB, OK)

   Unassigned

      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS HDD, 1.2 TB, OK)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS HDD, 1.2 TB, OK)

/opt/smartstorageadmin/ssacli/bin/ssacli controller slot=0 ld all show

HPE Smart Array P408i-a SR Gen10 in Slot 0 (Embedded)

   Array A

      logicaldrive 1 (1.09 TB, RAID 1, OK)

2. Add unusable drives to logicaldrive:

/opt/smartstorageadmin/ssacli/bin/ssacli controller slot=0 logicaldrive 1 add drives=allunassigned

3. Transforming raid 1 to raid 10

/opt/smartstorageadmin/ssacli/bin/ssacli controller slot=0 ld 1 modify raid=10

4. Waiting end trasforming

/opt/smartstorageadmin/ssacli/bin/ssacli controller slot=0 ld 1 show

HPE Smart Array P408i-a SR Gen10 in Slot 0 (Embedded)

   Array A

      Logical Drive: 1
         Size: 1.09 TB
         Fault Tolerance: 1+0
         Heads: 255
         Sectors Per Track: 32
         Cylinders: 65535
         Strip Size: 256 KB
         Full Stripe Size: 512 KB
         Status: Transforming, 2.48% complete
         Unrecoverable Media Errors: None
         MultiDomain Status: OK
         Caching:  Enabled
         Unique Identifier: 600508B1001C9550525957D08C30A9DE
         Boot Volume: Primary
         Logical Drive Label: Logical Drive 1
         Mirror Group 1:
            physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS HDD, 1.2 TB, OK)
            physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS HDD, 1.2 TB, OK)
         Mirror Group 2:
            physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS HDD, 1.2 TB, OK)
            physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS HDD, 1.2 TB, OK)
         Drive Type: Data
         LD Acceleration Method: Controller Cache

---

/opt/smartstorageadmin/ssacli/bin/ssacli controller slot=0 ld 1 show

HPE Smart Array P408i-a SR Gen10 in Slot 0 (Embedded)

   Array A

      Logical Drive: 1
         Size: 1.09 TB
         Fault Tolerance: 1+0
         Heads: 255
         Sectors Per Track: 32
         Cylinders: 65535
         Strip Size: 256 KB
         Full Stripe Size: 512 KB
         Status: OK
         Unrecoverable Media Errors: None
         MultiDomain Status: OK
         Caching:  Enabled
         Unique Identifier: 600508B1001C9550525957D08C30A9DE
         Boot Volume: Primary
         Logical Drive Label: Logical Drive 1
         Mirror Group 1:
            physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS HDD, 1.2 TB, OK)
            physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS HDD, 1.2 TB, OK)
         Mirror Group 2:
            physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS HDD, 1.2 TB, OK)
            physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS HDD, 1.2 TB, OK)
         Drive Type: Data
         LD Acceleration Method: Controller Cache


5. And finaly resize ld

/opt/smartstorageadmin/ssacli/bin/ssacli controller slot=0 ld 1 modify size=max forced
/opt/smartstorageadmin/ssacli/bin/ssacli controller slot=0 ld 1 show

HPE Smart Array P408i-a SR Gen10 in Slot 0 (Embedded)

   Array A

      Logical Drive: 1
         Size: 2.18 TB
         Fault Tolerance: 1+0
         Heads: 255
         Sectors Per Track: 32
         Cylinders: 65535
         Strip Size: 256 KB
         Full Stripe Size: 512 KB
         Status: OK
         Unrecoverable Media Errors: None
         MultiDomain Status: OK
         Caching:  Enabled
         Unique Identifier: 600508B1001C9550525957D08C30A9DE
         Boot Volume: Primary
         Logical Drive Label: Logical Drive 1
         Mirror Group 1:
            physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS HDD, 1.2 TB, OK)
            physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS HDD, 1.2 TB, OK)
         Mirror Group 2:
            physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS HDD, 1.2 TB, OK)
            physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS HDD, 1.2 TB, OK)
         Drive Type: Data
         LD Acceleration Method: Controller Cache