我创建了linux,并试图增加根设备/dev/xvda的磁盘大小,但不确定如何正确/正确地执行此操作。
另外,我必须关闭VM才能做到这一点吗?
Device Boot Start End Sectors Size Id Type
/dev/xvda1 * 2048 33552383 33550336 16G 83 Linux
谢谢
这就是问题所在:
root@ip-10-126-247-82:~# mkfs.ext4 /dev/xvda3
mke2fs 1.41.14 (22-Dec-2010)
/dev/xvda3 is mounted; will not make a filesystem here!
这就是调试:
root@ip-10-126-247-82:~# mount
/dev/xvda1 on / type ext4 (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid
当我在Ubuntu14.04机器上运行sfdisk -l时,它返回以下内容:
Disk /dev/xvda: 36473 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/xvda1 0+ 522 523- 4200966 83 Linux
/de
我试图在我的CentOS系统上挂载设备/dev/xvdc。当我运行fdisk命令时,我得到:
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 33 262144 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/xvda2 33 13055 104594432 83 Linux
Disk /dev/xvdc:
我在Linux机器上,我收到一个错误,我的存储空间已经满了。
Error writing to connection: No space left on device
我使用了df,我可以看到在我的一些文件系统中有足够的空间。
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 8202604 60 8202544 1% /dev
tmpfs 8213188 0 8213188 0% /dev/shm
/dev/xvda1