First check the new added disk with command
255 heads, 63 sectors/track, 30401 cylinders
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/sda3 999 30401 236179597+ 83 Linux
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
So you see wee have one raw disk /dev/sdb.
Now you have to check the ID of the host:
name-label ( RW): xen_test
name-description ( RO): Default install of XenServer
You have 3 options to create new disk in Citrix Xen
1. Create normal LVHD storage repository:
Remove Disk from XEN server
Find the SR uuid of the disk:
fdisk -lDisk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
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/sda3 999 30401 236179597+ 83 Linux
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
So you see wee have one raw disk /dev/sdb.
Now you have to check the ID of the host:
xe host-listuuid ( RO) : ba3d140c-3de5-499b-b831-7c40d82958a8
name-label ( RW): xen_test
name-description ( RO): Default install of XenServer
You have 3 options to create new disk in Citrix Xen
1. Create normal LVHD storage repository:
xe sr-create host-uuid=ba3d140c-3de5-499b-b831-7c40d82958a82.Create a LVHD storage repository with thin provisioning support.
content-type=user type=lvm device-config:device=/dev/sdb
shared=false name-label="Local storage 2"
xe sr-create host-uuid=ba3d140c-3de5-499b-b831-7c40d82958a8
content-type=user type=lvm device-config:device=/dev/sdb
shared=false name-label="Local storage 2" smconfig:allocation=thin
3.Create a EXT storage repository with thin provisioning support and direct access to
the vhd files.
xe sr-create host-uuid=ba3d140c-3de5-499b-b831-7c40d82958a8
content-type=user type=ext device-config:device=/dev/sdb
shared=false name-label="Local storage 2"
Remove Disk from XEN server
Find the SR uuid of the disk:
xe sr-list name-label=<NAME OF DISK>Find the PBD of the disk(search by UUID)
xe pbd-list sr-uuid=<SR UUID>Unplug the disk by PBD
xe pbd-unplug uuid=<UUID of PBD>Forget the disk:
sr-forget uuid=<UUID of SR>
Нема коментара:
Постави коментар
Напомена: Само члан овог блога може да постави коментар.