码迷,mamicode.com
首页 > Web开发 > 详细

openfiler物理机web界面无法创建物理卷(Physical volume)问题

时间:2018-01-11 11:25:51      阅读:350      评论:0      收藏:0      [点我收藏+]

标签:code   roo   vpd   run   无法创建   creat   格式   its   swa   

当openfiler安装环境为物理环境时,由于磁盘做了阵列,被认作为一块磁盘,在安装完后,在openfiler无法创建物理卷,点击创建无反应,更改起始位和终止位大小也无济于事。服务器在有两块单独的磁盘下一块用来安装系统一块用来做共享磁盘,这种情况下不存在无法创建的问题。下面是解决办法:
记得安装openfiler时,只需将划分必要的数据分区,共享空间暂时不划分,让其它空间为free可以了,安装完在划分。

[root@openfiler-81 ~]# fdisk -l #查看分区情况
Disk /dev/cciss/c0d0: 734.1 GB, 734054899712 bytes
255 heads, 63 sectors/track, 89243 cylinders, total 1433700976 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x37363521

       Device Boot      Start         End      Blocks   Id  System

/dev/cciss/c0d0p1 * 63 62910539 31455238+ 83 Linux
/dev/cciss/c0d0p2 62910540 79682399 8385930 82 Linux swap /

[root@openfiler-81 ~]# fdisk /dev/cciss/c0d0 #将free空间进行分区格式化
Command (m for help): n #新建分区
Command action
e extended
p primary partition (1-4)
p #设置分区为主分区
Partition number (1-4, default 3):
Using default value 3
First sector (79682400-1433700975, default 79682400):
Using default value 79682400
Last sector, +sectors or +size{K,M,G} (79682400-1433700975, default 1433700975):
Using default value 1433700975

Command (m for help): w #保存
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[root@openfiler-81 ~]# fdisk -l #查看分区情况

Disk /dev/cciss/c0d0: 734.1 GB, 734054899712 bytes
255 heads, 63 sectors/track, 89243 cylinders, total 1433700976 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x37363521

       Device Boot      Start         End      Blocks   Id  System

/dev/cciss/c0d0p1 * 63 62910539 31455238+ 83 Linux
/dev/cciss/c0d0p2 62910540 79682399 8385930 82 Linux swap / Solaris
/dev/cciss/c0d0p3 79682400 1433700975 677009288 83 Linux

[root@openfiler-81 ~]# reboot #分完区需要重启,要不然系统无法认到分区,创建物理卷时会报错。
The system is going down for reboot NOW!.localdomain (pts/2) (Mon Jan 8 01:0
启动后,进行手动物理卷创建。
[root@openfiler-81 ~]# vgcreate openfiler-81 /dev/cciss/c0d0p3 #创建虚拟物理卷
No physical volume label read from /dev/cciss/c0d0p3
Physical volume "/dev/cciss/c0d0p3" successfully created
Volume group "openfiler-81" successfully created
刷新网页在虚拟组里就可以看到所创建的物理卷了:
技术分享图片

openfiler物理机web界面无法创建物理卷(Physical volume)问题

标签:code   roo   vpd   run   无法创建   creat   格式   its   swa   

原文地址:http://blog.51cto.com/3001441/2059722

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!