Xenserver6.0.2物理HDD追加

更新日 2012-07-25 (水) 13:59:12

HDDがGTPになり容量も2TB以上になった。そのHDDを追加する

/dev/sdbに追加した。fdiskでパーティションの操作をしようとすると、GPTや2.2TB以上にWARNINGが出るのでgdiskで処理

# /sbin/fdisk /dev/sdb

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


The number of cylinders for this disk is set to 363376.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

WARNING: The size of this disk is 3.0 TB (3000592982016 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Command (m for help): q

# /sbin/gdisk /dev/sdb
GPT fdisk (gdisk) version 0.6.10

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sdb: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): D4494E72-217F-4D97-BAF4-96D6D79CFCCC
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 6042 sectors (3.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         8388641   4.0 GiB     0700
   2         8390656        16777249   4.0 GiB     0700
   3        16779264      5860533134   2.7 TiB     8E00

Command (? for help): m
b       back up GPT data to a file
c       change a partition's name
d       delete a partition
i       show detailed information on a partition
l       list known partition types
n       add a new partition
o       create a new empty GUID partition table (GPT)
p       print the partition table
q       quit without saving changes
r       recovery and transformation options (experts only)
s       sort partitions
t       change a partition's type code
v       verify disk
w       write table to disk and exit
x       extra functionality (experts only)
?       print this menu

Command (? for help): d
Partition number (1-3): 3


Command (? for help): n
Partition number (1-128, default 1):
First sector (34-5860533134, default = 34) or {+-}size{KMGT}:
Information: Moved requested sector from 34 to 2048 in
order to align on 2048-sector boundaries.
Use 'l' on the experts' menu to adjust alignment
Last sector (2048-5860533134, default = 5860533134) or {+-}size{KMGT}:
Current type is 'Linux/Windows data'
Hex code (L to show codes, 0 to enter raw code, Enter = 0700):
Changed type of partition to 'Linux/Windows data'

Command (? for help): p
Disk /dev/sdb: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): D4494E72-217F-4D97-BAF4-96D6D79CFCCC
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048      5860533134   2.7 TiB     0700  Linux/Windows data

Command (? for help): wq

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed, possibly destroying your data? (Y/N): Y
OK; writing new GUID partition table (GPT).
The operation has completed successfully.

物理ボリュームを作成

# /usr/sbin/pvcreate /dev/sdb1
  Physical volume "/dev/sdb1" successfully created

HDDボリューム名の確認

# ls /dev/disk/by-id
scsi-SATA_ASI_ARAID_3500_ARAID3500WM5080A101N   <==追加HDD
scsi-SATA_ASI_ARAID_3500_ARAID3500WM5080A101N-part1
scsi-SATA_ST2000DM001-9YN_W2402B82
scsi-SATA_ST2000DM001-9YN_W2402B82-part1
scsi-SATA_ST2000DM001-9YN_W2402B82-part2
scsi-SATA_ST2000DM001-9YN_W2402B82-part3

HDDの設定

# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/\
scsi-SATA_ASI_ARAID_3500_ARAID3500WM5080A101N name-label="LOCAL SR sdb"
e0dddcf9-afbf-1507-b6df-940f0bd2a835

以降はXenCenterから見えるので同様にセットする


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2012-07-25 (水) 13:59:12 (2333d)