首页 > linux, ubuntu > linux 分区错误

linux 分区错误

2014年3月7日 eric 发表评论 阅读评论

今天客服出去实施,发现客户的机器安装的RAID 卡属于软RAID,磁盘在Centos 5.9 系统里认出来的是很长的字符串。按照业务需求分区后发现剩下的分区分给 data 目录,在安装界面无法 分区下去,一直停留在格式化 data 数据盘分区。给我通电话后,我果断先让他把系统分区完,数据盘分区先部分,等进入系统后我远程来看问题。再他不分数据盘后系统正常安装完了跟我远程我发现的问题。

很长字符串为真实RAID卡认出的磁盘,实际的两个磁盘 为 /dev/sda /dev/sdb 是不能挂载操作的。上来我先给他 分区试试,结果报错:

WARNING: Re-reading the partition table failed with error 22: 无效的参数.
The kernel still uses the old table.

经过google 发现:

Run "kpartx -a" after FDISK is completed to add all partition mappings on the
newly-created multipath device -- EXAMPLE:

然后就用 kpartx -a参数执行 命令:

kpartx -a  /dev/mapper/ddf1_4c53492020202020808627c3000000004711471100001450

然后执行 ls /dev/mapper/
终于发现了

/dev/mapper/ddf1_4c53492020202020808627c3000000004711471100001450p7

刚才分出来的数据盘分区。

然后格式化:

  mkfs.ext3  /dev/mapper/ddf1_4c53492020202020808627c3000000004711471100001450p7

创建 LABEL:

      mkdir /data0
e2label /dev/mapper/ddf1_4c53492020202020808627c3000000004711471100001450p7  /data0

修改 /etc/fstab 实现自动挂载,添加:

 LABEL=/data0              /data0                    ext3    defaults        1 2

转载请注明:文章转载自:Eric's linux and nginx! (http://www.nginxs.com)
本文地址:http://www.nginxs.com/linux/515.html

