- 积分
- 4
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 听众
- 收听
网络小学徒

|
本帖最后由 pdscn 于 1-27-2013 11:53 编辑
感谢关注本贴
找了一台服务器测试ESXI 5.1
6块硬盘,其中2块RAID1(磁盘1,68G),其余4块RAID10(磁盘2,136G)
系统装在分区1上。
用vc连接以后在数据存储中只显示出磁盘1,如下图:
在设备中显示磁盘2“已挂载”,但“详细信息”中的分区格式是“未知”。
尝试添加存储器,在选择磁盘处有磁盘2的信息,但在“检查磁盘布局”的时候出错,提示【调用对象 “ha-datastoresystem”的“HostDatastoreSystem.QueryVmfsDatastoreCreateOptions” 失败。】。
ps:在磁盘2上点“分离”也是这个错误。
------------------------------------------
然后开启SHSH服务,连接检查磁盘
~ # fdisk -l
***
***
The fdisk command is deprecated
: fdisk does not handle GPT partitions. Please use partedUtil
***
Found valid GPT with protective MBR; using GPT
Disk /dev/disks/mpx.vmhba1:C0:T1
[color=]:L
0: 286611840 sectors, 273M
Logical sector size: 512
Disk identifier (GUID): 9afdecf7-1504-4e79-a957-4c9947f18878
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 429915431
Number Start (sector) End (sector) Size Code Name
1 64 8191 8128 0700
2 1843200 10229759 8190K 0700
3 10229760 429915431 400M 0700
5 8224 520191 499K 0700
6 520224 1032191 499K 0700
7 1032224 1257471 219K 0700
8 1257504 1843199 571K 0700
Found valid GPT with protective MBR; using GPT
Disk /dev/disks/mpx.vmhba1:C0:T0
[color=]:L
0: 143567040 sectors, 136M
Logical sector size: 512
Disk identifier (GUID): 38f86d47-4040-43dd-82cf-08e2a7a0d57d
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 143567006
Number Start (sector) End (sector) Size Code Name
1 64 8191 8128 0700
2 1843200 10229759 8190K 0700
3 10229760 143567006 127M 0700
5 8224 520191 499K 0700
6 520224 1032191 499K 0700
7 1032224 1257471 219K 0700
8 1257504 1843199 571K 0700
提示fdisk不处理GPT分区,请使用partedUtil。不过没使用过这个。。。
在GG搜了一篇和我同样错误的文章【参考文章】,但我这里总是提示错误。
~ # ls /dev/disks
mpx.vmhba1:C0:T0
[color=]:L
0 vml.0000000000766d686261313a303a30
mpx.vmhba1:C0:T0
[color=]:L
0:1 vml.0000000000766d686261313a303a30:1
mpx.vmhba1:C0:T0
[color=]:L
0:2 vml.0000000000766d686261313a303a30:2
mpx.vmhba1:C0:T0
[color=]:L
0:3 vml.0000000000766d686261313a303a30:3
mpx.vmhba1:C0:T0
[color=]:L
0:5 vml.0000000000766d686261313a303a30:5
mpx.vmhba1:C0:T0
[color=]:L
0:6 vml.0000000000766d686261313a303a30:6
mpx.vmhba1:C0:T0
[color=]:L
0:7 vml.0000000000766d686261313a303a30:7
mpx.vmhba1:C0:T0
[color=]:L
0:8 vml.0000000000766d686261313a303a30:8
mpx.vmhba1:C0:T1
[color=]:L
0 vml.0000000000766d686261313a313a30
mpx.vmhba1:C0:T1
[color=]:L
0:1 vml.0000000000766d686261313a313a30:1
mpx.vmhba1:C0:T1
[color=]:L
0:2 vml.0000000000766d686261313a313a30:2
mpx.vmhba1:C0:T1
[color=]:L
0:3 vml.0000000000766d686261313a313a30:3
mpx.vmhba1:C0:T1
[color=]:L
0:5 vml.0000000000766d686261313a313a30:5
mpx.vmhba1:C0:T1
[color=]:L
0:6 vml.0000000000766d686261313a313a30:6
mpx.vmhba1:C0:T1
[color=]:L
0:7 vml.0000000000766d686261313a313a30:7
mpx.vmhba1:C0:T1
[color=]:L
0:8 vml.0000000000766d686261313a313a30:8
可以看出,mpx.vmhba1:C0:T1
[color=]:L
0就是磁盘2,尝试删除分区:
~ # partedUtil delete /dev/disks/mpx.vmhba1\:C0\:T1\
[color=]:L
0 8
Error: The primary GPT table states that the backup GPT is located beyond the end of disk. This may happen if the disk has shrunk or partition table is corrupted. Fix, by writing backup table at the end? This will also fix the last usable sector appropriately as per the new reduced size. diskPath (/dev/disks/mpx.vmhba1:C0:T1
[color=]:L
0) diskSize (286611840) AlternateLBA (429915464) LastUsableLBA (429915431)
Warning: The available space to /dev/disks/mpx.vmhba1:C0:T1
[color=]:L
0 appears to have shrunk. This may happen if the disk size has reduced. The space has been reduced by (143303625 blocks). You can fix the GPT to correct the available space or continue with the current settings ? This will also move the backup table at the end if it is not at the end already. diskSize (286611840) AlternateLBA (429915464) LastUsableLBA (429915431) NewLastUsableLBA (286611806)
Error: Can't have a partition outside the disk!
Unable to construct disk from device /dev/disks/mpx.vmhba1:C0:T1:L0
删不掉,试试创建新卷标:
~ # partedUtil mklabel /dev/disks/mpx.vmhba1\:C0\:T1\
[color=]:L
0 msdos
Error: Read-only file system during write on /dev/disks/mpx.vmhba1:C0:T1:L0
WriteNewPtable: Unable to commit to device /dev/disks/mpx.vmhba1:C0:T1:L0
汗,只读。。。什么意思啊。。。
尝试修复:
~ # partedUtil fixGpt vmfs/devices/disks/mpx.vmhba1\:C0\:T1\
[color=]:L
0
FixGpt tries to fix any problems detected in GPT table.
Please ensure that you don't run this on any RDM (Raw Device Mapping) disk.
Are you sure you want to continue (Y/N): y
Error: The primary GPT table states that the backup GPT is located beyond the end of disk. This may happen if the disk has shrunk or partition table is corrupted. Fix, by writing backup table at the end? This will also fix the last usable sector appropriately as per the new reduced size. diskPath (/dev/disks/mpx.vmhba1:C0:T1
[color=]:L
0) diskSize (286611840) AlternateLBA (429915464) LastUsableLBA (429915431)
Fix/Ignore/Cancel? Fix
Error: Can't have a partition outside the disk!
Unable to read partition table on device vmfs/devices/disks/mpx.vmhba1:C0:T1
:L
0
还是不行。
顺便用df看了一下磁盘:
~ # df -h
Filesystem Size Used Available Use% Mounted on
VMFS-5 63.5G 971.0M 62.6G 1% /vmfs/volumes/datastore1
vfat 4.0G 5.0M 4.0G 0% /vmfs/volumes/51046fa3-c265c03e-2c1a-001b78d0594a
vfat 249.7M 130.2M 119.5M 52% /vmfs/volumes/76db3a74-aebcf9e8-4462-9d8069c7e2c4
vfat 249.7M 8.0K 249.7M 0% /vmfs/volumes/ee609a72-55cddffe-7b58-318cc3081d3c
vfat 285.8M 201.9M 83.9M 71% /vmfs/volumes/51046f8b-65eaa554-ea2a-001b78d0594a
好像没有磁盘2。。。
实在不知道怎么搞定了,有点长,辛苦您看完。
请各位帮帮小弟吧,万分感谢! |
|