版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Linux系统不重启动系统添加磁盘范例:此范例是利用VMware安装系统测试本次测试其实只是刷新了系统本地的SCSi路径,通知系统内核我们添加了一块磁盘信息而已,为涉及什么高级的东西;1. fdisk检查本地磁盘信息;圍myscl_test01 - Secure CRTFile Edit ViewOptionsTransfer Scr pt I ools HepiB的屈毛*号酸1 vLast login: jooxSTestJi r ootsies vjirJun 9rd fskoy: h4-irroin 192.lbt.Disk /dtv/stid. 42. 9 SB, 42 9496729
2、60255 headst 63 sectors/track, 5221 cyl 1ndersUnits - cylindcrs of 1606S * 512 - 8225280 bytes Sector size (logical/ijlTysical); 512 bytes / 512 bytesI/O si ze (uini mum/optimal): 512 bytes / 512 bytes Disk identifi er: OxOOC78aD2Device Boot /dov/sdAl * Part itinn 1 do?s /dev/sda?Startnot Fnd nn &4E
3、ndelccksfi451?tX0ryl i nd pr bou ntiary.S2?241430016id System 的 I imixBe I i nix L VNDisk /dev/mapper/vg_testOL-lv_root: 38.2 GB.byt电s255 heads, 3 sectors/track* 4647 cylindersUnits - cylinders of 1606i * 512 - E2252&0 byiesSector size (logical/physical): 512 bytes / 512 fcytesI/O si2e (minimum/opti
4、1); 512 bytes / 512 bytesDisk 1 dentiti er: Uxl3L:ODOJ CD/DVD (DE)正在th用文甘 E:lS0Cent0 5r4i.6-K.強隅i昭器MATEljsbB扇卡內存渚宜湘險卜临IQ础肋匸章*內存尢1业顶阳比虛摊1油1内寺(叫:V : WIE3閒2GB .1G64J毅黄崖论冋洋512MC勺瑶曰馱小可旋 賄祇曙:235 ME3900 MB12SMB囚建內存MM6LD24 PIB32 MB口建镇曲最厲冋樣ft惑戒存15 Mfi512 M33 MO斗MP 婀先关闭田队机,甘做曲低內寿更4丨辆J3.添加20G磁盘;內存 口船幣:臥貶盘:5C5I
5、:CDDvT: IE:鱼隅适削器梓別云/強斗im St-S晦文件CntOS M位胡片厲认2n GB正在诧用文件 E;ISOCento 5-6.5-k.N L.T存狂自跚之刑白晰翅I寿前匕、;3.2 Mt茎编可罔空间.31?-5 5?蛀大文小:3&CB庇盘信每丰剛血削码麵建空朮 潯羊内詳緒坯务卜宏貼申。来冃T4N(H高的*sfetafAU.确定羽港 .帮羽4此时系统并未识别到磁盘,与第一张图相同;弋慣 myscl_te&01 - Secure CRT- nXilt Edit VitwOptions TransferSer pt I ocls He-p因G 通囲I订巨爲呂雪鑒了丨釦生壬I rnyB
6、ql.tEt 匚 1Disk /dev/mapper/vq_cest 4647 cylinders units = cyl -inders of l06 * S12 = 822 5280 bytes Sector size (logicaIZphysicalJ! 512 bytes / 512 bytes I/O siae Cm1m num/optimal): 512 bytes / 512 bytes Disk Identifier: OxuouuOC plsk /dev/fnapper/vg_te$iOL-lv_sap: 4194 mb, 41M304QOO bytes255 heads.
7、 63 sectors/track. 509 cylfndersUni tr = cyl ifiJtii of 1C0C5 * 512 - 82252&G byLeiSKtor size (logiLdl/|jhybil: 512 bytta / 512 LyitiI/O si ze fuinimum/optimal): 512 bytes / 512 bytesDisk identifier: OxOOOOOOOQroot&Testlll J# fdisk -1Disk /dev/sdAf M. 9 GB, 12949672&60 b/tes255 heads, 63 sectors/tri
8、ckt 221 匚ylindersUiriTS = ryl inrfpr q of* SI 7 =鼻hyrSector sizp (logical/physicalJ: 51? bytes / 512 bytesT/0 si7e Cutnimum/optimal): 51? bytes J 512 bytes Disk identifier: 0 x00078aO2iniLaMETl:TmDevice /dev/sdal Partition dev sda?Boor-*1 doesstart1not nd on64End64Blocks 512COO cylinder boundary.522
9、2 414BD0LCid83Besystem LiruxLirux LWDisk /ciev/mapper/vg-testOl-lv_root: 38.2 GE,Dytes255 heads( &3 secxors/rrack, 4647 cylindersun1is = cylinders of 工右。打,ft - 呢252盹 bytessector size (logical/physical); ,12 bytes / 512 Lytesi/o si;e (m1nf muni/opr Imai) : 51J bytes / 512 byresDiik i denL i f i er*;
10、OaOOOOOOOODisk /deY/miippcr/vg_cc5t01 1 v_iap: 41M MD t lMJMOQO b/tcs 255 head, C3 sectors/trackt &09 cyHnderwUnits - cyl dinders of 1606S * S12 - 322528C bytesSector 5 i ze 1Ogi cal/physi cal: 512 bytes / 512 bytesI/O si20. Ciffnimurti/optimal): 512 bytes 512 bytesDisk idpntifi: OkCWOOOOOOrrnntTPst
11、ni #Readyssh2: AES-.256-C 45. IB 45 RowSi SO Cols VT100CAP NUM5.我们进入hostO目录执行命令;命令: cd /sys/class/scsi_host/host0/肩 myscljte5lOl - Secu reCRTFile tdit View Opbori LraritferSen pt Tools Htp倒因i辺矽I虫血as孑屉呂i?裁Fl釦凰mI mjrsqltestCllun-iis - cylinders of 1CO * 512 = 8225280 byies5ecror size (log! cal/physic
12、扪;512 bytes / 512 bytesI/O size (ifini muin/opt-imal) : 512 bytes / 512 b/tes Disk identitier: 0 x00000000LrootMestJl -J# fdlsk - 1Disk /dev/sda; 2.9 gb.躯兴西九卿q Uyre5255 heads, C3 secrors/rrack, szzi cylinders units = cylinders of 16065 * 512 - S2252&0 byitj. Sitttu si (logiLdl/|jhyiiLal);I/O sf (min
13、inum/opL inidl): Disk 1dentif1 er:51Z0 x03078*02512 bytei / 512 bytc bytes / 512 byteiDevni ce Boot /dev/sdal * Partition 1 /dcv/sda2StarTnot nd an6AEndBlocks64512000cyl ind&r boundary.52224143COL6id System2 Li ruxBe Lirux LVMDisk /dpv/nflpppr/vg.rfliTOI -lv_rmT :38.7 GR p 驟7并斤砧石 hyTS755 hpds, serto
14、rs/Trark, 4647 rylindprsuMts = cyl-inders of 1605 * 512 = 82252&0 bytessector size (logical/physicalJ: 512 bytes / 512 bytesI/O size (m5nimuni/optimal): 512 bytes ! 512 bytesDisk identifier: OxOOOOOO&ODisk /dev/Tiapper/vg-testOl -1v_sap: 4194 ME a 41M304000 bytes 255 heads, tJ sectors/track. 509 cyl
15、Inflersunits = cylinders ot lfcObi !12 = M225ZSC bytes secror size (logical/phystcal: iiz byres / ,12 tyresI/O s1 ze fillni mum/optImai); 仇E byres /,丄2 byres1 QFiirfffrcwLT rootlestOlI acti vc_modcI bo ar : cP 1 I boar d_rane I board_tracsrHcan_quu?rnrl_ppr_l un rcnWTztdlJ# _d efault version_nvdara_
16、persistent version_produtTsq_Tablesize state siiisysTen supported_fnode uev电nthostOJ# hosxo hO5t0;# liobLO# tiusiO# hslOj# hojiO # hostO * hostol # hostO #board_as&emtjly board-nan已 bgr d_tracer can_quue cnd_per_l un rootTestJl rooxiestDi /ootjiesTJj trooLieiL3i joac-iesLOl ooLTeiLOl jootTestOl jooW
17、TestOl rootTest31D-isk /dtlv/sda: 42. 5 GE255 heads, E2 sectors/track units r cylindars of 160 1 spctnr S17P T/O S17F (rpDnsk -j dprrti2945672060 5221 U12 =: Gogical/physicalJ: SI7 ninum/optimal): 51? byt 2r: OxrX078a02Device Boor /dev/sdal parririon 1 do5 /dev/sda?Disk /dev/mapper/vg_testOL-l Y_iwa
18、p; 4194 MDT M1943M000 bytes 255 Ivudsi 63 sectors/track, 509 cylindersUnits - cylinders of IbOGi * 512 - 8225280 bytes sector si ze (1ogical/physi calJ: 512 bytes / 512 bytesI/O si ze (n4nimum/optimal): 512 bytes S12 bytesDisk identifier: 0 x00000000Disk /dev/mapper/7g_tesTOl-1v_root: 38.2 GE,bytesZ
19、iS heads, tn sectors/tra匚Ic, 4t47 cylinders uniis cylinders of* iiz - 8Z252SC byressector size (loglcal/physicai; 512 bytes / 51Z tyr5 i/o slit (ulnlmum/optimal): 血? byres / 了丄2 bytesDisk 1dentlfier: OaOODOOOOOX為裁cap NUMHit Edit Vitw Opbors Lrarisfw Scnpt Tools Hep7.执行命令echo -“- ” sc,注意:三个横线中间是要有空格的
20、;圍 myscl_te&01 - Secure CRTnXHit Edit Vitw OptionsVan if erScript Tools He-p也髯1 GJ二滋益lJ蛋巒?釦secror size noqical/|:hysi cal); 512 b/tes / 512 byte5I/O siae (mim muin/optimal) : 512 bytes / $12 bytesDisk icentif1 er: 0 x03000000root&TestOl rootMestDl rooxJestai rooiesrJi scanhostOJ# echo -hostOJ#noswj#
21、ho5taj# fdisk: -iDisk /dev/stla: 42. 乂,4294&672960 bytes 255 headi , C3 iEttor i/Lr tiLk, 5221 yl i ndet b Units cyl if Kiers oT 1C065 * M2 sector size (logicalZphysica): x/o si ze (itini muHi/apt-imal):Disk itentif1 er:51?OxODC78at)2 82252S0 byLtts512 bytes / 512 bytes bytes /DOvieft Boot /dcv/sdal
22、 * Partition 1 /dv/sria?EtarrEndElocks6A512000cylinder boundary.S7?7fird systemB3 Li ruxDisk /dev/mapper/vg_testOl-lv_ro0t: 38.2 GB 3S226886CS6 bytes255 heads, 13 sectors/traclc,斗647 cyliridersUnits = cylinders of 16065 * 512 = 82252S0 bytes sector size (logical/physical): 512 byres / 512 fcyresI/O
23、si ze Cninimuni/optiinaI : m bytes / 刃2 bb/tesDisk idenrifier: 0 x000000005 :Disk /fl67/iiiapper/vg_test01-lv_5Vwap: 41M MB, 4194304(X)0 b/tes 255 headsf 殆 secxors/rrack,,四 cylindersuniis = cylinders of 工右。打,ft m - 呢252盹 bytessector size (logical/physical); 512 bytes / Lyiest/o st ;e (m1nf muni/opr
24、Imai) : 51J byres / 512 byresDiik i denti f i er; 0 x00000000Disk /dev/scb; 21. S QC, 2147斗83&1E0 bcs255 hesds, C3 sectors/trackt 2&1Q cylindersUnits - cylinders of 1石OE亍 * S12 8225280 bytesSector 5 i ze 1Ogi cal/physi cal: 512 bytes / 512 bytesI/O si2& Cniffluffl/optimal) : 512 bytes ) 512 bytes Di
25、sk identifier: OkOOOOOOOOrnnriaTpsm host。# |Readytsha: AES-25G-C 45h 2245 Rqw5f 80 Cok VT100CAP NUM8.此处磁盘已经添加完毕,可以进行格式化等挂载情况;圍I rtiyscl_tesdl - SecureCRTilt tdit Vitw Options Lrarisfw Script Tools Htp 倒韻口齟观I电IE厠呂I雷鑒t I OlII rny3qiBt 匚 1Disk Idenrifier: OxOOCCOQCK)Disk /cev/scb: 21.5 GE, 2L474S364B0
26、byres255 heads, 3 sectors/track, 2610 cylinders units cylinders of 16(J6i 512 - 322520 byres secior size (logical/physical): ,12 byres f jiz tyres 1/0 s1se (ulnimum/opcimal): 1Z byres / ,12 bytes Disk 1dentlf i er: OaOOOOOOOOr 5? L 的巴、LX r ooLTeiLOl rootTestOl mlcFifohsL。#hoilD#hostOnkf nikfsnkfsmkf
27、 s lkf orrtscal e mkf S. ext2nkf s. ect4dev mkf s. xf sr&otTestOl hostO # rtkf s. ext4 /dtv/sdb 岭 讥电2他 l.dl.12 C17-May-20LO)fdQv/sdb Se entire dvice not just one partition! rnrpd anyway7 (y, n) y:_il psyc.tpm labpl =Fragment size=4096 Cog=2) stnde-0 blocks# stripe width-0 blocks 110720 inodes, 52423
28、6Q blocks 262144 blocks (5.0030 reserved for the super user First data b1ack=0aximum tiIesysttm blacks=42946/2 9b160 block groupsblocks per group, 32768 fragmerrcs per group ai92 Inodes per group superblock backups stored on blocks;327CB, 9S3Q4, 163MO h J29376, 294912 p +05(000B1920O, 68436, 16O563Z, 26542OS,rtr i t i ng i node tables: dontCrcjiting journal (3276B blocks): doneWriting upcrblock ard f i lesyteri account! nginformation: doneThi S fi 11 esystem wH 11 be. autonat i cal 1 y checkedISO day, whichever can
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 建筑施工现场安全生产诊断方案
- 汽车零配件应急供货方案
- 技术创新贷款合同三篇
- 新能源项目EPC总实施方案
- 综合实践活动中的劳动教育方案
- 2024人工智能辅助医疗诊断系统研发合同
- 2024年国际货物买卖合同标的与债务承担
- 2024年企业综合管理平台定制与购买合同
- 2024年嘉兴智慧产业创新园高端酒店工程知识产权合同
- 2024年大型客机零部件采购与供应合同
- 多属性效用函数的理论多目标决策问题的非劣解课件
- 《过新年》教学设计
- 施乐打印机M225M228中文说明书
- 高中语文学科核心素养和语文教学课件
- 油气田腐蚀结垢与防垢技术课件
- 沪科版九年级物理 (电阻和变阻器)探究电路教育教学课件
- 永遇乐元宵(落日熔金)课件
- 道路工程施工便道施工方案全
- 创新创业基础(理工科版)创新小白实操2.0学习通超星课后章节答案期末考试题库2023年
- 内部审计工作手册
- 妇幼保健院产房运用PDCA循环降低经产妇阴道分娩会阴裂伤率品管圈成果汇报
评论
0/150
提交评论