- 1、本文档共5页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Linux VPS下启用未使用的硬盘空间扩充LVM
Linux VPS下启用未使用的硬盘空间扩充LVM
SSH登陆后,查看现有分区、挂载及swap情况:可以看到大概8G的硬盘空间分布情况
df -hal
free -m
[root@XenSystem ~]# df -halFilesystem Size Used Avail Use% Mounted on/dev/mapper/VolGroup00-LogVol005.7G 1.1G 4.4G 20% /proc 0 0 0 - /procsysfs 0 0 0 - /sysdevpts 0 0 0 - /dev/pts/dev/xvda1 99M 27M 67M 29% /boottmpfs 257M 0 257M 0% /dev/shmnone 0 0 0 - /proc/sys/fs/binfmt_miscsunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs[root@XenSystem~]# free -m? ?? ?? ?? ? total? ?? ? used? ?? ? free? ???shared? ? buffers? ???cachedMem:? ?? ?? ???512? ?? ???506? ?? ?? ? 5? ?? ?? ? 0? ?? ???447? ?? ?? ? 9-/+ buffers/cache:? ?? ?? ?49? ?? ???463Swap:? ?? ?? ?2079? ?? ?? ? 0? ?? ? 2079
查看硬盘设备列表:
fdisk -l
Disk /dev/xvdb: 23.6 GB, 23622320128 bytes255 heads, 63 sectors/track, 2871 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/xvdb doesnt contain a valid partition tableDisk /dev/xvda: 8589 MB, 8589934592 bytes255 heads, 63 sectors/track, 1044 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes? ? Device Boot? ?? ?Start? ?? ?? ?End? ?? ?Blocks? ?Id??System/dev/xvda1? ?*? ?? ?? ???1? ?? ?? ? 13? ?? ?104391? ?83??Linux/dev/xvda2? ?? ?? ?? ???14? ?? ???1044? ???8281507+??8e??Linux LVM
硬盘/dev/xvdb尚未划分使用,接下来我们为dev/xvdb分区
fdisk /dev/xvdb
[root@XenSystem ~]# fdisk /dev/xvdbDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel. Changes will remain in memory only,until you decide to write them. After that, of course, the previouscontent wont be recoverable.The number of cylinders for this disk is set to 2871.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:1) software that runs at boot time (e.g., old versions of LILO)2) booting and partitioning software from other OSs? ?(e.g., DOS FDISK, OS/2 FDISK)Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)#输入n,新建分区Command (m for help): n#输入P,主分区Command act
您可能关注的文档
- 云平台环境下如何扩充虚拟机根目录空间-新.docx
- 2010年建兰中学九年级十月份月考卷.doc
- 信函万能句型.doc
- 2017年江苏单招英语模拟试题(附答案).docx
- 仁爱九年级英语上册期中测试题.doc
- Juniper Junos SRX系列Cluster HA配置汇总.docx
- 乒乓球Table Tennis竞赛规则中英文介绍.doc
- 大连海事大学英语.doc
- 中国文化英语概论 第8课test A.doc
- 2016长治职业技术学院单招英语模拟试题及答案.docx
- 部编版一年级语文下册第四单元《8 夜色》教学课件(2025年春-新编教材).pptx
- 江苏省盐城市五校2024-2025学年高一下学期4月期中联考数学试卷(含答案).pdf
- 2025年高一语文教师工作总结简单版(六).docx
- 第12课《台阶》课件 2024—2025学年统编版语文七年级下册(共39张PPT).pptx
- 部编版一年级语文下册第四单元《语文园地四》教学课件(2025年春-新编教材).pptx
- 部编版一年级语文下册第四单元《9 端午粽》教学课件(2025年春-新编教材).pptx
- 指导技能的关键要素与提升的策略研究与分享.docx
- 湖南省永州四中直升班2025届高三(下)适应性数学试卷(含答案).pdf
- 湖北省荆荆宜襄·四地七校联盟2024-2025学年高一(下)期中联考数学试卷(含答案).pdf
- 2025年04月17日袁荣的初中历史组卷.docx
文档评论(0)