在linux下使用parted建立超过5T以上的lvm分区

十二月 29th, 2009 Posted in Centos | 阅读次数: 816 次

Author:gaojinbo
Time:2009-12-29

在linux下使用parted建立超过5T以上的lvm分区

由于新买的机器磁盘空间都比较大,r510自带了8个1t的硬盘,做了一个raid6+热备,还有5T空间
再外接了一个md1000存储,15个1T的硬盘,也做了个raid6+热备,还有12T

在5T磁盘划分了一个ext3活动分区挂到/,一个swap分区,剩下空间和另外12T的md1000,方便动态调
整分区,就做了一个lvm

 

具体操作步骤:
1.安装系统(略)
分区    /        10G
        swap    5G

 

2.进入系统后使用parted对磁盘分区

5T磁盘
parted /dev/sda

1)查看分区
按p,回车
Disk /dev/sda: 4998GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
1      17.4kB  10.0GB  10.0GB  ext3                  boot
2      10.0GB  15.0GB  5000MB  linux-swap              
2)新增lvm分区
使用剩下全部空间
mkpart primary xfs 15G -0
set 3 lvm on
p

15T磁盘
1)将磁盘转换为gpt格式
mklabel gpt

2)新增lvm分区
mkpart primary xfs 0 -0
set 1 lvm on
p

 

3.lvm磁盘管理
建好lvm分区后,还需要进行一些操作,建立pv,vg,lv等,操作(略)

 

4.重新安装grub,重要,必须重新安装grub,不然进不了系统
grub-install /dev/sda

 

注:在整个过程中对磁盘进行调整后,遇到重启不能进入系统,可通过以下方法解决
1)检查/etc/fstab文件
2)用光盘引导进入修复模式,重新安装grub

 

完成!

相关日志:

Tags:

6 Responses to “在linux下使用parted建立超过5T以上的lvm分区”

  1. snowshoes Says:

    Good share, great article, very usefull for us…thanks!


  2. Resources Says:

    Related Websites…

    [...]here are some other links to sites that we find everyday so here are some popular sites we like today[...]…


  3. panic attack treatment Says:

    My Recommended Websites…

    [...]some new websites on the web we love, even if they are not related to ours. Check them out[...]…


  4. Quality Paid to Click Business And Cheap PTC Advertising Says:

    MyBigg.Com : Quality Paid to Click Business And Cheap PTC Advertising…

    Inexpensive PTC Advertising!At MyBigg you receive paid by simply browsing our sponsor’s/Paid to be able to Click on ads.Work both at home and you merely click a web link as well as look at an internet site for a couple seconds to earn money online….


  5. make money on home Says:

    make money on home…

    [...]高进波博客 – 零起点一步配置你的linux服务器,linux博客,linux教程,web架构 » Blog Archive » 在linux下使用parted建立超过5T以上的lvm分区[...]…


  6. roofing in Red Bank OH Says:

    [...]the time to read or visit the content or sites we have linked to below the[...]……

    [...]here are some links to sites that we link to because we think they are worth visiting[...]……


留下您的脚印