资源描述:
《莱州、号机组脱硝超低排放改造工程招标技术规范书》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Linux6.4硬盘扩容LVM逻辑卷管理操作手册1.对新增加的硬盘进行分区、格式化1.1.用root用户登录系统使用SSH客户端登录Linux服务器。1.2.查看挂载情况(此步可省略)(加上-T这个参数,就可以列出所有系统挂载的分区的文件类型信息)[root@servername~]#df-lh文件系统容量已用可用已用%%挂载点/dev/sda395G4.0G86G5%/tmpfs3.9G72K3.9G1%/dev/shm/dev/sda1388M37M331M10%/boot[root@serverna
2、me~]#1.3.查看磁盘情况(此步不建议省略)下方红色字为要创建分区的硬盘。[root@servername~]#fdisk-lDisk/dev/sda:107.4GB,107374182400bytes255heads,63sectors/track,13054cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512
3、bytes/512bytesDiskidentifier:0x000bf627DeviceBootStartEndBlocksIdSystem/dev/sda1*15240960083LinuxPartition1doesnotendoncylinderboundary./dev/sda252574419430482Linuxswap/SolarisPartition2doesnotendoncylinderboundary.-18-/dev/sda35741305510025267283LinuxDis
4、k/dev/sdb:1073.7GB,1073741824000bytes255heads,63sectors/track,130541cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x00000000[root@servername~]#1.1.创建分
5、区下方红色字为要创建分区的硬盘注意跟上面查看到的要对应。[root@servername~]#fdisk/dev/sdbDevicecontainsneitheravalidDOSpartitiontable,norSun,SGIorOSFdisklabelBuildinganewDOSdisklabelwithdiskidentifier0x883e515a.Changeswillremaininmemoryonly,untilyoudecidetowritethem.Afterthat,ofcours
6、e,thepreviouscontentwon'tberecoverable.Warning:invalidflag0x0000ofpartitiontable4willbecorrectedbyw(rite)WARNING:DOS-compatiblemodeisdeprecated.It'sstronglyrecommendedtoswitchoffthemode(command'c')andchangedisplayunitstosectors(command'u').Command(mforhel
7、p):n新增加一个分区Commandactioneextendedpprimarypartition(1-4)p分区类型我们选择为主分区Partitionnumber(1-4):1分区编号选1,如果被占依此类推Firstcylinder(1-130541,default1):按回车默认(起始扇区)Usingdefaultvalue1Lastcylinder,+cylindersor+size{K,M,G}(1-130541,default130541):按回车默认(结束扇区)也可以使用+100M即创建10
8、0M的分区 也可以使用(K,M,G)Usingdefaultvalue130541Command(mforhelp):w写分区表(可以输入t进行分区格式调整,见1.6调整分区格式)Thepartitiontablehasbeenaltered!-18-Callingioctl()tore-readpartitiontable.Syncingdisks.[root@servername~]#1.1.重新查看磁盘情况(此步可省略)