Pointing ESX to Syslog server

It has been possible for a while to send system logs to a syslog server over the network.  In your Linux server edit syslog server to enable listening on port 514 for both UDP and TCP connections.  Restart rsyslog and make the following changes to your ESX Cluster using PowerCLI:

Connect-VIServer 192.168.0.10 
Get-VMHost | Set-VMHostSysLogServer -SysLogServer 'udp://192.168.0.130:514' 
Get-VMHost | Get-VMHostFirewallException -Name syslog | Set-VMHostFirewallException -Enabled:$True 
$esxcli = Get-ESXCLI -VMHost 192.168.0.17 
$esxcli.system.syslog.reload()
Advertisements

Deleting old ZFS signatures from a disk

If you wish to reuse a disk for ceph it has to be clear of previous filesystem signatures such as ZFS.  To clear all the signatures use wipefs:

sudo wipefs --all --force /dev/vdb

VMware Raw Device Map via Command Line

Logon to your ESX host and run the following command to map a physical disk to a rdm file in the folder where you VM is located:

vmkfstools -r /vmfs/devices/disks/naa.XXXXXXXXXXXXXXXXXXXXXXXXX   rdm1.vmdk

Edit your VMX file to point to the newly created RDM disk:

scsi0:2.present = "TRUE"
scsi0:2.deviceType = "scsi-hardDisk"
scsi0:2.fileName = "rdm1.vmdk"
scsi0:2.mode = "independent-persistent"
scsi0:2.redo = ""
Advertisements