Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
C-D-Lewis committed Sep 18, 2024
1 parent 609f34a commit 1ea3111
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 32 deletions.
47 changes: 47 additions & 0 deletions docs/RAID-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ sudo chown -R pi /mnt/raid1
```

# fstab
Get UUID:
```
sudo blkid /dev/mdX
```
```
sudo nano /etc/fstab
```
Expand All @@ -68,3 +72,46 @@ sudo crontab -e
```
@reboot python3 /home/pi/code/node-microservices/tools/cirroc_oled/main.py > /home/pi/cirroc_oled.log
```

# Move to new system

1. Check array is clean

```
sudo mdadm --detail /dev/mdX
```

2. Stop the array / shutdown

```
sudo mdadm --stop /dev/mdX
```

3. Move drives to new system

4. Try a scan

```
sudo mdadm --assemble --scan
```

or check it was auto-found:

```
cat /proc/mdstat
```

5. Mount and check data

```
sudo mkdir /mnt/raid1
sudo mount /dev/mdX /mnt/raid1
```

6. Add to mdadm config

```
sudo mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf
```

7. Update fstab (see above)
32 changes: 0 additions & 32 deletions docs/SMB-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,3 @@ sudo smbpasswd -a pi
```
sudo systemctl restart smbd
```

# If issues with USB/SATA disconnecting (in dmesg)

Enable quirks mode (seems to help) over using UAS mode:

```
sudo nano /boot/cmdline.txt
```

```
usb-storage.quirks=aaaa:bbbb:u
```

Where `aaaa` is the `idVendor` for your device and `bbbb` is the `idProduct`, added to the start of the file. These are found in `dmesg` when the drive is plugged in with the USB > SSD cable:

```
[ 2.488234] usb 2-2.3: new SuperSpeed USB device number 3 using xhci_hcd
[ 2.513780] usb 2-2.3: New USB device found, idVendor=174c, idProduct=1153, bcdDevice= 1.00
[ 2.513839] usb 2-2.3: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 2.513868] usb 2-2.3: Product: Ugreen Storage Device
[ 2.513891] usb 2-2.3: Manufacturer: Ugreen
[ 2.513912] usb 2-2.3: SerialNumber: 26A1EE833C9C
```

Quirks mode can be confirmed with `dmesg | grep usb-storage`:

```
[ 2.517433] usb 2-2.3: UAS is ignored for this device, using usb-storage instead
[ 2.517588] usb 2-2.3: UAS is ignored for this device, using usb-storage instead
[ 2.517619] usb-storage 2-2.3:1.0: USB Mass Storage device detected
[ 2.518212] usb-storage 2-2.3:1.0: Quirks match for vid 174c pid 1153: 800000
```
32 changes: 32 additions & 0 deletions docs/SSD-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,35 @@ sudo chmod a+rwx /mnt/usb/raid1
```
sudo shutdown -r now
```

# If issues with USB/SATA disconnecting (in dmesg)

Enable quirks mode (seems to help) over using UAS mode:

```
sudo nano /boot/firmware/cmdline.txt
```

```
usb-storage.quirks=aaaa:bbbb:u
```

Where `aaaa` is the `idVendor` for your device and `bbbb` is the `idProduct`, added to the start of the file. These are found in `dmesg` when the drive is plugged in with the USB > SSD cable:

```
[ 2.488234] usb 2-2.3: new SuperSpeed USB device number 3 using xhci_hcd
[ 2.513780] usb 2-2.3: New USB device found, idVendor=174c, idProduct=1153, bcdDevice= 1.00
[ 2.513839] usb 2-2.3: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 2.513868] usb 2-2.3: Product: Ugreen Storage Device
[ 2.513891] usb 2-2.3: Manufacturer: Ugreen
[ 2.513912] usb 2-2.3: SerialNumber: 26A1EE833C9C
```

Quirks mode can be confirmed with `dmesg | grep usb-storage`:

```
[ 2.517433] usb 2-2.3: UAS is ignored for this device, using usb-storage instead
[ 2.517588] usb 2-2.3: UAS is ignored for this device, using usb-storage instead
[ 2.517619] usb-storage 2-2.3:1.0: USB Mass Storage device detected
[ 2.518212] usb-storage 2-2.3:1.0: Quirks match for vid 174c pid 1153: 800000
```

0 comments on commit 1ea3111

Please sign in to comment.