您的位置:首页 > 运维架构

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

2018-01-11 10:40 513 查看
当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
刷新网页在虚拟组里就可以看到所创建的物理卷了:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  无法 创建 物理卷
相关文章推荐