LSX-blog

Feed Rss

【原创】ESX在线扩容LVM硬盘空间

05.04.2012, Linux, by .

背景情况

     今天早上来到公司,听同事说邮件无法使用了,立刻检查,错误显示无法写入,仔细想想,最近没有做任何更改啊,应该不会是权限的问题,立刻检查目录,列一下,目录情况,发现,目录几十个G,立刻检查硬盘空间,发现硬盘空间不足,现在是扩容过程。

    一、登陆VCenter,编辑虚拟机,将置备大小从100调整到200,不够以后还可以再调,重起服务器。

image

二、进入服务器调整硬盘大小

image

从上图可知/dev/sda 的大小已经从100变为200了,但逻辑卷大小还没有变,我们接下来的事情,就是LVM的扩容逻辑卷了

1、新建分区

image

我想这一步大家都没有疑问吧,接下来,不要退出,输入c,更改分区类型

image

3、确认分区最后如下样子,最后一个分区是我们新增的,记得重起一下,不然下一步会操作失败

image

4、转换成物理卷

image

5、查看要扩容的卷组名并扩容之

image

扩容卷组

image

再次查看

image

红色的区域是未分配的空间,这也是我们刚刚扩容上去的大小,现在卷组扩容完成,这时还需要扩容逻辑卷大小。

6、扩容逻辑卷

image

-l 是扩展意思 +3199 是加多少pe,后面的/dev/Vol—这是逻辑卷

这时,并没有完呢,你可以查看df –h

image

大小并没有变化,不要急,还有一步没有做呢

6、在线调整大小

image

出现这一步说明成功了。

7、查看当前大小

可以看到大小已经变成188G了

image

【原创】ESX在线扩容LVM硬盘空间 有 8 条回应

  1. Hey There. I found your blog using msn. This is a really well written article.
    I’ll make sure to bookmark it and come back to read more of your
    useful information. Thanks for the post. I’ll certainly return.

    回复
  2. Hi it’s me, I am also visiting this web site daily, this website is genuinely good and the viewers are genuinely sharing good thoughts.

    回复
  3. Hey there are using WordPress for your site platform? I’m new to the blog world but I’m trying to get started and
    set up my own. Do you require any html coding knowledge to make your own blog?
    Any help would be greatly appreciated!

    回复
  4. Pretty nice post. I just stumbled upon your blog and wished to say that I’ve really enjoyed browsing your
    blog posts. In any case I will be subscribing to your rss feed and I
    hope you write again soon!

    回复
  5. Hello there! I could have sworn I’ve been to this
    website before but after going through a few of the articles I realized it’s new to me.
    Regardless, I’m certainly delighted I discovered
    it and I’ll be book-marking it and checking back often!

    回复
  6. Keep on working, great job!

    回复
  7. Hi there, I found your web site by way of Google even as looking for a comparable subject, your site came up, it looks good.

    I have bookmarked it in my google bookmarks.
    Hi there, just turned into alert to your blog thru Google, and found that it’s truly informative.

    I’m going to watch out for brussels. I’ll be grateful if you continue this in future.
    Many other people will likely be benefited from your
    writing. Cheers!

    回复
  8. I every time emailed this blog post page to all my contacts, because if like to read it afterward my friends
    will too.

    回复

发表评论

电子邮件地址不会被公开。 必填项已用*标注