Jump to content

Apple RAID: Difference between revisions

From Parasol
No edit summary
No edit summary
 
Line 8: Line 8:
===============================================================================<br />
===============================================================================<br />
Name:                 ZOE16_SLA08_8TB_Festplatte_1<br />
Name:                 ZOE16_SLA08_8TB_Festplatte_1<br />
Unique ID:            3512CA1E-2C18-4335-878D-59CDD03BD991<br />
Unique ID:            <font style="background-color: #F2F5A9">3512CA1E-2C18-4335-878D-59CDD03BD991</font><br />
Type:                 Mirror<br />
Type:                 Mirror<br />
Status:               Online<br />
Status:               Online<br />
Size:                 4.0 TB (4000443039744 Bytes)<br />
Size:                 4.0 TB (4000443039744 Bytes)<br />
Rebuild:              manual<br />
Rebuild:              manual<br />
Device Node:          <font style="background-color: #A9F5F2">disk4</font><br />
Device Node:          disk4<br />
<nowiki>-------------------------------------------------------------------------------</nowiki><br />
<nowiki>-------------------------------------------------------------------------------</nowiki><br />
<nowiki>#</nowiki>  DevNode   UUID                                  Status     Size<br />
<nowiki>#</nowiki>  DevNode   UUID                                  Status     Size<br />
<nowiki>-------------------------------------------------------------------------------</nowiki><br />
<nowiki>-------------------------------------------------------------------------------</nowiki><br />
disk2s2   <font style="background-color: #F2F5A9">C28DAD35-F8AC-41F4-BD5C-922656C4C3F2</font>  Online     4000443039744<br />
0  <font style="background-color: #A9F5F2">disk2</font>s2   C28DAD35-F8AC-41F4-BD5C-922656C4C3F2  Online     4000443039744<br />
disk3s2   <font style="background-color: #A9F5A9">7F1E990E-A95B-4E1E-8FE5-941DF9D6A5BE</font>  Online     4000443039744<br />
1  <font style="background-color: #A9F5F2">disk3</font>s2   7F1E990E-A95B-4E1E-8FE5-941DF9D6A5BE  Online     4000443039744<br />




  $ diskutil appleraid remove <font style="background-color: #F2F5A9">C28DAD35-F8AC-41F4-BD5C-922656C4C3F2</font> <font style="background-color: #A9F5F2">disk4</font>
  $ diskutil appleraid delete <font style="background-color: #F2F5A9">3512CA1E-2C18-4335-878D-59CDD03BD991</font>


Started RAID operation on disk4 ZOE16_SLA08_8TB_Festplatte_1<br />
any output<br />
Removing disk from RAID<br />
Changing the disk type<br />
Finished RAID operation on disk4 ZOE16_SLA08_8TB_Festplatte_1<br />
 
 
$ diskutil appleraid remove <font style="background-color: #A9F5A9">7F1E990E-A95B-4E1E-8FE5-941DF9D6A5BE</font> <font style="background-color: #A9F5F2">disk4</font>
 
Started RAID operation on disk4 ZOE16_SLA08_8TB_Festplatte_1<br />
Removing disk from RAID<br />
Changing the disk type<br />
Finished RAID operation on disk4 ZOE16_SLA08_8TB_Festplatte_1<br />




Line 49: Line 38:




  $ diskutil appleraid create <font style="background-color: #A9F5A9">stripe</font> <font style="background-color: #F2F5A9">ZOE16_SLA08_HDD_02</font> JHFS+ disk2 disk3
  $ diskutil appleraid create <font style="background-color: #A9F5A9">stripe</font> <font style="background-color: #F2F5A9">ZOE16_SLA08_HDD_02</font> JHFS+ <font style="background-color: #A9F5F2">disk2</font> <font style="background-color: #A9F5F2">disk3</font>


Started RAID operation<br />
Started RAID operation<br />
Line 70: Line 59:




  $ sudo diskutil cs createLVG StorageLVG disk4
 
$ diskutil appleraid list
 
...<br/ >
Device Node:          <font style="background-color: #F5D0A9">disk4</font><br />
...<br/ >
 
 
  $ sudo diskutil cs createLVG StorageLVG <font style="background-color: #F5D0A9">disk4</font>


