Check the hard drive information first.
[Root@xenserver-ds-monitor01 ~]# Smartctl--ALL/DEV/SDA
SMARTCTL 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0+10] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
= = = START of Information section = = =
Device Model:plextor px-512m6s+
Serial number:p02620100868
LU WWN Device id:5 002303 1009083c8
Add. Product id:sc902040
Firmware version:1.00
User capacity:512,110,190,592 bytes [GB]
Sector size:512 bytes Logical/physical
Rotation Rate:solid State Device
Device is:not in Smartctl database [for details use:-P showall]
ATA Version Is:ata8-acs, ata/atapi-7 t13/1532d revision 4a
SATA Version Is:sata 3.1, 6.0 GB/s (current:6.0 GB/s)
local time Is:thu Aug 23:59:09 2016 CST
Smart Support Is:available-device has smart capability.
SMART Support is:enabled
= = START of READ SMART DATA section = =
SMART overall-health Self-Assessment Test result:passed
General SMART Values:
Offline Data Collection Status: (0x00) Offline data collection activity
was never started.
Auto Offline Data collection:disabled.
Self-Test Execution Status: (0) The previous self-test routine completed
Without error or no self-test has ever
been run.
Total time to complete Offline
Data collection: (seconds).
Offline data collection
Capabilities: (0x15) SMART execute Offline immediate.
No Auto Offline data collection support.
Abort Offline Collection Upon new
Command.
No Offline surface Scan supported.
Self-Test supported.
No Conveyance self-test supported.
No Selective self-test supported.
Smart capabilities: (0x0003) saves smart data before entering
power-saving mode.
Supports SMART Auto Save timer.
Error logging capability: (0X01) error logging supported.
General purpose Logging supported.
Short Self-Test Routine
Recommended polling time: (1) minutes.
Extended self-test Routine
Recommended polling time: (Ten) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Con
[Root@xenserver-ds-monitor01 ~]# smartctl-a/DEV/SDA
SMARTCTL 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0+10] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
= = START of READ SMART DATA section = =
SMART Attributes Data Structure revision number:1
Vendor specific SMART Attributes with thresholds:
id# attribute_name FLAG VALUE worst thresh TYPE UPDATED when_failed
1 raw_read_error_rate 0x002f Pre-fail Always-0
5 reallocated_sector_ct 0x0003 Pre-fail Always-0
9 power_on_hours 0x0002 Old_age Always-0
Power_cycle_count 0x0003 Pre-fail Always-12
170 Unknown_attribute 0x0032 Old_age Always-0
171 Unknown_attribute 0x0003 Pre-fail Always-0
172 Unknown_attribute 0x0003 Pre-fail Always-0
173 Unknown_attribute 0x0003 Pre-fail Always-0
174 Unknown_attribute 0x0003 Pre-fail Always-12
175 program_fail_count_chip 0x0003 Pre-fail Always-0
176 erase_fail_count_chip 0x0003 Pre-fail Always-0
177 Wear_leveling_count 0x0003 Pre-fail Always-19
178 used_rsvd_blk_cnt_chip 0x0003 Pre-fail Always-0
179 Used_rsvd_blk_cnt_tot 0x0003 Pre-fail Always-0
180 Unused_rsvd_blk_cnt_tot 0x0033 Pre-fail Always-1184
181 Program_fail_cnt_total 0x0003 Pre-fail Always-0
Erase_fail_count_total 0x0003 Pre-fail Always-0
183 Runtime_bad_block 0x0032 Old_age Always-0
184 End-to-end_error 0x0033 Pre-fail Always-0
187 Reported_uncorrect 0x0003 Pre-fail Always-0
188 Command_timeout 0x0032 Old_age Always-0
0x0003 Power-off_retract_count Pre-fail Always-12
195 hardware_ecc_recovered 0x0003 Pre-fail Always-0
196 Reallocated_event_count 0x0003 Pre-fail Always-0
198 offline_uncorrectable 0x0003 Pre-fail Always-0
199 Udma_crc_error_count 0x0003 Pre-fail Always-0
232 available_reservd_space 0x0003 010 pre-fail Always-0
233 Media_wearout_indicator 0x0003 Pre-fail Always-6
241 Total_lbas_written 0x0003 Pre-fail Always-102
242 Total_lbas_read 0x0003 Pre-fail Always-34
[Root@xenserver-ds-monitor01 ~]#
And take a look at the zoning information.
[Root@xenserver-ds-monitor01 ~]# sgdisk-p/DEV/SDA
disk/dev/sda:1000215216 sectors, 476.9 GiB
Logical Sector size:512 bytes
Disk identifier (GUID): cc968b4b-6998-4270-9b25-917806f75f8e
Partition table holds up to 128 entries
Usable sector is 1000215182 usable sector
Partitions is aligned on 2048-sector boundaries
Total free spaces is 2014 sectors (1007.0 KiB)
Number Start (sector) end (sector) Size Code Name
1 46139392 83888127 18.0 GiB 0700
2 8390656 46139391 18.0 GiB 0700
3 87033856 1000215182 435.4 GiB 8E00
4 83888128 84936703 512.0 MiB EF02
5 2048 8390655 4.0 GiB 0700
6 84936704 87033855 1024.0 MiB 8200
[Root@xenserver-ds-monitor01 ~]#
Through the above query can be learned that/dev/sda3 is a data disk, because the partition to the largest space, then come on/dev/sda3 to take effect to do local storage
[Root@xenserver-ds-monitor01 ~]# Xe Host-list
UUID (RO): De645a59-46ac-47db-83fa-3e91fb50b8b6
Name-label (RW): Xenserver-ds-monitor01
Name-description (RW): Default Install
[Root@xenserver-ds-monitor01 ~]# Xe sr-create content-type=user Device-config:device=/dev/sda3 host-uuid= De645a59-46ac-47db-83fa-3e91fb50b8b6 name-label= "Local storage" Shared=false TYPE=LVM
3f1ca7d9-9783-dffd-433f-d1d5906e7dcb
[Root@xenserver-ds-monitor01 ~]# Xe sr-list name-label= "Local Storage"
UUID (RO): 3F1CA7D9-9783-DFFD-433F-D1D5906E7DCB
Name-label (RW): Local storage
Name-description (RW):
Host (RO): Xenserver-ds-monitor01
Type (RO): LVM
Content-type (RO): User
[Root@xenserver-ds-monitor01 ~]#