MATHANGSPK BLOG

Chia sẽ các thủ thuật về máy tính, tin học, các kiến thức điện tử cơ bản

Thứ Năm, 17 tháng 8, 2017

Add Hard disk In xenserver - Add Local storage

How To Add Additional Hard Disk In Xenserver

To add additional hard disk in xenserver

When a new internal hard drive is installed on a XenServer to work as a new local storage repository, it is not immediately available to the XenServer Console. This article describes how to add an additional hard drive in XenServer.

To Install a hard drive on a XenServer

add-new-hard-drive-as-local-storage-repository-in-XenServer-console-login
add-new-hard-drive-as-local-storage-repository-in-XenServer-console-console-xencenter-server
add-new-hard-drive-as-local-storage-repository-in-XenServer-console-Storage-section

add-new-hard-drive-as-local-storage-repository-in-XenServer-console-Open-Xencenter
add-new-hard-drive-as-local-storage-repository-in-XenServer-console-Switch-On-Xenserver-status-display
















Run the following command to display the installed disks.
[root@xenSR-linuxhelp ~]# fdisk -l

Disk /dev/sda: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

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

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 42.9 GB, 42949672960 bytes
256 heads, 63 sectors/track, 5201 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        5202    41943039+  ee  EFI GPT
/dev/sdb1” is my default hard disk. Here my Xenserver take new hard disk as “/dev/sda



To check host uuid

[root@xenSR-linuxhelp ~]# xe host-list
uuid ( RO)                : 1b2265f8-06fb-4980-8415-371e627efefb
          name-label ( RW): xenSR-linuxhelp
    name-description ( RW): Default install of XenServer
Run the following command from the command line interface.
[root@xenSR-linuxhelp ~]# xe sr-create content-type=user device-config:device=/dev/sda host-uuid=1b2265f8-06fb-4980-8415-371e627efefb name-label="local-storage2" shared=false type=ext
4226d65a-e2cf-f7aa-9f30-d828df5b6879
Now, the installed hard drive is visible in the XenServer Console.
add-new-hard-drive-as-local-storage-repository-in-XenServer-console-hard-drive-visible

add-new-hard-drive-as-local-storage-repository-in-XenServer-console-local-storage2

Click “storage” in menu option and check the new hardisk.
Here “local-storage2” is successfully added.

Không có nhận xét nào:

Đăng nhận xét

Adbox