网站大量收购独家精品文档,联系QQ:2885784924

Linux VPS下启用未使用的硬盘空间扩充LVM.doc

Linux VPS下启用未使用的硬盘空间扩充LVM.doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Linux VPS下启用未使用的硬盘空间扩充LVM

Linux VPS下启用未使用的硬盘空间扩充LVM SSH登陆后,查看现有分区、挂载及swap情况: 可以看到大概8G的硬盘空间分布情况 df -hal free -m [root@XenSystem ~]# df -hal Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 5.7G 1.1G 4.4G 20% / proc 0 0 0 - /proc sysfs 0 0 0 - /sys devpts 0 0 0 - /dev/pts /dev/xvda1 99M 27M 67M 29% /boot tmpfs 257M 0 257M 0% /dev/shm none 0 0 0 - /proc/sys/fs/binfmt_misc sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs [root@XenSystem~]# free -m ? ?? ?? ?? ? total? ?? ? used? ?? ? free? ???shared? ? buffers? ???cached Mem:? ?? ?? ???512? ?? ???506? ?? ?? ? 5? ?? ?? ? 0? ?? ???447? ?? ?? ? 9 -/+ buffers/cache:? ?? ?? ?49? ?? ???463 Swap:? ?? ?? ?2079? ?? ?? ? 0? ?? ? 2079 查看硬盘设备列表: fdisk -l Disk /dev/xvdb: 23.6 GB, 23622320128 bytes 255 heads, 63 sectors/track, 2871 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/xvdb doesnt contain a valid partition table Disk /dev/xvda: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders Units = 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/xvdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content 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

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档