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硬盘空间 有 33 条回应

  1. It’s nearly impossible to find experienced people
    about this topic, however, you seem like you know what you’re talking about!
    Thanks

    回复
  2. It’s remarkable for me to have a site, which is useful in favor of my experience. thanks admin|

    回复
  3. After looking at a handful of the articles on your web page, I seriously
    appreciate your way of blogging. I saved as a favorite it to my bookmark webpage list and will
    be checking back in the near future. Please visit my web site as well
    and tell me what you think.

    回复
  4. At this moment I am going away to do my breakfast, once
    having my breakfast coming yet again to read additional news.

    回复
  5. This website definitely has all of the information I needed about this subject and didn’t know who to ask.

    回复
  6. I like reading through a post that can make men and women think.

    Also, thank you for permitting me to comment!

    回复
  7. Wow, marvelous blog format! How lengthy have you ever
    been running a blog for? you make blogging glance easy. The total glance of your website is
    excellent, as smartly as the content!

    回复
  8. These are in fact wonderful ideas in on the topic of blogging.
    You have touched some pleasant things here. Any way keep up wrinting.

    回复
  9. Hi, every time i used to check weblog posts here early in the break of
    day, because i love to find out more and more.

    回复
  10. Hi! This post could not be written any better! Reading this post reminds me of my good old room mate!
    He always kept chatting about this. I will forward this post to him.
    Pretty sure he will have a good read. Thanks for sharing!

    回复
  11. Thanks for sharing such a pleasant opinion, article is fastidious, thats
    why i have read it completely

    回复
  12. Thanks for finally writing about >【原创】ESX在线扩容LVM硬盘空间 –
    LSX-blog <Liked it!

    回复
  13. Heya i’m for the first time here. I found this board and I find It truly useful &
    it helped me out a lot. I’m hoping to give something again and aid others like you aided me.

    回复
  14. I really like it whenever people get together and share opinions.
    Great website, continue the good work!

    回复
  15. I really like your blog.. very nice colors & theme. Did
    you create this website yourself or did you hire someone to do it
    for you? Plz answer back as I’m looking to construct my own blog and would like to find out where
    u got this from. cheers

    回复
  16. Excellent blog here! Also your web site loads up very fast!
    What host are you using? Can I get your affiliate link to your host?
    I wish my site loaded up as fast as yours lol

    回复
  17. Spot on with this write-up, I seriously believe that this site needs a
    great deal more attention. I’ll probably be back again to read more, thanks for the
    info!

    回复
  18. I loved as much as you’ll receive carried out right here.
    The sketch is attractive, your authored subject matter stylish.

    nonetheless, you command get got an edginess over that you
    wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly a lot
    often inside case you shield this increase.

    回复
  19. It is perfect time to make some plans for the longer term and it’s time
    to be happy. I have learn this publish and if I may just
    I desire to suggest you some fascinating issues or
    suggestions. Perhaps you could write next articles relating
    to this article. I wish to learn even more issues about it!

    回复
  20. You actually make it seem so easy together with your presentation but I to find this
    matter to be really something that I feel I
    would never understand. It kind of feels too complicated and extremely broad for me.
    I am looking ahead on your subsequent post, I’ll try to get
    the dangle of it!

    回复
  21. Right here is the right webpage for anybody who wishes to understand this topic.

    You realize so much its almost hard to argue with you (not that I really will need to…HaHa).
    You definitely put a brand new spin on a topic that’s been discussed for a long time.

    Wonderful stuff, just excellent!

    回复
  22. I blog quite often and I really thank you for your information. This article has truly peaked my
    interest. I will book mark your blog and keep checking for new information about once per week.
    I opted in for your RSS feed too.

    回复
  23. Write more, thats all I have to say. Literally, it seems as though you relied on the video to
    make your point. You definitely know what youre talking
    about, why waste your intelligence on just posting videos to your weblog when you could be giving us something enlightening to read?

    回复
  24. I was wondering if you ever considered changing the structure of your blog?
    Its very well written; I love what youve got to say. But maybe you could a little more in the way of
    content so people could connect with it better. Youve got an awful lot of text for only having one or 2 pictures.
    Maybe you could space it out better?

    回复
  25. 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.

    回复
  26. 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.

    回复
  27. 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!

    回复
  28. 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!

    回复
  29. 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!

    回复
  30. Keep on working, great job!

    回复
  31. 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!

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

    回复

发表评论

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