VMware Cloud Community
carrotpapaya
Contributor
Contributor
Jump to solution

storage issue in XenCenter 6.1

Created a VM for Xenserver 6.1 in my ESXi hypervisor 5.1.  No problem encountered.

For Xenserver 6.1, I started with 16GB virtual disk to install the Xenserver hypervisor on it.

But in Xencenter 6.1, local storage shows 8GB only. So now I cannot create VMs on Xenserver as there is insufficient space.

Then I have added a second virtual hard disk to VM Xenserver 6.1 with 60GB.  But in Xencenter client there is no way I can see this storage.

Not sure if I have illustrate my problem clearly, looking forward to replies from users here while I working on this issue as well.

Thanks in advance.

hdd1.png

hdd2.png

xencenter.png

0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

carrotpapaya wrote:

didn't see your this reply, before posting my reply above.

seems that i got very close.

but accroding to http://support.citrix.com/article/CTX121313

I shall need to know the uuid of my 2nd virtual hard disk, which is sdb?

which i didn't see in ll /dev/disk/by-uuid

I don't think disks have uuids unless they have file systems on them.  I'm not sure why there's no by-id directory.  Perhaps those instructions are outdated.

carrotpapaya wrote:

also do you have any idea why XenServer auto partition my first virtual hdd into 4GB, 4GB, 8GB

and only 8GB can be seen in XenCenter?

That question should probably be asked in a venue that caters to XenServer.

View solution in original post

0 Kudos
9 Replies
admin
Immortal
Immortal
Jump to solution

Have you created a new storage repository on your Xenserver VM, as described here: http://support.citrix.com/article/CTX121313?

carrotpapaya
Contributor
Contributor
Jump to solution

[root@xenserver /]# cat /proc/partitions
major minor  #blocks  name

   7        0      52408 loop0
   8        0   16777216 sda
   8        1    4193297 sda1
   8        2    4193297 sda2

   8        3    8387567 sda3
   8       16   62914560 sdb
252        0    8376320 dm-0

[root@xenserver /]# ll /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Nov 27  2012 d2b6ddea-4999-493a-ad61-95390597c6a2 -> ../../sda1

[root@xenserver /]# ll /dev/disk/by-path/
total 0
lrwxrwxrwx 1 root root  9 Nov 27  2012 pci-0000:00:07.1-scsi-1:0:0:0 -> ../../sr0
lrwxrwxrwx 1 root root  9 Nov 27  2012 pci-0000:00:10.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 27  2012 pci-0000:00:10.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 27  2012 pci-0000:00:10.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 27  2012 pci-0000:00:10.0-scsi-0:0:0:0-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Nov 27  2012 pci-0000:00:10.0-scsi-0:0:1:0 -> ../../sdb


[root@xenserver /]# ll /dev/disk/by-label/
total 0
lrwxrwxrwx 1 root root 10 Nov 27  2012 root-fzwolgrg -> ../../sda1


ssh to my Xenserver, i could see that both virtual disks actually can be seen.

sda is my virtual hd 1 with 16GB while sdb is y virtual hd 2 with 60GB

but im not sure why sda was partitioned as shown, and only sda3 can be seen in XenCenter

0 Kudos
carrotpapaya
Contributor
Contributor
Jump to solution

didn't see your this reply, before posting my reply above.

seems that i got very close.

but accroding to http://support.citrix.com/article/CTX121313

I shall need to know the uuid of my 2nd virtual hard disk, which is sdb?

which i didn't see in ll /dev/disk/by-uuid

[root@xenserver /]# ll /dev/disk/by-id
ls: /dev/disk/by-id: No such file or directory

also do you have any idea why XenServer auto partition my first virtual hdd into 4GB, 4GB, 8GB

and only 8GB can be seen in XenCenter?

Thanks


0 Kudos
admin
Immortal
Immortal
Jump to solution

carrotpapaya wrote:

didn't see your this reply, before posting my reply above.

seems that i got very close.

but accroding to http://support.citrix.com/article/CTX121313

I shall need to know the uuid of my 2nd virtual hard disk, which is sdb?

which i didn't see in ll /dev/disk/by-uuid

I don't think disks have uuids unless they have file systems on them.  I'm not sure why there's no by-id directory.  Perhaps those instructions are outdated.

carrotpapaya wrote:

also do you have any idea why XenServer auto partition my first virtual hdd into 4GB, 4GB, 8GB

and only 8GB can be seen in XenCenter?

That question should probably be asked in a venue that caters to XenServer.

0 Kudos
carrotpapaya
Contributor
Contributor
Jump to solution

I don't think disks have uuids unless they have file systems on them.

I run fdisk /dev/sdb, created a single partition


Partition number (1-4): 1
First cylinder (1-7832, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-7832, default 7832): 7832

Command (m for help): p

Disk /dev/sdb: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        7832    62910508+  83  Linux

But when i run fdisk -l, i still see

Disk /dev/sdb doesn't contain a valid partition table

and ll /dev/disk/by-uuid still does not see uuid for my sdb

0 Kudos
admin
Immortal
Immortal
Jump to solution

Did you write the new partition table with the 'w' command in fdisk?

carrotpapaya
Contributor
Contributor
Jump to solution

Ops...Thanks I did forget to type "w" before quit

now i do NOT see Disk /dev/sdb doesn't contain a valid partition table when I run fdisk -l

but seems that i still do not get UUID for sdb. Probably I do not need UUID to create new SR?

Thanks for your reply.  Appreciate that.

[root@xenserver /]# ll -R /dev/disk
/dev/disk:
total 0
drwxr-xr-x 2 root root  60 Nov 27  2012 by-label
drwxr-xr-x 2 root root 180 Nov 26 23:26 by-path
drwxr-xr-x 2 root root  60 Nov 27  2012 by-uuid

/dev/disk/by-label:
total 0
lrwxrwxrwx 1 root root 10 Nov 27  2012 root-fzwolgrg -> ../../sda1

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 Nov 27  2012 pci-0000:00:07.1-scsi-1:0:0:0 -> ../../sr0
lrwxrwxrwx 1 root root  9 Nov 27  2012 pci-0000:00:10.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 27  2012 pci-0000:00:10.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 27  2012 pci-0000:00:10.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 27  2012 pci-0000:00:10.0-scsi-0:0:0:0-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Nov 27  2012 pci-0000:00:10.0-scsi-0:0:1:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov 26 23:26 pci-0000:00:10.0-scsi-0:0:1:0-part1 -> ../../sdb1

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 Nov 27  2012 d2b6ddea-4999-493a-ad61-95390597c6a2 -> ../../sda1

0 Kudos
admin
Immortal
Immortal
Jump to solution

You probably don't have a UUID because you still don't have a file system.  All you have is a partition.  Try this:


pvcreate /dev/sdb1

0 Kudos
carrotpapaya
Contributor
Contributor
Jump to solution

[root@xenserver ~]# xe sr-create content-type=user type=ext device-config:device=/dev/sdb shared=false name-label="Local storage 2"
5bc7be43-55cf-4127-b014-bf59c7650e1f


[root@xenserver ~]# ll /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Nov 27 22:06 d2b6ddea-4999-493a-ad61-95390597c6a2 -> ../../sda1

though i cannot see the uuid here, but now i can see the "Local storage 2" in XenCenter Smiley Happy

Thanks for all your replies.  Really appreciate that.

0 Kudos