Welcome to my own XenServer cheat sheet where I will make notes about important commands used in basic and more advanced XenServer configuration.
Display information about disk
Display disk information
#ll /dev/disk/by-id
Display only information about physical disks
#fdisk -l |grep -n ‘Disk /dev/’ |grep -v ‘/dev/mapper’
Display information about disk controller
Detailed information about disk controller
# modinfo megaraid_sas
Driver version
# modinfo megaraid_sas |grep -i version
Display information about Fibre Channel HBA and target devices
- Basic information about FC HBA
# lspci |grep -i Fibre
- Detailed information about FC HBA, Port Status, Driver
All vendors
# systool -c fc_host -v
Emulex
# hbacmd listhbas
- List FC target devices connected to the FC HBA
# systool -c fc_remote_ports -v –d
- Display driver information
Emluex
# more /var/log/dmesg |grep -i emulex
or
QLogic
# lscpi |grep QLogic
or
# systool -m qla2xxx –v
- Display WWN details (instance name)
Emulex
# hbacmd listhbas |grep -i ‘port WWN’
QLogic
# scli –t
- Display HBA and port details (use WWN port address from previous command)
Emulex
# hbacmd hbaattrib WWNP
and
# hbacmd portattrib WWNP
- Display available LUNs
Emulex
# hbacmd TargetMapping WWPN
Qlogic
# scli –l Instance-Name
Display information about SCSI devices
- Detailed information about SCSI devices
# systool -c scsi_host –v
- List SCSI disks connected to the system
# systool -c scsi_disk –v
XenServer pool operations
- Display pool master
# xe host-param-get param-name=name-label uuid=`xe pool-list |grep master | awk ‘{print $4}’` - Display failed pool members
# xe host-list params=uuid,name-label,host-metrics-live
Any servers listed as host-metrics-live = false have failed - Emergency pool master transfer
On a new pool master execute the following command:
# xe pool-emergency-transition-to-master
Once the command has completed, recover connections to the other member servers using the following command:
# xe pool-recover-slaves
Verify that pool management has been restored by issuing a test command at the CLI
# xe host-list
Leave A Comment