XEN format and add new haddisk


fdisk /dev/sdx

Command (m for help): [n]
Command action
e   extended
p   primary partition (1-4)
Partition number (1-4): [1]
First cylinder (1-4865, default 1): [1]
Last cylinder or +size or +sizeM or +sizeK (1-4865, default 4865): [4865]

Command (m for help): [t]
Partition number (1-4): [1]
Hex code (type L to list codes): [83]

Command (m for help):[w]
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

mkfs.ext3 /dev/sdx

xe host-list

uuid ( RO) : ba3d140c-3de5-499b-b831-7c40d82958a9
name-label ( RW): xs-tarenz01
name-description ( RO): Default install of XenServer


xe sr-create host-uuid=ba3d140c-3de5-499b-b831-7c40d82958a9 content-type=user type=lvm device-config:device=/dev/sdx shared=false name-label=”Local storage”