0% found this document useful (0 votes)
44 views3 pages

Xenserver Multipath Info: BRCTL Show

This document provides useful commands for working with iSCSI storage in XenServer, including checking iSCSI sessions and targets, pinging storage from specific NICs, rescanning sessions, checking service status, logging into targets, and checking storage performance. It also provides instructions for setting up XenServer to automatically start virtual machines on boot by setting the auto_poweron parameter to true for pools and individual VMs.

Uploaded by

OumarToure
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views3 pages

Xenserver Multipath Info: BRCTL Show

This document provides useful commands for working with iSCSI storage in XenServer, including checking iSCSI sessions and targets, pinging storage from specific NICs, rescanning sessions, checking service status, logging into targets, and checking storage performance. It also provides instructions for setting up XenServer to automatically start virtual machines on boot by setting the auto_poweron parameter to true for pools and individual VMs.

Uploaded by

OumarToure
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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

Check the performance of your storage repository


Ref: http://support.citrix.com/article/CTX121634

[root@FsXENSVR109 ~]# ll /dev/disk/by-id/ | grep <SCSI ID>   NOTE: SCSI ID can be


found on the 'General' tab of your SR in XenCenter

The output of this command will be something like the following:

lrwxrwxrwx 1 root root  9 Feb 12 19:16 scsi-36000d3100087d3000000000000000005


-> ../../sdb

Once you have this information you can execute the following command

[root@FsXENSVR109 ~]# hdparm -t /dev/sdb

/dev/sdb:
 Timing buffered disk reads: 248 MB in  3.06 seconds =  81.08 MB/sec
[root@FsXENSVR109 ~]# hdparm -t /dev/sdb

How to Setup XenServer 6.x to Auto-Start Virtual Machines


Setting the XenServer to allow Auto-Start

Gather the UUID’s of the pools you wish to auto-start.

To get the list of the pool’s on your XenServer type “xe pool-list”

Copy the UUID of the pool. If you have just one server, it will still have a pool
UUID as noted in the following screenshot:

Then type the following command to set the pool or server to allow auto-start:
xe pool-param-set uuid=UUID other-config:auto_poweron=true

Note: Replacing UUID with the UUID of the XenServer or pool.

Setting the Virtual Machines to Auto-Start

Gather the UUID’s of the Virtual Machine you want to auto-start by typing: 
xe vm-list

Note: This generates a list of Virtual Machines in your pool or server and their
associated UUID’s.
Copy the UUID of the Virtual Machines you want to auto-start, and type the
following command for each Virtual Machine to auto-start: 
            
xe vm-param-set uuid=UUID other-config:auto_poweron=true

Note: Replace UUID with the UUID of the Virtual Machine to auto-start.

You might also like