欢迎来到天天文库
浏览记录
ID:46534675
大小:225.50 KB
页数:13页
时间:2019-11-25
《创建和管理LVM》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、创建和管理LVMLVM是逻辑盘卷管理PE基本单元LE可被寻址的基木单位PV物理卷VG卷组LV逻辑卷#vgs#vgscan#vgdisplay#lvscan#lvdisplayPE的大小是可配置的,默认为4MBLE的大小和PE是相同的,并J1对应指把硬盘分区变为物理卷指把多个物理卷合成叫卷组指把卷组分出的分区叫逻辑卷空间大小,已经使用的空间加-v显示UU'ID扫描所有卷组显示岀多有卷组信息查看是否修改为不激活状态扫描所有逻辑卷信息把硬盘格式化为LVM类型#fdisk—I查看硬盘信息(高亮是新增硬盘/dev/had20G)-bash:fdis1:commandnotfound:raotOlo
2、calhostfdisk-1k/dev/hda:21.4GB>21474836480bytesheads>63sectors/track,44384cy1indersts=cy1indersof945*51Z=483840bytes/dev/hdadoesn'tcontainavalidtableDiskzdev/sda:21AGB,21474836480bytesp55heads,63sectors/tr&ck,2610cy1indersUnits二cy1indersof16065*512=8225280bytesDeviceBootzdeu/sdal*/dev/sda2/dev/sd
3、«3St"t1HZ75Blocks1043912096482*187639Z08eSystemLinuxLinuxswap/SolarisLinuxLUMDiskzdevzsdb:Z1.4GB,21474836480bytesZ55heads,63sectors/track,2610cylinderspnits=cy1indersof16065«51Z=8ZZ5Z80bytrsDeviceBootStartEndBlocksIdSysttmdev/sdbl1261020964793*8eLinuxLUM[rootQlocalhost~wi11remaininmemoryonly#that
4、,ofcourse>thrpreviousissetto44384.thisislargerthanThenumberofcylindersforthisdiskThereisnothingwrongwiththat>butandcouIdincertainsetupscauseproblemswith:1024>1)softwarethatrunsatboottime(e.g.>oldversionsofLILO)Z)bootingandpartitioningsoftwarefromotherOSs(匕・g•■Uarning:inva1idflag0x8000ofpartitiont
5、able4wi11beDOSFDISK,OS/2FDISK)correctedbyu(rite)[rootQlocalhostfdisk/deu/hdaDevicecontainsneitheravalidDOSpartitiontable*norSun.SGIorOSFdisklaqe1BuildinganewDOSdisklabe1.Changesuntilyoudecidetowritethem.Aftercontentuonftberecoverable.输入nICommand(mforhelp):n是新建分区,d是删除分区,p是查看分区,t是类型改变Command(mforhe
6、lp):n输入p分区类型为主分区(如果硬盘分区超过4个了,则选择扩展分区,再新建逻辑分区)e是扩展分区,P是主分区Commandactioneextendedpprimarypartition(1-4)#Partitionnumber(1-4):1第1个主分区#Firstcylinder(1-44384,default1):#Usingdefaultvalue1起始磁柱这时选默认1#Lastcylinderor+sizeor+sizeMor+sizeK(1-44384,default44384):最后一个圆柱大小这时选默认Partitionnumber(1-4):1Firstcylind
7、"(1-44384>default1):usingdefaultvalue1Lastcylinderor*sizeor*sizeMor*sizeK(1-44384>defauIt44384):Usingdefau11value44384#Command(mforhelp):p查看分区情况Command(mforhelp):pDisk/dev/hda:21.4GB,21474836480bytes15heads>63s匕ctors/t
此文档下载收益归作者所有