RECREATE
Bước 1: Tải file ISO CentOS-7-live-GNOME-x86_64.iso tại đây.
Bước 2: Mount vào server, boot vào Live CD, cấu hình network để thông mạng, sau đó mở Terminal
Bước 3: Tải file cài đặt ssacli – giao diện dòng lệnh để quản lý P440ar:
| wget –no-check-certificate https://downloads.hpe.com/pub/softlib2/software1/pubsw-linux/p1736097809/v241220/ssacli-6.40-6.0.x86_64.rpm sudo rpm -ivh ssacli-6.40-6.0.x86_64.rpm |
Bước 4: Dùng lệnh để show config hiện tại, và kiểm tra raid đang gặp vấn đề:
| ssacli controller slot=0 show config detail |
Ví dụ ở đây raid-0 đang lỗi có số thứ tự thứ 3:
Array: C
Interface Type: Solid State SATA
Unused Space: 0 MB (0.00%)
Used Space: 894.22 GB (100.00%)
Status: Failed
…
Warning: One of the drives on this array have failed or has been removed.
Logical Drive: 3
Size: 894.22 GB
…
Status: Failed
…
physicaldrive 2I:1:5
Port: 2I
Box: 1
Bay: 6
Status: OK
Drive Type: Data Drive
Interface Type: Solid State SATA
Size: 960 GB
Bước 5: Xóa raid lỗi – lưu ý chỉ xóa metadata chứ không xóa data trên disk:
| ssacli controller slot=0 logicaldrive 3 delete |
Bước 6: Tạo lại raid-0 với ổ đĩa cũ:
| ssacli controller slot=0 create type=ld drives=2I:1:5 raid=0 |
Lưu ý: Thông số drives phải nhập đúng vị trí disk, trong ví dụ trên là disk nằm ở slot 5
RESCAN DATASTORE
Bước 1: Mở service SSH và SSH vào server ESXi
Bước 2: Chạy lệnh để scan:
| esxcfg-volume -l |
Bước 3: Chạy lệnh để mount lại datastore
| esxcfg-volume -M <VMFS UUID> |
Ví dụ tổng về các bước rescan datastore
| [root@kh-154-34:~] esxcfg-volume -l Scanning for VMFS-6 host activity (4096 bytes/HB, 1024 HBs). VMFS UUID/label: 655eb886-3c1d77b0-2bf5-3ca82a210e6c/datastore3_960GB Can mount: Yes Can resignature: Yes Extent name: naa.600508b1001c3e091a08f9cd33c6708c:1 range: 0 – 915455 (MB) [root@kh-154-34:~] esxcfg-volume -M 655eb886-3c1d77b0-2bf5-3ca82a210e6c |
Leave A Comment?