Network/RaidArray.md
... ...
@@ -8,13 +8,10 @@ Current configuration of Cyclops Raid Array
8 8
9 9
| Device | Bracket | Description | Serial | Firmware | Warranty Until |
10 10
| :------ | ------- | --------------------------- | ---------------- | ----------- | ------------------- |
11
-| sdf | 1 | DT01ACA300 3TB | `84QE6EHGS TZ6` | `MX6OABB0` |   |
12
-| sdd | 4 | DT01ACA300 3TB | `84QDMZ9GS TZ6` | `MX6OABB0`  |   |
13
-| sdh | 5 | DT01ACA300 3TB | `Z4V4DZVGS TZ6` | `MX6OABB0` | Scan 2017-11-04 RTB |
14
-| sde | 7 | HDWG460UZSVA 6TB | `71A0A13QFA4H ` | `0601` | Tosh ~2025-05-01 |
15
-| sdg | 8 | HDWG460UZSVA 6TB | `91W0A06JFA4H ` | `0601` | Tosh ~2025-05-01 |
16
-| sd_ | 2 | ST6000VN006 6TB | `ZVX02R6K` | `SC60` | Seagate 2027-09-26 |
17
-| sd_ | 3 | ST6000VN006 6TB | `ZVY05TKY` | `SC60` | Seagate 2027-09-26 |
11
+| sdc | 7 | HDWG460UZSVA 6TB | `71A0A13QFA4H ` | `0601` | Tosh ~2025-05-01 |
12
+| sdf | 8 | HDWG460UZSVA 6TB | `91W0A06JFA4H ` | `0601` | Tosh ~2025-05-01 |
13
+| sdh | 2 | ST6000VN006 6TB | `ZVX02R6K` | `SC60` | Seagate 2027-09-26 |
14
+| sdi | 3 | ST6000VN006 6TB | `ZVY05TKY` | `SC60` | Seagate 2027-09-26 |
18 15
19 16
20 17
# Backup Drives
... ...
@@ -26,7 +23,10 @@ Current configuration of Cyclops Raid Array
26 23
| sd_ | backup1, off-site | HD204UI 2TB |   |   |   |
27 24
| sd_ | backup500, off-site | ?? 500GB | ?? |   |   |
28 25
| sd_ | backup300, off-site, usb | `STBV3000200` 3TB | ` NA4KE2M3 ` |   | |
29
-| sdh | in chassis | HD203WI 2TB | `#S1UYJ1CZ317063`[1][7] | ` 1AN10003 ` |   |
26
+| sd_ | 6 | HD203WI 2TB | `#S1UYJ1CZ317063`[1][7] | ` 1AN10003 ` |   |
27
+| sd_ | 1 | DT01ACA300 3TB | `84QE6EHGS TZ6` | `MX6OABB0` |   |
28
+| sd_ | 4 | DT01ACA300 3TB | `84QDMZ9GS TZ6` | `MX6OABB0`  |   |
29
+| sd_ | 5 | DT01ACA300 3TB | `Z4V4DZVGS TZ6` | `MX6OABB0` | Scan 2017-11-04 RTB |
30 30
31 31
32 32
# Failed Drives
... ...
@@ -61,7 +61,8 @@ Set 70decisecond read and write error recovery control
61 61
smartctl -l scterc,70,70 /dev/sdX
62 62
63 63
64
-# Removing and Replacing a Failed Disk
64
+# mdadm + LVM
65
+## Removing and Replacing a Failed Disk
65 66
66 67
<http://www.ducea.com/2009/03/08/mdadm-cheat-sheet/>
67 68
... ...
@@ -72,11 +73,21 @@ mdadm --add /dev/md6 /dev/sdX  # add replacement disk
72 73
sysctl dev.raid.speed_limit_max=51200  # limit speed to ~50MB/sec
73 74
```
74 75
75
-# Extending the filesystem
76
+## Extending the filesystem
76 77
```bash
77 78
lvextend --resizefs --size +256GB /dev/vg-md6/media
78 79
```
79 80
81
+# btrfs
82
+## Disabling Copy On Write
83
+Existing files must be **copied** in to a nodatacow directory.
84
+
85
+```
86
+mkdir /mnt/systems/vms
87
+chattr +C /mnt/systems/vms
88
+rsync -av /mnt/systems/vms-old/ /mnt/systems/vms/
89
+```
90
+
80 91
# Log
81 92
82 93
... ...
@@ -87,6 +98,7 @@ lvextend --resizefs --size +256GB /dev/vg-md6/media
87 98
**2021-12-01**: One WD 3TB failed
88 99
**2022-05-10**: Added 2x Toshiba 6TB (half-capacity)
89 100
**2024-10-04**: Added 2x Seagate Ironwolf 6TB
101
+**2024-11-14**: Migrated to btrfs RAID10 with 4×6TB disks, see [[Network/RaidUpgrade2024]]
90 102
91 103
[10]: https://myapps.taec.toshiba.com/myapps/admin/jsp/webrma/addRequest1NoLogin.jsp?Action=NEW
92 104
[11]: https://www.storrepair.com/toshiba_products