Password:<br />
Password:<br />
Line 79: Line 76:
Switching disk4 to Core Storage<br />
Switching disk4 to Core Storage<br />
Waiting for Logical Volume Group to appear<br />
Waiting for Logical Volume Group to appear<br />
Discovered new Logical Volume Group "B55EC667-7438-42EF-A011-7AB8D4F6E365"<br />
Discovered new Logical Volume Group "<font style="background-color: #BCF5A9">B55EC667-7438-42EF-A011-7AB8D4F6E365</font>"<br />
Core Storage LVG UUID: B55EC667-7438-42EF-A011-7AB8D4F6E365<br />
Core Storage LVG UUID: B55EC667-7438-42EF-A011-7AB8D4F6E365<br />
Finished CoreStorage operation<br />
Finished CoreStorage operation<br />




  $ sudo diskutil cs createLV B55EC667-7438-42EF-A011-7AB8D4F6E365 jhfs+ ZOE16_SLA08_HDD_02 100% -stdinpassphrase
  $ sudo diskutil cs createLV <font style="background-color: #BCF5A9">B55EC667-7438-42EF-A011-7AB8D4F6E365</font> jhfs+ <font style="background-color: #F2F5A9">ZOE16_SLA08_HDD_02</font> 100% -stdinpassphrase


Passphrase for new volume:<br />
Passphrase for new volume:<br />

Latest revision as of 08:00, 20 September 2016

Apple, RAID, Mirror, Stripe, RAID1, RAID0

RAID löschen

[edit]
$ diskutil appleraid list

AppleRAID sets (1 found)
===============================================================================
Name:                 ZOE16_SLA08_8TB_Festplatte_1
Unique ID:            3512CA1E-2C18-4335-878D-59CDD03BD991
Type:                 Mirror
Status:               Online
Size:                 4.0 TB (4000443039744 Bytes)
Rebuild:              manual
Device Node:          disk4
-------------------------------------------------------------------------------
#  DevNode   UUID                                  Status     Size
-------------------------------------------------------------------------------
disk2s2   C28DAD35-F8AC-41F4-BD5C-922656C4C3F2  Online     4000443039744
disk3s2   7F1E990E-A95B-4E1E-8FE5-941DF9D6A5BE  Online     4000443039744


$ diskutil appleraid delete 3512CA1E-2C18-4335-878D-59CDD03BD991

any output


$ diskutil appleraid list

No AppleRAID sets found


RAID erstellen

[edit]

RAID Level: stripe oder mirror
RAID-Name: z.B. ZOE16_SLA08_HDD_02


$ diskutil appleraid create stripe ZOE16_SLA08_HDD_02 JHFS+ disk2 disk3

Started RAID operation
Unmounting proposed new member disk2
Unmounting proposed new member disk3
Repartitioning disk2 so it can be in a RAID set
Unmounting disk
Creating the partition map
Using disk2s2 as a data slice
Repartitioning disk3 so it can be in a RAID set
Unmounting disk
Creating the partition map
Using disk3s2 as a data slice
Creating a RAID set
Bringing the RAID partitions online
Waiting for the new RAID to spin up "17E08355-1D72-4C82-BF7E-4A0B618E4E76"
Initialized /dev/rdisk4 as a 7 TB case-insensitive HFS Plus volume with a 524288k journal
Mounting disk
Finished RAID operation


$ diskutil appleraid list

...
Device Node:          disk4
...


$ sudo diskutil cs createLVG StorageLVG disk4

Password:
Started CoreStorage operation
Unmounting AppleRAID set at disk4
Adding disk4 to Logical Volume Group
Creating Core Storage Logical Volume Group
Switching disk4 to Core Storage
Waiting for Logical Volume Group to appear
Discovered new Logical Volume Group "B55EC667-7438-42EF-A011-7AB8D4F6E365"
Core Storage LVG UUID: B55EC667-7438-42EF-A011-7AB8D4F6E365
Finished CoreStorage operation


$ sudo diskutil cs createLV B55EC667-7438-42EF-A011-7AB8D4F6E365 jhfs+ ZOE16_SLA08_HDD_02 100% -stdinpassphrase

Passphrase for new volume:
Started CoreStorage operation
Waiting for Logical Volume to appear
Formatting file system for Logical Volume
Initialized /dev/rdisk5 as a 7 TB case-insensitive HFS Plus volume with a 524288k journal
Mounting disk
Core Storage LV UUID: 791524A7-C562-44A5-9FA7-48A8D5968873
Core Storage disk: disk5
Finished CoreStorage operation