LVM Mirror Raid1管理

LVM Mirror Raid1管理

ID:42578433

大小:43.42 KB

页数:5页

时间:2019-09-18

LVM Mirror Raid1管理_第1页
LVM Mirror Raid1管理_第2页
LVM Mirror Raid1管理_第3页
LVM Mirror Raid1管理_第4页
LVM Mirror Raid1管理_第5页
资源描述:

《LVM Mirror Raid1管理》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、测试环境:CentOS5.10x64,sda20G,sdb1G,sdc2G.一、创建逻辑卷镜像关系的步骤:1)通过pvcreate命令将linux分区处理成物理卷(PV);2)通过vgcreate命令将创建好的物理卷处理成卷组(Vg);3)通过lvcreate命令使用–m1参数将卷若干个PV组成一个逻辑镜像卷(Lv);之后我们可以对镜像逻辑卷进行格式化,挂载,删除等操作。二、创建磁盘分区首先将sbc和sdc分区,并创建三个pv(sdb1、sdc1、sdc2),其中sdb1作为数据盘,sdc1作为镜像盘,sdc2作为日志盘,日志盘不应太小(一般10G左右)。1)将sdb分区[root@Cento

2、s~]#fdisk/dev/sdbDevicecontainsneitheravalidDOSpartitiontable,norSun,SGIorOSFdisklabelBuildinganewDOSdisklabel.Changeswillremaininmemoryonly,untilyoudecidetowritethem.Afterthat,ofcourse,thepreviouscontentwon'tberecoverable.Warning:invalidflag0x0000ofpartitiontable4willbecorrectedbyw(rite)Command(mfo

3、rhelp):nCommandactioneextendedpprimarypartition(1-4)pPartitionnumber(1-4):1Firstcylinder(1-130,default1):Usingdefaultvalue1Lastcylinderor+sizeor+sizeMor+sizeK(1-130,default130):+1024MCommand(mforhelp):pDisk/dev/sdb:1073MB,1073741824bytes255heads,63sectors/track,130cylindersUnits=cylindersof16065*512

4、=8225280bytesDeviceBootStartEndBlocksIdSystem/dev/sdb11125100403183LinuxCommand(mforhelp):wThepartitiontablehasbeenaltered!Callingioctl()tore-readpartitiontable.Syncingdisks.[root@Centos~]#2)将sdc分区[root@Centos~]#fdisl/dev/sdcbash:fdisl:commandnotfound[root@Centos~]#fdisk/dev/sdcDevicecontainsneither

5、avalidDOSpartitiontable,norSun,SGIorOSFdisklabelBuildinganewDOSdisklabel.Changeswillremaininmemoryonly,untilyoudecidetowritethem.Afterthat,ofcourse,thepreviouscontentwon'tberecoverable.Warning:invalidflag0x0000ofpartitiontable4willbecorrectedbyw(rite)Command(mforhelp):nCommandactioneextendedpprimary

6、partition(1-4)pPartitionnumber(1-4):1Firstcylinder(1-261,default1):1Lastcylinderor+sizeor+sizeMor+sizeK(1-261,default261):+1024MCommand(mforhelp):nCommandactioneextendedpprimarypartition(1-4)pPartitionnumber(1-4):2Firstcylinder(126-261,default126):Usingdefaultvalue126Lastcylinderor+sizeor+sizeMor+si

7、zeK(126-261,default261):+1000MCommand(mforhelp):pDisk/dev/sdc:2147MB,2147483648bytes255heads,63sectors/track,261cylindersUnits=cylindersof16065*512=8225280bytesDeviceBootStartEndBlocksIdSystem/dev/sdc

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。