Does running "fdisk -l" show you a device with 3 partitions
Disk /dev/sda: 160.0 GB, 1600000000
255 heads, 63 sectors/tr
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 499 4008186 83 Linux
/dev/sda2 500 998 4008217+ 83 Linux
/dev/sd
Then you should be able to create a Local Storage via the CLI
(XenCenter
is for shared storage). You need to know the SCSI device
associated with this 3rd partition. Listing
/dev/disk/ by-id via ls command will help.
Example:
ro ot@xenserver
/ # ls -l /dev/disk/ by-id/
total 0
lrwxrwxrwx 1 root root 9 Apr 5 12:51
scsi-SATA_ ST3160815AS_ 9RX53PHQ ->
../../sda
lrwxrwxrwx 1 root root 10 Apr 5 12:51
scsi-SATA_ ST3160815AS_ 9RX53PHQ-par t1 ->
../../sda1
lrwxrwxrwx 1 root root 10 Apr 5 12:51
scsi-SATA_ ST3160815AS_ 9RX53PHQ-par t2 ->
../../sda2
lrwxrwx rwx 1 root root 10 Apr 5 12:51
scsi-SATA_ ST3160815AS_ 9RX53PHQ-par t3 ->
../../sda3
total 0
lrwxrwxrwx
lrwxrwxrwx
lrwxrwxrwx
lrwxrwx
Now you can use the sr-create command. You need to first get the host universal
unique Id via xe host-list
xe sr-create type=ext content-ty
pe=user host-uuid= <UUID of the XenServer
host> shared=fal se name-label ="Local Storage"
device-con fig:device=/ dev/disk/by- id/<SCSI
ID>
In my case, SCSI ID would be: scsi-SA TA_ST3160815 AS_9RX53PHQ- part3 and
the command to create would be:
xe sr-create type=ext content-ty pe=user
host-uuid= c9383181-27b e-43dc-9a39- bf9b801582e8
shared=fals e name-label ="Local Storage"
device-con fig:device=/ dev/disk/by- id/scsi-SATA _ST3160815AS _9RX53PHQ-pa rt3
xe sr-create type=ext content-ty
In my case, SCSI ID would be: scsi-SA
xe sr-create type=ext content-ty
No comments:
Post a Comment