Jump to content
Welcome to our new Citrix community!
  • 0

Know which Drive corresponds to which Storage Repository (SR)

Simon Joseph Aquilina


Hello I have a local setup with five Drives. Two drives I use as Storage Repository (SR). When I login to the server and enter the command fdsik -l I get the list of four drives and the two SRs, i.e. -


Disk /dev/sda: 1000.2 GB...

Disk /dev/sdd: 1000.2 GB...

Disk /dev/sdc: 1000.2 GB...

Disk /dev/sdb: 1000.2 GB...

Disk /dev/sde: 80.0 GB...

Disk /dev/mapper/VG_XenStorage--bbb...

Disk /dev/mapper/VG_XenStorage--776...


I know /dev/sde is where Xen Server is installed.


My question is how can I know which SR corresponds to which drive?

I want to format the other two drives so I can use them to backup the VMs I have on the SRs.

Link to comment

2 answers to this question

Recommended Posts

  • 1

If these are LVM storage devices, run "lvdisplay" and there should be a match between the UUID of the SR partly contained within the LVM volume.

Use "ls -l /dev/disk-by-id/" to get a further mapping of UUIDs to logical Linux device names. "ls -l /dev/disk/by-label/" will give you information on the labels that correspond to specific Linux logical devices.



  • Like 2
Link to comment
  • 1

As to /dev/sdX typically your XenServer/Citrix Hypervisor OS is installed in /dev/sda in which case "fdisk -l" should show the partition mapping as something like this:


Disk /dev/sda: 146.2 GB, 146163105792 bytes, 285474816 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt

#         Start          End    Size  Type            Name
 1     46139392     83888127     18G  Microsoft basic
 2      8390656     46139391     18G  Microsoft basic
 3     87033856    285474782   94.6G  Linux LVM       
 4     83888128     84936703    512M  BIOS boot parti
 5         2048      8390655      4G  Microsoft basic
 6     84936704     87033855      1G  Linux swap


and /dev/sda3 in this case is used for the local SR.


If you have multipathing enabled, you will see multiple logical devices mappings point to the same device.



  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...