Friday, January 30, 2015

XenServer MultiPath Info

Useful commands discovered and used along the way. 

Check iSCSI sessions

iscsiadm -m session

Ping storage from a particular NIC IP address

ping -I xenbr8 192.168.190.10

Note: You may need to use this command to figure out where to ping from
brctl show
Show info on virtual switches

Rescan iscsi sessions

iscsiadm -m session -r 1 --rescan

Show all records in discovery database and show the targets that
were discovered from each record:
./iscsiadm -m discovery -P 1

Display session statistics:
./iscsiadm -m session -r 1 --stats

Display running sessions:
./iscsiadm -m session -P 1

Restart iscsi service
service open-iscsi restart

Check iscsi service status
service open-iscsi status

To get information about the running sessions: including the session and
device state, session ids (sid) for session mode, and some of the
negotiated parameters, run:
iscsiadm -m session -P 2

To get a Host view of the session there is the host mode.
iscsiadm -m host

Log into iSCSI targets
iscsiadm -m node --login

To log into an individual iSCSI target use:
iscsiadm -m node -l -T iqn.2001-05.com.equallogic:83bcb3401-16e0002fd0a46f3d-rhel5-test -p 172.23.10.240:3260



TFTP - cheat sheet


Here is a quick reference on how to backup/restore switch configurations...

A free TFTP server is available for download from Solarwinds website

To copy a switch configuration to a TFTP server run the following command:

copy running-configuration tftp://TFTP-IP/filename.txt

To copy a switch configuration from a TFTP server to switch run the following command:

copy TFTP://TFTP-IP/filename.txt startup-configuration

Then type:
reload