Kab lus no piav qhia yuav ua li cas siv Terminal los tsim thiab tswj cov kab txaij RAID arrays hauv OS X, txij li El Capitan version ntawm Disk Utility tau raug tshem tawm ntawm nws lub peev xwm RAID.
Cov ntaub ntawv hauv kab lus no siv rau kev tsim RAID 0 (Striped) array siv Terminal hauv macOS Sierra (10.12) txog OS X Lion (10.7).
Hais txog Mac OS thiab Ntau Hom RAID
Txij li thaum nws tseem ntxov, Mac operating system tau txhawb ntau hom RAID siv AppleRAID software uas yog ib feem ntawm diskutil, cov cuab yeej hais kom ua siv rau formatting, faib, thiab kho cov khoom cia ntawm Mac.
Txog OS X El Capitan, RAID kev txhawb nqa tau tsim rau hauv Disk Utility app, uas koj tuaj yeem siv los tsim thiab tswj RAID arrays. Apple poob qhov kev txhawb nqa RAID hauv El Capitan version ntawm Disk Utility app tab sis khaws AppleRAID muaj rau cov neeg siv uas txaus siab siv Terminal thiab kab hais kom ua. Apple xa rov qab RAID tsim rau Disk Utility hauv macOS High Sierra.
Ua ntej koj pib
Siv Terminal los tsim RAID 0 array, tseem hu ua striped array, yog txheej txheem yooj yim uas tuaj yeem ua tau los ntawm txhua tus neeg siv Mac. Tsis muaj kev txawj tshwj xeeb tsim nyog, txawm hais tias koj tuaj yeem pom Terminal app txawv me ntsis yog tias koj tsis tau siv nws ua ntej.
Qhov tseem ceeb ntawm kev thaub qab
Striped arrays muab qhov nrawm nrawm, tab sis lawv kuj nce qhov ua tsis tiav. Ib qho kev ua tsis tiav ntawm ib qho kev tsav tsheb uas tsim cov kab txaij ua rau tag nrho RAID array ua tsis tiav. Tsis muaj txoj hauv kev zoo los rov qab tau cov ntaub ntawv los ntawm qhov ua tsis tiav striped array, uas txhais tau hais tias koj yuav tsum muaj cov txheej txheem thaub qab zoo uas koj tuaj yeem siv los kho cov ntaub ntawv yog tias tsis ua haujlwm ntawm RAID array tshwm sim.
Yuav Ua Li Cas Koj Yuav Tsum Tau
AppleRAID txhawb nqa striped (RAID 0), mirrored (RAID 1), thiab concatenated (spanning) hom RAID. Ua ntej koj tsim RAID 0 array, koj xav tau:
- Ob lossis ntau lub tsav uas tuaj yeem mob siab rau ua cov hlais hauv koj qhov RAID array.
- A thaub qab tam sim no. Tus txheej txheem ntawm kev tsim RAID 0 array eras tag nrho cov ntaub ntawv ntawm cov drives siv.
Koj tuaj yeem siv txhua yam tsav, suav nrog hard drives, SSDs, lossis USB flash drives. Nws yog ib lub tswv yim zoo rau cov tsav tsheb kom zoo ib yam, ob qho tib si loj thiab qauv, txawm hais tias qhov no tsis yog qhov yuav tsum tau nruj ntawm RAID 0.
Yog tias cov tsav uas koj tab tom npaj yuav siv tseem tsis tau teeb tsa ua ib lub ntim siv OS X Extended (Journaled) ua cov ntaub ntawv kaw lus, ua li ntawd. Txoj kev koj siv nws txawv nyob ntawm koj lub operating system:
Format a Mac's Drive Siv Disk Utility (OS X El Capitan lossis tom qab)
Format a Mac's Drive Siv Disk Utility (OS X Yosemite lossis ntxov dua)
Siv Terminal los tsim RAID 0 (Striped) Array
Qhov piv txwv no siv ob lub disks ua ntu ntawm RAID 0 array. Slices yog cov nomenclature siv los piav txog tus kheej ntim uas tsim cov ntsiab lus ntawm RAID array.
- Launch Terminal, nyob hauv Applications > Utilities.
-
Nkag mus rau cov lus txib hauv qab no ntawm qhov hais kom ua hauv Terminal. Koj tuaj yeem luam / paste cov lus txib kom ua kom cov txheej txheem yooj yim dua:
diskutil list
Qhov no ua rau Terminal tso saib tag nrho cov tsav txuas nrog koj Mac, nrog rau cov cim tsav uas koj xav tau thaum tsim RAID array. Koj cov drives raug tso tawm los ntawm cov ntaub ntawv nkag, feem ntau /dev/disk0 lossis /dev/disk1. Txhua tsav muaj nws tus kheej muab faib tso tawm, nrog rau qhov loj ntawm qhov muab faib thiab tus cim (lub npe).
Tus cim yuav tsis zoo ib yam li lub npe koj siv thaum koj formatted koj drives. Qhov piv txwv no siv ob lub npe hu ua Slice1 thiab Slice2. Hauv daim duab, koj tuaj yeem pom tias Slice1 tus cim yog disk2s2, thiab Slice2's yog disk3s2. Nws yog tus cim uas koj siv los tsim RAID 0 array.
Koj tus lej cim yuav txawv, yog li nco ntsoov hloov tus lej cim piv txwv hauv cov lus txib nrog qhov tseeb rau koj Mac.
-
Cov lus txib peb yuav siv yog nyob rau hauv cov qauv hauv qab no:
Diskutil appleRAID tsim stripe NameofStripedArray Fileformat DiskIdentifiers
NameofStripedArray yog lub npe ntawm cov array uas yuav tshwm sim thaum nws tau teeb tsa ntawm koj lub Mac lub desktop.
FileFormat yog hom ntawv uas yuav siv thaum tsim cov kab txaij. Rau cov neeg siv Mac, qhov no yuav zoo li hfs+.
DiskIdentifers yog tus cim npe uas koj pom siv cov lus txib diskutil.
-
Nkag mus rau cov lus txib hauv qab no ntawm Terminal kom sai. Nco ntsoov hloov tus cim tsav kom haum rau koj qhov xwm txheej tshwj xeeb, nrog rau lub npe koj xav siv rau RAID array.
Diskutil appleRAID tsim kab txaij FastFred HFS+ disk2s2 disk3s2
-
Terminal qhia cov txheej txheem ntawm kev tsim cov array. Tom qab lub sijhawm luv luv, RAID array tshiab nce ntawm koj lub desktop, thiab Terminal qhia cov ntawv "Tiav RAID ua haujlwm." Koj tau npaj txhij los pib siv koj cov kab txaij tshiab nrawm nrawm RAID.
Yuav ua li cas rho tawm ib kab RAID Array Siv Terminal
Thaum qee lub sijhawm, koj yuav tsum tau tshem tawm cov array. Ib zaug ntxiv, koj siv Terminal app ua ke nrog cov cuab yeej diskutil cov kab hais kom tshem tawm RAID 0 array thiab xa rov qab txhua daim RAID rau siv raws li ib tus neeg ntim ntawm koj Mac.
Kev rho tawm koj cov kab txaij ua rau tag nrho cov ntaub ntawv ntawm RAID raug tshem tawm. Xyuas kom tseeb tias koj muaj qhov thaub qab ua ntej yuav mus.
-
Launch the Terminal app nyob ntawm Applications > Utilities.
Qhov piv txwv rau kev tsim RAID 0 array ua rau RAID array npe FastFred. Lub npe ntawm koj RAID yuav txawv.
-
Ntawm lub davhlau ya nyob twg, nkag mus rau hauv qab no, nco ntsoov hloov FastFred nrog lub npe ntawm kab txaij RAID uas koj xav rho tawm.
Diskutil AppleRAID tshem tawm FastFred
-
Cov lus txib tshem tawm unmounts RAID 0 array, siv RAID offline, thiab rhuav tshem RAID rau hauv nws cov ntsiab lus.
Dab tsi tshwm sim kuj tseem ceeb. Tus neeg tsav tsheb uas tsim cov array tsis tau remounted los yog formatted kom zoo. Siv Disk Utility los hloov kho cov tsav tsheb kom lawv rov siv tau dua ntawm koj lub Mac.