预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共11页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

使用lvextend-LsizeLVNAME增大一个逻辑卷的大小。[root@NEWLFSmnt]#lvextend-L+1G/dev/lvm_vg/lv_homeExtendinglogicalvolumelv_hometo3.00GBLogicalvolumelv_homesuccessfullyresized[root@NEWLFSmnt]#-L+1G为lv_home加上1G空间。或者使用这种格式:[root@NEWLFSmnt]#lvextend-L3G/dev/lvm_vg/lv_home指定lv_home更改后的大小,效果相同。 更改逻辑卷大小后,还应该更改文件系统的大小,保持一致:[root@NEWLFSmnt]#resize_reiserfs-f/dev/lvm_vg/lv_home 代码:resize_reiserfs3.6.1Array(2003www.namesys.com)ReiserFSreport:blocksize40Array6blockcount786432(524288)freeblocks7781Array7(516061)bitmapblockcount24(16)Syncing..doneresize_reiserfs:Resizingfinishedsuccessfully.[root@NEWLFSmnt]dfFilesystemSizeUsedAvailUse%Mountedon/dev/md05.4G2.8G2.7G51%//dev/hda16.4G4.0G2.5G62%/mnt/C/dev/hda625G22G3.6G86%/mnt/E/dev/hda7Array.7G3.7G5.6G40%/mnt/lfs/dev/mapper/lvm_vg-lv_home3.0G33M3.0G2%/mnt/lvm_home[root@NEWLFSmnt]#成功的将lvm_home扩展到了3G,没有重新启动,并且没有卸载文件系统。ReiserFS真是好用!^_^当然,ReiserFS也允许卸载文件系统后resize,使用下列命令:[root@NEWLFSmnt]#umount/dev/lvm_vg/lv_home卸载文件系统[root@NEWLFSmnt]#resize_reiserfs/dev/lvm_vg/lv_home调整大小,与上面不同的地方是没有-f参数.[root@NEWLFSmnt]#mount-treiserfs/dev/lvm_vg/lv_homelvm_home/重新挂载上.EXT2/3安装,扩展:[root@NEWLFSmnt]#lvcreate-L2G-nlv_optlvm_vgLogicalvolume"lv_opt"created分出一块2G名字为lv_opt的逻辑卷[root@NEWLFSmnt]#mke2fs-j/dev/lvm_vg/lv_opt 代码:mke2fs1.35(28-Feb-2004)Filesystemlabel=OStype:LinuxBlocksize=40Array6(log=2)Fragmentsize=40Array6(log=2)262144inodes,524288blocks26214blocks(5.00%)reservedforthesuperuserFirstdatablock=016blockgroups32768blockspergroup,32768fragmentspergroup16384inodespergroupSuperblockbackupsstoredonblocks:32768,Array8304,163840,22Array376,2Array4Array12Writinginodetables:doneCreatingjournal(81Array2blocks):doneWritingsuperblocksandfilesystemaccountinginformation:doneThisfilesystemwillbeautomaticallycheckedevery35mountsor180days,whichevercomesfirst.Usetune2fs-cor-itooverride.创建ext3文件系统[root@NEWLFSmnt]#mkdirlvm_opt[root@NEWLFSmnt]#mount-text3/dev/lvm_vg/lv_optlvm_opt/创建挂载点,挂载上。[root@NEWLFSmnt]#df 代码:FilesystemSizeUsedAvailUse%Mounted............../dev/mapper/lvm_vg-lv_home3.