分类: linux, ubuntu 标签: ,
  1. 2018年10月18日09:13 | #1

    Thank you for sharing your thoughts. I really appreciate your
    efforts and I will be waiting for your next write ups thank you once again.

  2. 2018年10月18日16:56 | #2
  3. 2018年10月18日19:33 | #3
  4. 2018年10月18日21:37 | #4

    Most actors make investments their time and efforts poorly.

  5. 2018年10月19日04:12 | #5
  6. 2018年10月19日11:45 | #6
  7. 2018年10月19日13:54 | #7

    Every weekend i used to pay a visit this web page, for the reason that i wish for enjoyment, for the reason that this this site conations really pleasant funny data too.

  8. 2018年10月19日14:41 | #8
  9. 2018年10月19日16:11 | #9

    It’s hard to come by educated people on this subject, however, you
    sound like you know what you’re talking about!
    Thanks

  10. 2018年10月19日18:54 | #10
  11. 2018年10月20日01:29 | #12
  12. 2018年10月20日18:35 | #15

    Simply desire to say your article is as amazing.
    The clearness for your post is simply cool and i could think you’re a professional in this subject.
    Well along with your permission let me to grasp your feed to stay up to date with imminent post.
    Thank you a million and please continue the gratifying work.

  13. 2018年10月21日05:27 | #16
  14. 2018年10月21日10:21 | #17
  15. 2018年10月21日17:08 | #18
  16. 2018年10月21日23:35 | #19
  17. 2018年10月22日02:52 | #20
  18. 2018年11月6日06:03 | #21

    Hey, I think your website might be having browser compatibility issues.

    When I look at your blog site in Chrome, it looks fine but when opening in Internet Explorer, it
    has some overlapping. I just wanted to give you a
    quick heads up! Other then that, awesome blog!

  19. 2018年11月6日22:50 | #22

    You have made some decent points there. I checked on the web
    for more information about the issue and found most people will go along with your views on this
    site.

  20. 2018年11月6日23:59 | #23

    Does your blog have a contact page? I’m having problems locating it but, I’d like
    to send you an email. I’ve got some ideas for your blog you might be interested in hearing.
    Either way, great website and I look forward to seeing it develop over time.

  21. 2018年11月7日08:09 | #24

    If you are going for finest contents like me,
    just go to see this web site daily for the reason that it gives feature
    contents, thanks

  22. 2018年11月7日16:47 | #25

    Thanks on your marvelous posting! I definitely enjoyed reading it, you are a great author.
    I will make sure to bookmark your blog and will
    often come back in the foreseeable future. I want to encourage yourself to continue your
    great writing, have a nice day!

  23. 2018年11月7日17:51 | #26

    Amazing! This blog looks exactly like my old
    one! It’s on a totally different topic but it has pretty much the
    same page layout and design. Excellent choice of colors!

  24. 2018年11月7日23:58 | #27

    It’s very simple to find out any topic on net as compared to textbooks, as I found this piece of
    writing at this website.

  25. 2018年11月8日17:37 | #28

    Are you searching for a good time? If you are, then let this
    busty beauty take care of you. Check her out at http://www.camgirl.pw/blondiebetsy/ She
    is one of those cam girls that you’ll never be able to get enough of.

  26. 2018年11月9日00:44 | #29

    Have you heard Ariana Grande perform Thank U live? If not,
    then you’ve definitely got to hear it. Give it a listen by clicking here http://kudoflow.com/4Emv This might just be her best song ever!

  27. 2018年11月9日05:24 | #30

    I really like what you guys tend to be up too. This kind of clever work and exposure!
    Keep up the amazing works guys I’ve incorporated you guys to
    my blogroll.

  28. 2018年11月9日19:21 | #31

    Just want to say your article is as astonishing. The clearness on your publish is simply nice
    and that i can think you are an expert on this subject. Well along with your permission allow me to grasp your RSS feed to stay updated with drawing close post.
    Thank you a million and please continue the enjoyable work.

  29. 2018年11月9日20:22 | #32

    Do you or someone you know work with wood? If so, then you’ve definitely got to check this out http://kudoflow.com/4zRl It’s
    jam packed with all the information that a woodworker needs to know.

  30. 2018年11月9日20:51 | #33

    What i don’t realize is in fact how you’re not really a lot more neatly-appreciated than you might be right now.
    You are so intelligent. You know therefore considerably
    with regards to this matter, produced me personally imagine it from a lot
    of various angles. Its like women and men are not fascinated except
    it’s one thing to do with Girl gaga! Your personal stuffs outstanding.

    Always deal with it up!

  31. 2018年11月9日23:01 | #34

    I was curious if you ever considered changing the page
    layout 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 1 or 2 images.
    Maybe you could space it out better?

  32. 2018年11月10日01:08 | #35

    I don’t know whether it’s just me or if perhaps everybody else encountering problems with your site.

    It looks like some of the written text within your posts are running off the screen. Can someone else
    please comment and let me know if this is happening to them too?
    This could be a issue with my browser because I’ve had this happen before.
    Kudos

  33. 2018年11月10日19:14 | #36

    Have you ever dreamed of making money on eBay? It’s not as difficult as you may think.
    All you have to do is follow this simple guide. Click on the link http://destyy.com/wXQthB and begin your journey to eBay riches.

  34. 2018年11月10日23:57 | #37

    Good answer back in return of this difficulty with real
    arguments and explaining everything regarding that.

  35. 2018年11月11日02:14 | #38

    What you think matters! Get paid to fill out
    surveys and tell people what you think. All the information can be found right here at http://bit.ly/2RL4k5r Don’t pass up on this
    opportunity to cash in on your opinions.

  36. 2018年11月11日02:26 | #39

    Do you have a spam issue on this site; I also am a blogger, and I was
    curious about your situation; many of us have developed some nice practices and we
    are looking to swap solutions with other folks, be sure to
    shoot me an e-mail if interested.

  37. 2018年11月11日18:16 | #40

    Thank you for the good writeup. It if truth be told used to be a
    enjoyment account it. Glance complicated to more brought agreeable from you!
    However, how could we be in contact?

  38. 2018年11月11日19:55 | #41

    It’s an amazing piece of writing in favor of all the internet users; they will obtain benefit from it I
    am sure.

  39. 2018年11月11日20:49 | #42

    Make some extra cash or even a full-time income taking surveys.

    You don’t need to leave your house to make this money. Check out
    all the details simply by visiting this site http://kudoflow.com/5eFZ

  40. 2018年11月12日03:15 | #43

    Do you love to take pictures? Has it been your dream to get paid
    to do the one thing you love more than anything?
    If so, there’s a site you must see. That site is
    http://destyy.com/wXQUrs and it’ll teach you how to make money taking pictures.

  41. 2018年11月12日17:31 | #44

    Learn how to sing with this easy to follow method.
    Amaze your friends and family by singing a song they’ll never forget.

    Learn how to do this and so much more by simply visiting http://kudoflow.com/5oRj

  42. 2018年11月12日17:37 | #45

    Make money every day of the week. You can even get paid while you sleep.
    This is information you must see to believe. Check it
    out here http://bit.ly/2Dc7OtO Without a doubt this is something everyone can do to make a
    few bucks or a whole lot more.

  43. 2018年11月12日18:30 | #46

    Way cool! Some very valid points! I appreciate you
    writing this post and also the rest of the website is very
    good.

  44. 2018年11月13日03:30 | #47

    Wow, incredible blog layout! How long have you been blogging
    for? you made blogging look easy. The overall look of your site is wonderful,
    as well as the content!

评论分页
1 ... 9 10 11 515
订阅评论
1+4= (必填)