- ubuntu12.04环境下使用kvm ioctl接口实现最简单的虚拟机
- Ubuntu 通过无线网络安装Ubuntu Server启动系统后连接无线网络的方法
- 在Ubuntu上搭建网桥的方法
- ubuntu 虚拟机上网方式及相关配置详解
CFSDN坚持开源创造价值,我们致力于搭建一个资源共享平台,让每一个IT人在这里找到属于你的精彩世界.
这篇CFSDN的博客文章阿里云ecs 硬盘在线扩容详细教程由作者收集整理,如果你对这篇文章有兴趣,记得点赞哟.
1、首先在阿里云后台通过在线扩容扩容硬盘 。
2、登录ecs下载阿里云gdisk工具 。
[root@iZ2ze4hqhlabzt7nqcxfxzZ home]# yum install gdisk -yLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileResolving Dependencies--> Running transaction check---> Package gdisk.x86_64 0:0.8.10-3.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved=================================================================================================================== Package Arch Version Repository Size===================================================================================================================Installing: gdisk x86_64 0.8.10-3.el7 base 190 kTransaction Summary===================================================================================================================Install 1 PackageTotal download size: 190 kInstalled size: 660 kDownloading packages:gdisk-0.8.10-3.el7.x86_64.rpm | 190 kB 00:00:00 Running transaction checkRunning transaction testTransaction test succeededRunning transactionWarning: RPMDB altered outside of yum. Installing : gdisk-0.8.10-3.el7.x86_64 1/1 Verifying : gdisk-0.8.10-3.el7.x86_64 1/1 Installed: gdisk.x86_64 0:0.8.10-3.el7 Complete!
3、下载阿里云growpart工具 。
[root@iZ2ze4hqhlabzt7nqcxfxzZ home]# yum install cloud-utils-growpart -yLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileResolving Dependencies--> Running transaction check---> Package cloud-utils-growpart.noarch 0:0.29-5.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved=================================================================================================================== Package Arch Version Repository Size===================================================================================================================Installing: cloud-utils-growpart noarch 0.29-5.el7 base 27 kTransaction Summary===================================================================================================================Install 1 PackageTotal download size: 27 kInstalled size: 61 kDownloading packages:cloud-utils-growpart-0.29-5.el7.noarch.rpm | 27 kB 00:00:00 Running transaction checkRunning transaction testTransaction test succeededRunning transaction Installing : cloud-utils-growpart-0.29-5.el7.noarch 1/1 Verifying : cloud-utils-growpart-0.29-5.el7.noarch 1/1 Installed: cloud-utils-growpart.noarch 0:0.29-5.el7 Complete!
4、运行growpart进行扩容分区 。
首先通过df -h查看当前硬盘挂载信息 。
[root@iZ2ze4hqhlabzt7nqcxfxzZ home]# df -hFilesystem Size Used Avail Use% Mounted on/dev/vda1 197G 4.9G 182G 3% /devtmpfs 7.8G 0 7.8G 0% /devtmpfs 7.8G 0 7.8G 0% /dev/shmtmpfs 7.8G 504K 7.8G 1% /runtmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup/dev/vdb1 985G 846G 89G 91% /hometmpfs 1.6G 0 1.6G 0% /run/user/0
发现/dev/vdb1对应的挂载点/home,空间使用91%,需要对/dev/vdb1 的分区进行扩容 。
[root@iZ2ze4hqhlabzt7nqcxfxzZ home]# growpart /dev/vdb 1CHANGED: partition=1 start=2048 old: size=2097149952 end=2097152000 new: size=4194301919 end=4194303967[root@iZ2ze4hqhlabzt7nqcxfxzZ home]#
5、运行resize2fs命令扩容目标分区文件系统 。
首先查看文件系统类型 。
[root@iZ2ze4hqhlabzt7nqcxfxzZ home]# cat /etc/fstab ## /etc/fstab# Created by anaconda on Thu Nov 29 03:34:10 2018## Accessible filesystems, by reference, are maintained under '/dev/disk'# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info#UUID=b98386f1-e6a8-44e3-9ce1-a50e59d9a170 / ext4 defaults 1 1/dev/vdb1 /home ext4 defaults 0 0[root@iZ2ze4hqhlabzt7nqcxfxzZ home]#
/dev/vdb1文件系统类型为ext4,运行如下命令 。
[root@iZ2ze4hqhlabzt7nqcxfxzZ home]# resize2fs /dev/vdb1resize2fs 1.42.9 (28-Dec-2013)Filesystem at /dev/vdb1 is mounted on /home; on-line resizing requiredold_desc_blocks = 125, new_desc_blocks = 250The filesystem on /dev/vdb1 is now 524287739 blocks long.[root@iZ2ze4hqhlabzt7nqcxfxzZ home]#
再次查看硬盘 。
[root@iZ2ze4hqhlabzt7nqcxfxzZ home]# df -hFilesystem Size Used Avail Use% Mounted on/dev/vda1 197G 4.9G 182G 3% /devtmpfs 7.8G 0 7.8G 0% /devtmpfs 7.8G 0 7.8G 0% /dev/shmtmpfs 7.8G 504K 7.8G 1% /runtmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup/dev/vdb1 2.0T 846G 1.1T 46% /hometmpfs 1.6G 0 1.6G 0% /run/user/0[root@iZ2ze4hqhlabzt7nqcxfxzZ home]#
/dev/vdb1的容量已经扩围2.0T,至此在线扩容成功.
以上则是阿里云ecs 硬盘在线扩容详细教程的全部内容,希望对您所帮助,更多云服务器知识请访问我! 。
原文地址:https://www.cnblogs.com/sky-cheng/p/14626373.html 。
最后此篇关于阿里云ecs 硬盘在线扩容详细教程的文章就讲到这里了,如果你想了解更多关于阿里云ecs 硬盘在线扩容详细教程的内容请搜索CFSDN的文章或继续浏览相关文章,希望大家以后支持我的博客! 。
我正在做一个关于代码学院的教程,我在这里收到一个错误,说“看起来你的函数没有返回‘唉,你没有资格获得信用卡。资本主义就是这样残酷。’”当收入参数为 75 时。”但是该字符串在控制台中返回(由于某种原因
我正在阅读 Go 的官方教程,但很难理解 Channel 和 Buffered Channels 之间的区别。教程的链接是 https://tour.golang.org/concurrency/2和
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。 9年前关闭。 Improve this que
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的,因为
作为 iOS 新手,有大量书籍可以满足学习基础知识的需求。现在,我想转向一些高级阅读,例如 OAuth 和 SQLite 以及动态 API 派生的 TableView 等。您可以推荐任何资源吗? 最佳
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
关闭。这个问题是opinion-based .它目前不接受答案。 想要改进这个问题? 更新问题,以便 editing this post 可以用事实和引用来回答它. 关闭 8 年前。 Improve
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。 关闭 8 年前。
前言 很多同学都知道,我们常见的CTF赛事除了解题赛之外,还有一种赛制叫AWD赛制。在这种赛制下,我们战队会拿到一个或多个服务器。服务器的连接方式通常是SSH链接,并且可能一个战队可能会同时有
Memcached是一个自由开源的,高性能,分布式内存键值对缓存系统 Memcached 是一种基于内存的key-value存储,用来存储小块的任意数据(字符串、对象),这些数据可以是数据库调用、A
Perl 又名实用报表提取语言, 是 Practical Extraction and Report Language 的缩写 Perl 是由 拉里·沃尔(Larry Wall)于19
WSDL 是 Web Services Description Language 的缩写,翻译成中文就是网络服务描述语言 WSDL 是一门基于 XML 的语言,用于描述 Web Services 以
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 6年前关闭。 Improve thi
我正在寻找解释在 WPF 中创建自定义用户控件的教程。 我想要一个控件,它结合了一个文本 block 、一个文本框和一个启动通用文件打开对话框的按钮。我已经完成了布局,一切都连接好了。它有效,但它是三
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我接近 fourth page of the Django tutorial 的开始看着vote查看,最后是这样的: # Always return an HttpResponseRedirect a
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
是否有任何好的 Qt QSS 教程,或者在某个地方我可以看到样式小部件的示例?如果某处可用,我想要一些完整的引用。除了有关如何设置按钮或某些选项卡样式的小教程外,我找不到任何其他内容。 最佳答案 Qt
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引起辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the he
我是一名优秀的程序员,十分优秀!