版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、現(xiàn)狀[root@slave4~]#df-hFilesystemSizeUsedAvailUse%Mountedon/dev/mapper/vg_cdh235-lv_root50G43G4.6G91%/tmpfs7.2G96K7.2G1%/dev/shm/dev/sda1477M40M412M9%/boot/dev/mapper/vg_cdh235-lv_home733G70M695G1%/home2、[root@slave4~]#fdisk-lDisk/dev/sda:859.0GB,858993459200bytes255heads,63sectors/track,104433cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x0002a307DeviceBoot StartEndBlocksIdSystem/dev/sda1 *164512000 83 LinuxPartition1doesnotendoncylinderboundary./dev/sda264 104434 838347776 8e LinuxLVMDisk/dev/mapper/vg_cdh235-lv_root:53.7GB,53687091200bytes255heads,63sectors/track,6527cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x00000000Disk/dev/mapper/vg_cdh235-lv_swap:5947MB,5947523072bytes255heads,63sectors/track,723cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x00000000Disk/dev/mapper/vg_cdh235-lv_home:798.8GB,798830362624bytes255heads,63sectors/track,97118cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x000000003、通過vmware增加一個新的硬盤,空間200G4、重啟虛擬機,然后:[root@slave4~]#fdisk-lDisk/dev/sda:859.0GB,858993459200bytes255heads,63sectors/track,104433cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x0002a307DeviceBoot StartEndBlocksIdSystem/dev/sda1 *164512000 83 LinuxPartition1doesnotendoncylinderboundary./dev/sda264 104434 838347776 8e LinuxLVMDisk/dev/sdb:214.7GB,214748364800bytes255heads,63sectors/track,26108cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x00000000Disk/dev/mapper/vg_cdh235-lv_root:53.7GB,53687091200bytes255heads,63sectors/track,6527cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x00000000Disk/dev/mapper/vg_cdh235-lv_swap:5947MB,5947523072bytes255heads,63sectors/track,723cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x00000000Disk/dev/mapper/vg_cdh235-lv_home:798.8GB,798830362624bytes255heads,63sectors/track,97118cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x000000005、對新增加的硬盤進行分區(qū),格式化[root@slave4~]#fdisk/dev/sdbDevicecontainsneitheravalidDOSpartitiontable,norSun,SGIorOSFdisklabelBuildinganewDOSdisklabelwithdiskidentifier0x8ebdd174.Changeswillremaininmemoryonly,untilyoudecidetowritethem.Afterthat,ofcourse,thepreviouscontentwon'tberecoverable.Warning:invalidflag0x0000ofpartitiontable4willbecorrectedbyw(rite)WARNING:DOS-compatiblemodeisdeprecated.It'sstronglyrecommendedtoswitchoffthemode(command'c')andchangedisplayunitstosectors(command'u').Command(mforhelp):nCommandactioneextendedpprimarypartition(1-4)pPartitionnumber(1-4):1Firstcylinder(1-26108,default1):Usingdefaultvalue1Lastcylinder,+cylindersor+size{K,M,G}(1-26108,default26108):Usingdefaultvalue26108Command(mforhelp):tSelectedpartition1Hexcode(typeLtolistcodes):8eChangedsystemtypeofpartition1to8e(LinuxLVM)Command(mforhelp):wThepartitiontablehasbeenaltered!Callingioctl()tore-readpartitiontable.Syncingdisks.6、新的分區(qū)已經(jīng)可以看到[root@slave4~]#fdisk-lDisk/dev/sda:859.0GB,858993459200bytes255heads,63sectors/track,104433cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x0002a307DeviceBoot StartEndBlocksIdSystem/dev/sda1 *164512000 83 LinuxPartition1doesnotendoncylinderboundary./dev/sda264 104434 838347776 8e LinuxLVMDisk/dev/sdb:214.7GB,214748364800bytes255heads,63sectors/track,26108cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x8ebdd174DeviceBoot StartEndBlocksIdSystem/dev/sdb1126108209712478+8eLinuxLVMDisk/dev/mapper/vg_cdh235-lv_root:53.7GB,53687091200bytes255heads,63sectors/track,6527cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x00000000Disk/dev/mapper/vg_cdh235-lv_swap:5947MB,5947523072bytes255heads,63sectors/track,723cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x00000000Disk/dev/mapper/vg_cdh235-lv_home:798.8GB,798830362624bytes255heads,63sectors/track,97118cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskidentifier:0x000000007、注意不要將新建的磁盤分區(qū)掛載到Linux的文件系統(tǒng)中,我們是要對7進行擴容,而不是添加一個區(qū)。順便記錄一下,掛載命令是mount/dev/sdb1/指定位置空文件夾/。如果要開機自動掛載,需要修改/etc/fstab文件的內(nèi)容,添加一行:/dev/sdbl/掛載文件夾ext4defaults00.掛載使用之前,需要將磁盤先格式化:mkfs.ext4/dev/sdc1格式化成ext4,同理ext3,2就是修改一下數(shù)字。8、創(chuàng)建物理卷:[root@slave4~]#pvcreate/dev/sdb1Physicalvolume"/dev/sdb1"successfullycreated查看當前卷組情況(擴展空間前)[root@slave4~]#vgdisplay---Volumegroup---VGNameSystemIDFormatMetadataAreasvg_cdh235lvm21MetadataSequenceNo4VGAccessVGStatusMAXLVCurLVOpenLVMaxPVCurPVActPVVGSizePESizeTotalPEAllocPE/SizeFreePE/SizeVGUUIDread/writeresizable033011799.51GiB4.00MiB204674204674/799.51GiB0/0yuNdxz-uCKT-3gT9-cghm-YSna-1uJl-TNmraO擴展卷組vg_cdh235:[root@slave4~]#vgextend/dev/vg_cdh235/dev/sdb1Volumegroup"vg_cdh235"successfullyextended
查看新的vg大?。〝U展空間后)[root@slave4~]#vgdisplay---Volumegroup---VGNameSystemIDFormatMetadataAreasvg_cdh235lvm22MetadataSequenceNo5VGAccessVGStatusMAXLVCurLVOpenLVMax
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 《密封件基礎(chǔ)知識》課件
- 2024年貴州建設(shè)職業(yè)技術(shù)學(xué)院單招職業(yè)技能測試題庫標準卷
- 單位管理制度集合大全人事管理十篇
- 單位管理制度匯編大全人事管理
- 單位管理制度合并匯編【人員管理】
- 單位管理制度呈現(xiàn)匯編職工管理篇十篇
- 單位管理制度呈現(xiàn)大全人員管理
- 《礦山勞動衛(wèi)生》課件
- 《生活中的問題》課件
- 《安全防護欄標準》課件
- “雙減”背景下小學(xué)數(shù)學(xué)“教、學(xué)、評”一體化的思考與實踐
- 中外美術(shù)評析與欣賞智慧樹知到期末考試答案章節(jié)答案2024年湖南大學(xué)
- 事業(yè)單位考試《綜合知識和能力測試》試卷
- 福利住房與購房補貼制度
- 康師傅烏龍茗茶營銷策劃書
- 【川教版】《生命 生態(tài) 安全》四上第13課《預(yù)防凍瘡》課件
- 工廠籌建方案
- UPVC管道安裝施工方法
- 河南省鄭州高新技術(shù)產(chǎn)業(yè)開發(fā)區(qū)2023-2024學(xué)年三年級上學(xué)期1月期末科學(xué)試題
- 女裝行業(yè)退貨率分析
- 計算機基礎(chǔ)理論-進制的概念及換算試題及答案
評論
0/150
提交評論