- Acesse o VMware Host Client diretamente no host ESXi onde o vCenter está alocado.
- Localize a máquina virtual do vCenter na lista e clique com o botão direito nela.
- Vá em Power e selecione Reboot Guest OS.
Ou por SSH e comando reboot
Ou por SSH e comando reboot
Conectar, via SSH (usuário Administrator@vSphere.Local), em uma das OVCs
sudo su
. /var/tmp/build/bin/appsetup
dsv-balance-show --showNodeIP
You will need the dir-cli tool, which is located in /usr/lib/vmware-vmafd/bin/.
cd /usr/lib/vmware-vmafd/bin/
Check that the local user exists:
./dir-cli user find-by-name --account backup_user
You can change the password for this user:
./dir-cli password reset --account backup_user --password OldBackupP@$$ --new NewBackupP@$$
Or you can set password to never expire:
./dir-cli user modify --account backup_user --password-never-expires
You can change the password expiration settings for root or set it to never expire (if its value is 0).
Also you can check the root password expiration setting from your vCSA console:
chage -l root
source: https://woshub.com/vmware-password-expiration-settings/
List SCSI hosts
ls /sys/class/scsi_host
Update info
echo "- - -" > /sys/class/scsi_host/host#/scan
Update all
echo "- - -" | tee /sys/class/scsi_host/host*/scan
Now, you can create partition using fdisk and format it using mkfs.ext3 command:
cfdisk /dev/sdc
### [if you want ext4 fs] ###
mkfs.ext4 /dev/sdc3
Create a Mount Point And Update /etc/fstab
First, type the following mkdir command to make a dir/folder to mount the disk:
mkdir /disk3
Open the /etc/fstab file, enter:
vi /etc/fstab
/dev/sdc3 /disk3 ext4 defaults
How Do I Delete a Single Device Called /dev/sdc?
In addition to re-scanning the entire bus, a specific device can be added or existing device deleted using the following command:
echo 1 > /sys/block/devName/device/delete
echo 1 > /sys/block/sdc/device/delete
source: https://www.cyberciti.biz/tips/vmware-add-a-new-hard-disk-without-rebooting-guest.html
Scan all existing hosts with a one-liner:
for host in /sys/class/scsi_host/*; do echo "- - -" | sudo tee $host/scan; ls /dev/sd* ; done
fdisk /dev/sdb
m to menu
n to new partition
w to write
mkfs.ext4 /dev/sdb1 to format
Resize disc:
To make the kernel aware, one can issue the following command as root:
echo 1 > /sys/class/block/sdb/device/rescanparted /dev/sdbprintresizepart 1 quit partedsudo partprobe Resize File system umount /dev/block_device
e2fsck -f /dev/block_device
resize2fs /dev/block_device
Usando o Prompt de Comando (dnscmd)Abra o Prompt de Comando como Administrador e utilize a seguinte estrutura para adicionar um registro do...