虚拟机无分区的情况下,扩磁盘
2014-08-26 15:31
162 查看
---直接磁盘做成物理盘,没有分区 [root@awpservnew ~]# fdisk -l Disk /dev/sdb: 558.3 GB, 558345748480 bytes 255 heads, 63 sectors/track, 67881 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 [root@awpservnew ~]# fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x243265b6. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): p Disk /dev/sdb: 558.3 GB, 558345748480 bytes 255 heads, 63 sectors/track, 67881 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x243265b6 Device Boot Start End Blocks Id System Command (m for help): 直接使用/dev/sdb 没有分区 [root@awpservnew ~]# pvdisplay --- Physical volume --- PV Name /dev/sdb VG Name datavg PV Size 450.00 GiB / not usable 3.00 MiB Allocatable yes PE Size 4.00 MiB Total PE 115199 Free PE 25599 Allocated PE 89600 PV UUID HZeexY-0epd-9Rjk-Cy75-VlR7-AxWi-8G8X2v --- Physical volume --- PV Name /dev/sda2 VG Name vg_awpserv PV Size 39.51 GiB / not usable 3.00 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 10114 Free PE 0 Allocated PE 10114 PV UUID vMejRA-VCe0-E8dM-vzaj-UfiX-Pn0v-8fVd9B [root@awpservnew ~]# pvresize /dev/sdb Physical volume "/dev/sdb" changed 1 physical volume(s) resized / 0 physical volume(s) not resized [root@awpservnew ~]# pvdisplay --- Physical volume --- PV Name /dev/sdb VG Name datavg PV Size 520.00 GiB / not usable 3.00 MiB Allocatable yes PE Size 4.00 MiB Total PE 133119 Free PE 43519 Allocated PE 89600 PV UUID HZeexY-0epd-9Rjk-Cy75-VlR7-AxWi-8G8X2v --- Physical volume --- PV Name /dev/sda2 VG Name vg_awpserv PV Size 39.51 GiB / not usable 3.00 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 10114 Free PE 0 Allocated PE 10114 PV UUID vMejRA-VCe0-E8dM-vzaj-UfiX-Pn0v-8fVd9B [root@awpservnew ~]# lvextend -L +100G /dev/mapper/datavg-datalv Extending logical volume datalv to 430.00 GiB Logical volume datalv successfully resized [root@awpservnew ~]# resize2fs /dev/mapper/datavg-datalv resize2fs 1.41.12 (17-May-2010) Filesystem at /dev/mapper/datavg-datalv is mounted on /data; on-line resizing required old desc_blocks = 21, new_desc_blocks = 27
相关文章推荐
- 虚拟机有分区的情况下,扩磁盘
- 扩展fedora 16虚拟机的根分区磁盘容量
- 通过添加一块分区给虚拟机增加磁盘空间(Windows XP SP3+VMWare7)
- vmware linux添加新磁盘后刷新--重新扫描 SCSI 总线,在不重启虚拟机的情况下添加 SCSI 设备
- windows下C语言编程获取磁盘(分区)使用情况
- CentOS虚拟机根分区磁盘扩容操作
- 详解Linux 虚拟机根分区磁盘扩充空间记录
- 对虚拟机ubuntu14.10系统所在分区sda1进行磁盘扩容
- Linux - 查看当前磁盘的分区情况
- Vmware centos 虚拟机根分区磁盘扩容(基于LVM)
- RHEL7虚拟机中不重启的情况下加新硬盘及扩展根分区容量
- vmware11下对虚拟机ubuntu14.10系统所在分区sda1进行磁盘扩容
- CentOS虚拟机根分区磁盘扩容纪实
- Linux查看磁盘已挂载分区使用情况df详解
- VirtualBox使用物理硬盘分区作虚拟机磁盘
- 如何动态增加虚拟机镜像模版的磁盘空间?且保证新增磁盘空间不创建新的分区?
- Linux 虚拟机根分区磁盘扩充空间记录
- vmware12下对虚拟机ubuntu14.10系统所在分区sda1进行磁盘扩容
- vmware为虚拟机/分区增加磁盘容量过程
- windows下C语言编程获取磁盘(分区)使用情况