之前阿里云的磁盘空间是200G的,由于业务原因,现在要提升到400G

 

下面是操作详情:

[root@localhost /]# umount /data
umount.nfs: /data: device is busy
[root@localhost /]# umount -lf /data
成功!
[root@localhost /]# fdisk /dev/xvdb
WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old tab
......

瞬间整个人都不好了,已经卸载了,还有进程调用。。。。。。

通过下面命令查看是哪个进程在使用

[root@iZ25papb7g2Z ~]# fuser -m -v /data

                     USER        PID ACCESS COMMAND

/data:               root       1332 F..e. httpd

                     daemon     1333 F..e. httpd

                     root       1340 F..e. nginx

                     www        1341 F..e. nginx

然后关闭服务(特殊进程可以kill或者kill -9)

重新umount/fdisk一次成功