私の手許の vSphere Client はなぜか ESXi にてデータストアを作成しようとエラーになったりするのがある別のマシン上の vSphere Client からだとうまくいったりするので恐らく Client のインストールがうまくいってないんだろうと思う。再インストールしても再現しちゃうので ESXi にログインして直接作業。
# fdisk /dev/disks/t10.ATA_____ST3160815AS_________________________________________6RA9XXXX
***
*** The fdisk command is deprecated: fdisk does not handle GPT partitions. Please use partedUtil
***
The number of cylinders for this disk is set to 19457.
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)
Command (m for help): p
Disk /dev/disks/t10.ATA_____ST3160815AS_________________________________________6RA9XXXX: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/disks/t10.ATA_____ST3160815AS_________________________________________6RA9XXXXp1
1 3891 31249408 83 Linux
/dev/disks/t10.ATA_____ST3160815AS_________________________________________6RA9XXXXp2
3891 4377 3906560 82 Linux swap
/dev/disks/t10.ATA_____ST3160815AS_________________________________________6RA9XXXXp3 4377 19457 121131360+ 8e Linux LVM
Command (m for help): d
Partition number (1-4): 1
Command (m for help): d
Partition number (1-4): 2
Command (m for help): d
Selected partition 3
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): Value is out of range
Partition number (1-4): 1
First cylinder (1-19457, default 1): Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-19457, default 19457): Using default value 19457
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): fb
Changed system type of partition 1 to fb (VMFS)
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
~
# vmkfstools --createfs vmfs5 --blocksize 1m
/dev/disks/t10.ATA_____ST3160815AS_________________________________________6RA9XXXX:1
--setfsname 160gb
create fs
deviceName:'/dev/disks/t10.ATA_____ST3160815AS_________________________________________6RA9XXXX:1',
fsShortName:'vmfs5', fsName:'160gb'
deviceFullPath:/dev/disks/t10.ATA_____ST3160815AS_________________________________________6RA9XXXX:1
deviceFile:t10.ATA_____ST3160815AS_________________________________________6RA9XXXX:1
VMFS5
file system creation is deprecated on a BIOS/MBR partition on device
't10.ATA_____ST3160815AS_________________________________________6RA9XXXX:1'
Checking if remote hosts are using this device as a valid file system. This may take a few seconds...
Creating
vmfs5 file system on
"t10.ATA_____ST3160815AS_________________________________________6RA9XXXX:1"
with blockSize 1048576 and volume label "160gb".
Successfully created new volume: 52abd28e-24203c58-ed35-009c02995e4c
~ # a
できた。MBRなんか使うなヨって言われてるけどとりあえず一時的な作業用なのでこれでいいや。 vSphere Client 側でデータストアを再検索して完了。
>別のマシン上の vSphere Client からだとうまくいったりするので恐らく Client のインストールがうまくいってないんだろうと思う
返信削除出たての頃の日本語環境のみのバグですねw。
--locale en_USで起動して英語UIだと問題ないはずです…。
なんと!!!そうだったんですね。 --locale en_US 知りませんでした。ショートカットに設定しておきます。
返信削除