csv
# alle VMs in der Farm anzeigen, auf welchem Host diese aktuell laufen
Get-Cluster <ClusterName> | Get-VM | Select-Object -property Name,VMHost | sort VMHost
# alle VMs in der Farm anzeigen, mit PowerState, CPU und RAM
Get-Cluster <ClusterName> |Get-VM | Select-Object -property Name,VMHost | sort VMHost
# VM mit vMotion auf anderen Host
verwenden möchten.
# copy the key to the remote host
scp ~/.ssh/id_rsa.pub user@remotehost:id_rsa.pub
# ssh into the remote host using your password
ssh user@remotehost
# append the public key
cat id_rsa.pub >> ~/.ssh/authoriz
ice/rescan
oder
echo "- - -" > /sys/class/scsi_host/hostX/scan
### oder alle auf einmal:
for i in {0..29}; do echo "- - -" > /sys/class/scsi_host/host$i/scan; done
blockdev --rereadpt /dev/sdc
blockdev --rereadpt /dev/sdd
oder mit script LUNs
ügen \\
192.168.1.0 -> Ziel Netz, oder IP vom Zielhost \\
mask 255.255.255.0 -> Netzwerksegment \\
192.168.1.1 -> Gateway über welchen man den Host oder gesamte Netz erreicht \\
route add -p <IP-von-Ziel-Netz-oder-Ziel-Host> mask <netzwerkmaske> <IP-von-Gateway>
~~UP
ECH - /dev/sdd [sde] [sdb] [sdc]]
host ( RO): scaley
type ( RO): lvmohba... earching for :
1. Target LUNs to resize on scsi host number : 4
Searching for :
1. Target LUNs to resize on scsi host number : 5
</code>
If using **QLogic HBAs** I be
==== Endlosschleife Beispiel ====
<code>
linuxhost:/ while true
> do
> cp file1 file2
> rm file2
> done
linuxhost:/
</code>
oder
while true; do dd if=/dev/zero