os:esxi:cli
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
os:esxi:cli [2015-07-25 23:07] – root | os:esxi:cli [2015-07-27 22:12] (current) – root | ||
---|---|---|---|
Line 19: | Line 19: | ||
</ | </ | ||
- | ===== Poweroff or kill a VM ===== | + | ===== Poweroff or kill a VM ===== |
**Attention**: | **Attention**: | ||
Line 61: | Line 61: | ||
~ # esxcli vm process kill --type=force --world-id=35930 | ~ # esxcli vm process kill --type=force --world-id=35930 | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== Create logical RAID 1 drive with two new disk ===== | ||
+ | |||
+ | // | ||
+ | |||
+ | First, check if the system detected the new disks. | ||
+ | |||
+ | < | ||
+ | ~ # esxcli hpssacli cmd -q "ctrl slot=0 pd all show" | ||
+ | |||
+ | Dynamic Smart Array B120i RAID in Slot 0 (Embedded) | ||
+ | |||
+ | array A | ||
+ | |||
+ | physicaldrive 3I:0:3 (port 3I:box 0:bay 3, SATA, 1500.3 GB, OK) | ||
+ | physicaldrive 4I:0:4 (port 4I:box 0:bay 4, SATA, 1500.3 GB, OK) | ||
+ | |||
+ | | ||
+ | |||
+ | physicaldrive 1I:0:1 (port 1I:box 0:bay 1, SATA, 3 TB, OK) | ||
+ | physicaldrive 2I:0:2 (port 2I:box 0:bay 2, SATA, 3 TB, OK) | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | In this example, there are two unassigned disks (1I: | ||
+ | |||
+ | < | ||
+ | ~ # esxcli hpssacli cmd -q "ctrl slot=0 create type=ld drives=1I: | ||
+ | </ | ||
+ | |||
+ | The command above can be shortened because the two used disks are the only unassigned disks. The keyword **all** can be used instead of a list with the disks. | ||
+ | |||
+ | < | ||
+ | ~ # esxcli hpssacli cmd -q "ctrl slot=0 create type=ld drives=all raid=1" | ||
+ | </ | ||
+ | |||
+ | Now, the result can be checked. | ||
+ | |||
+ | < | ||
+ | ~ # esxcli hpssacli cmd -q "ctrl slot=0 pd all show" | ||
+ | |||
+ | Dynamic Smart Array B120i RAID in Slot 0 (Embedded) | ||
+ | |||
+ | array A | ||
+ | |||
+ | physicaldrive 3I:0:3 (port 3I:box 0:bay 3, SATA, 1500.3 GB, OK) | ||
+ | physicaldrive 4I:0:4 (port 4I:box 0:bay 4, SATA, 1500.3 GB, OK) | ||
+ | |||
+ | array B | ||
+ | |||
+ | physicaldrive 1I:0:1 (port 1I:box 0:bay 1, SATA, 3 TB, OK) | ||
+ | physicaldrive 2I:0:2 (port 2I:box 0:bay 2, SATA, 3 TB, OK) | ||
+ | |||
+ | |||
+ | ~ # esxcli hpssacli cmd -q "ctrl slot=0 ld all show" | ||
+ | |||
+ | Dynamic Smart Array B120i RAID in Slot 0 (Embedded) | ||
+ | |||
+ | array A | ||
+ | |||
+ | logicaldrive 1 (1.4 TB, RAID 1, OK) | ||
+ | |||
+ | array B | ||
+ | |||
+ | logicaldrive 2 (2.7 TB, RAID 1, OK) | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Label new volume ===== | ||
+ | |||
+ | I added two disks to my ESXi which were used in my NAS before. I created a new array on the controller, started a rescan and tried to add new storage. The volume was listed but when I got ahead I got the following error: | ||
+ | |||
+ | < | ||
+ | Call " | ||
+ | </ | ||
+ | |||
+ | It seems that the old partition table of my NAS annoys my ESXi host. | ||
+ | |||
+ | Solution: relabel the device. | ||
+ | |||
+ | The disk name is visible in the GUI. | ||
+ | |||
+ | < | ||
+ | ~ # partedUtil mklabel / | ||
+ | </ | ||
+ |
os/esxi/cli.1437858442.txt.gz · Last modified: 2015-07-25 23:07 by root