MEGACLI là công cụ được Dell cung cấp, được dùng để tạo, xóa và sửa các ổ đĩa logic và vật lý trên smart array controller (RAID Card) trên Server Dell.
HPACUCLI (HP Array Configuration Utility CLI) là công cụ được HP cung cấp, được dùng để tạo, xóa và sửa các ổ đĩa logic và vật lý trên smart array controller (RAID Card) trên Server HP.
Cách 1: gõ hpacucli, sau đó gõ các câu lênh cần thực thi
# hpacucli
HP Array Configuration Utility CLI 9.20.9.0
Detecting Controllers...Done.
Type "help" for a list of supported commands.
Type "exit" to close the console.
=> rescan
=> exit
Cách 2: gõ trực tiếp câu lệnh # hpacucli rescan
3. Hiển thị trạng thái của Controller và ổ đĩa
=> hpacucli
HP Array Configuration Utility CLI 9.20.9.0
Detecting Controllers...Done.
Type "help" for a list of supported commands.
Type "exit" to close the console.
=> ctrl all show config
Smart Array P420i in Slot 0 (Embedded) (sn: 001438030E455F0)
array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (1.6 TB, RAID 0, OK)
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 600 GB, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 600 GB, OK)
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 600 GB, OK)
SEP (Vendor ID PMCSIERA, Model SRCv8x6G) 380 (WWID: 5001438030E455FF)
Hệ thống hiện có 3 ổ đĩa, mỗi ổ có dung lượng 600 GB. Ba ổ này đang được cấu hình RAID 0, dung lượng lưu trữ sau RAID là 1.6 TB
4. Kiểm tra trạng thái RAID Controller
=> ctrl all show status
Smart Array P420i in Slot 0 (Embedded)
Controller Status: OK
Cache Status: OK
Battery/Capacitor Status: OK
Thông tin hiển thị gồm trạng thái card RAID, trạng thái cache và Pin của card.
5. Kiểm tra thông tin ổ cứng
=> ctrl slot=0 pd all show status
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, 600 GB): OK
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, 600 GB): OK
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, 600 GB): OK
Như ta thấy, ổ cứng đang được gắn từ bay 1-3 trên Server, tất cả đêu trong trạng thái tốt.
6. Kiểm tra trạng thái của một ổ
=> ctrl slot=0 pd 1I:1:1 show detail
Smart Array P420i in Slot 0 (Embedded)
array A
physicaldrive 1I:1:1
Port: 1I
Box: 1
Bay: 1
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 600 GB
Rotational Speed: 10000
Firmware Revision: HPDC
Serial Number: KWH9X84R
Model: HP EG0600FBVFP
Current Temperature (C): 33
Maximum Temperature (C): 40
PHY Count: 2
PHY Transfer Rate: 6.0Gbps, Unknown
Drive Authentication Status: OK
Carrier Application Version: 11
Carrier Bootloader Version: 6
Trong câu lệnh, pd là ổ đĩa vật lý, 1I:1:1 là kí hiệu của ổ tại bay 1. Câu lệnh cho ra các thông tin về: dung lượng, vòng quay, Serial number, model, nhiệt độ hiện tại và cao nhất,...
7. Kiểm tra tất cả các ổ đĩa logic
=> ctrl slot=0 ld all show
Smart Array P420i in Slot 0 (Embedded)
array A
logicaldrive 1 (1.6 TB, RAID 0, OK)
Hiển thị trạng thái của các ổ đĩa logic tạo trên RAID, như trên ta có 1 ổ đĩa logic 1.6TB
8. Kiểm tra chi tiết trạng thái ổ đĩa vật lý
=> ctrl slot=0 ld 1 show
Smart Array P420i in Slot 0 (Embedded)
array A
Logical Drive: 1
Size: 1.6 TB
Fault Tolerance: RAID 0
Heads: 255
Sectors Per Track: 32
Cylinders: 65535
Strip Size: 256 KB
Full Stripe Size: 256 KB
Status: OK
Caching: Enabled
Unique Identifier: 600508B1001C8E5EE7B94BC101CBFD3E
Disk Name: /dev/sda
Mount Points: /boot 487 MB
OS Status: LOCKED
Logical Drive Label: A46B7F43001438030E455F0FF96
Drive Type: Data
1.4. Cấu hình zabbix agent để lấy quét số lượng đĩa cứng trong Server:
vim /etc/zabbix/zabbix_agentd.conf
#IP Zabbix-Server(ở đây là 172.16.69.45)
Server=172.16.69.45
#hostname cua Zabbix agent
Hostname=kvm4
# Dat USerparameter de zabbix agent quet so luong o dia
UserParameter=custom.vfs.dev.discovery, sudo /usr/bin/python /opt/zabbix/linux/megacli-status
1.5. Cấu hình cho phep user zabbix thực thi với sudo:
echo "zabbix ALL=NOPASSWD: ALL" >> /etc/sudoers
1.6. Cấu hinh zabbix agent lấy thông tin ổ đĩa
cd /etc/zabbix/zabbix_agentd.conf.d
wget https://raw.githubusercontent.com/longsube/Zabbix_check_physicaldisks_status/master/DELL%20RAID%20Controller/dell-disk-status%20.conf
service zabbix-agent restart
2. Trên Zabbix Server
2.1. Tạo Template Template Linux Disk Status để lấy thông tin ổ đĩa
2.2. Tạo Discovery rule cho template
Zabbix Server sẽ dựa vào key custom.vfs.dev.discovery, lọc theo {#DISK} để lấy tên của ổ đĩa (ở đây là vị trí của ổ đĩa), thời gian lấy mẫu là 30s.
2.3. Tạo Item prototype trong Discovery rule vừa tạo để lấy thông tin tình trạng ổ đĩa
Zabbix Server dựa vào key custom.vfs.dev.status[{#DISK}], thời gian lấy mẫu là 50s, loại thông tin là character
2.4. Tạo Item prototype trong Discovery rule vừa tạo để lấy thông tin nhiệt độ ổ đĩa
Zabbix Server dựa vào key custom.vfs.dev.temperature[{#DISK}], thời gian lấy mẫu là 30s, loại thông tin là numeric
2.5. Thêm host cần giám sát
Đưa template Template Linux Disk Status giám sát đisk vào host
1.4. Cấu hình zabbix agent để lấy quét số lượng đĩa cứng trong Server:
vim /etc/zabbix/zabbix_agentd.conf
#IP Zabbix-Server(ở đây là 172.16.69.45)
Server=172.16.69.45
#hostname cua Zabbix agent
Hostname=kvm-hpdl36001
# Dat USerparameter de zabbix agent quet so luong o dia
UserParameter=custom.vfs.dev.discovery, sudo /usr/bin/python /opt/zabbix/linux/hpacucli-status
1.5. Cấu hình cho phep user zabbix thực thi với sudo:
echo "zabbix ALL=NOPASSWD: ALL" >> /etc/sudoers
1.6. Cấu hinh zabbix agent lấy thông tin ổ đĩa
cd /etc/zabbix/zabbix_agentd.conf.d
wget https://github.com/longsube/Zabbix_check_physicaldisks_status/blob/master/HP%20RAID%20Controller/hpa-disk-status.conf
service zabbix-agent restart
2. Trên Zabbix Server
2.1. Tạo Template Template Linux Disk Status để lấy thông tin ổ đĩa
2.2. Tạo Discovery rule cho template
Zabbix Server sẽ dựa vào key custom.vfs.dev.discovery, lọc theo {#DISK} để lấy tên của ổ đĩa (ở đây là vị trí của ổ đĩa), thời gian lấy mẫu là 30s.
2.3. Tạo Item prototype trong Discovery rule vừa tạo để lấy thông tin tình trạng ổ đĩa
Zabbix Server dựa vào key custom.vfs.dev.status[{#DISK}], thời gian lấy mẫu là 50s, loại thông tin là character
2.4. Tạo Item prototype trong Discovery rule vừa tạo để lấy thông tin nhiệt độ ổ đĩa
Zabbix Server dựa vào key custom.vfs.dev.temperature[{#DISK}], thời gian lấy mẫu là 30s, loại thông tin là numeric
2.5. Thêm host cần giám sát
Đưa template Template Linux Disk Status giám sát đisk vào host
So below I go through how to use one of the new Group Policy Preferences options is called “Shortcuts” to remove the icon when ever it is re-instated (see below). While in this example I use (pick on) Adobe Reader it can also be used as a guide for removing any other shortcut that you so desire.
Step 1. Edit a GPO that targets the computers that you want to apply the home page setting.
Step 2. Navigate to User Configuration > Preferences > Control Panel Settings > Windows Settings
Step 3. Click on the “Action” menu and click on “New” and then click on “Shortcut”
Step 4. Change the Action to “Delete” then select “All Users Desktop” and then type “Adobe Reader 9” in the name field.
Now wait time you install an Adobe Reader update all you have to do is wait for the next group policy refresh and the shortcut will be gone… (Yes).