本文共 2473 字,大约阅读时间需要 8 分钟。
当openfiler安装环境为物理环境时,由于磁盘做了阵列,被认作为一块磁盘,在安装完后,在openfiler无法创建物理卷,点击创建无反应,更改起始位和终止位大小也无济于事。服务器在有两块单独的磁盘下一块用来安装系统一块用来做共享磁盘,这种情况下不存在无法创建的问题。下面是解决办法:
记得安装openfiler时,只需将划分必要的数据分区,共享空间暂时不划分,让其它空间为free可以了,安装完在划分。[root@openfiler-81 ~]# fdisk -l #查看分区情况
Disk /dev/cciss/c0d0: 734.1 GB, 734054899712 bytes255 heads, 63 sectors/track, 89243 cylinders, total 1433700976 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x37363521Device 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 actione extendedp primary partition (1-4)p #设置分区为主分区Partition number (1-4, default 3): Using default value 3First sector (79682400-1433700975, default 79682400): Using default value 79682400Last sector, +sectors or +size{K,M,G} (79682400-1433700975, default 1433700975): Using default value 1433700975Command (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 atthe 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 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x37363521Device 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/c0d0p3Physical volume "/dev/cciss/c0d0p3" successfully createdVolume group "openfiler-81" successfully created刷新网页在虚拟组里就可以看到所创建的物理卷了:转载于:https://blog.51cto.com/3001441/2059722