如果你只是想应付一下操作系统的课程,劝你最好别学,或者说不要指望能用的怎么样。
-Es/dev/sdh</P> [root@fc5mdadm-2.6.3]#
7.可分区的RAID设备
假如想对撑持分区的MD设备(Partitionableraidarray)举行分区,必要在创立时利用/dev/md_d0来替换后面的/dev/md0。创立阵列是经由过程--auto=mdp(大概其缩写-ap)参数指定。
[root@fc5mdadm-2.6.3]#./mdadm-Cv--auto=mdp/dev/md_d0-l5-n6/dev/sd[b-g]-x1/dev/sdh
mdadm:layoutdefaultstoleft-symmetric
mdadm:chunksizedefaultsto64K
mdadm:sizesetto1048512K
mdadm:array/dev/md_d0started.
[root@fc5mdadm-2.6.3]#fdisk/dev/md_d0
DevicecontainsneitheravalidDOSpartitiontable,norSun,SGIorOSFdisklabel
BuildinganewDOSdisklabel.Changeswillremaininmemoryonly,
untilyoudecidetowritethem.Afterthat,ofcourse,theprevious
contentwontberecoverable.
Thenumberofcylindersforthisdiskissetto1310640.
Thereisnothingwrongwiththat,butthisislargerthan1024,
andcouldincertainsetupscauseproblemswith:
1)softwarethatrunsatboottime(e.g.,oldversionsofLILO)
2)bootingandpartitioningsoftwarefromotherOSs
(e.g.,DOSFDISK,OS/2FDISK)
Warning:invalidflag0x0000ofpartitiontable4willbecorrectedbyw(rite)
Command(mforhelp):n
Commandaction
eextended
pprimarypartition(1-4)
p
Partitionnumber(1-4):1
Firstcylinder(1-1310640,default1):1
Usingdefaultvalue1
Lastcylinderor+sizeor+sizeMor+sizeK(1-1310640,default1310640):+1024M
Command(mforhelp):n
Commandaction
eextended
pprimarypartition(1-4)
p
Partitionnumber(1-4):2
Firstcylinder(250002-1310640,default250002):250002
Usingdefaultvalue250002
Lastcylinderor+sizeor+sizeMor+sizeK(250002-1310640,default1310640):1310640
Usingdefaultvalue1310640
Command(mforhelp):w
Thepartitiontablehasbeenaltered!
Callingioctl()tore-readpartitiontable.
Syncingdisks.
[root@fc5mdadm-2.6.3]#fdisk-l/dev/md_d0
Disk/dev/md_d0:5368MB,5368381440bytes
2heads,4sectors/track,1310640cylinders
Units=cylindersof8*512=4096bytes
DeviceBootStartEndBlocksIdSystem
/dev/md_d0p11250001100000283Linux
/dev/md_d0p22500021310640424255683Linux
MD设备撑持两种块设备,
上一页1234567下一页
尽我能力帮助他人,在帮助他人的同时你会深刻巩固知识。 |