This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
public:techstuff:raid [2012/08/21 14:20] – external edit 127.0.0.1 | public:techstuff:raid [2020/04/25 13:05] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 43: | Line 43: | ||
===== Optimizing the Filesystem ===== | ===== Optimizing the Filesystem ===== | ||
+ | |||
+ | Note: this only applies to striping such as raid 0, 5, 6. | ||
To ensure maximum speeds from the array do the following. | To ensure maximum speeds from the array do the following. | ||
Line 54: | Line 56: | ||
sudo mdadm --detail <raid device> | sudo mdadm --detail <raid device> | ||
- | * Next visit [[http://busybox.net/~aldot/mkfs_stride.html|this]] website and enter the above details | + | * https://gryzli.info/2015/02/ |
+ | * Stride size = [RAID chunk size] / [Filesystem block size] | ||
+ | * Stripe width = [ Stride size ] * [ Number of data-bearing disks] | ||
- | | + | |
===== Adding drive to Raid Array with GPT Partiton ===== | ===== Adding drive to Raid Array with GPT Partiton ===== | ||
Line 64: | Line 68: | ||
< | < | ||
$ parted /dev/sdx | $ parted /dev/sdx | ||
- | (parted) mkpart primary | + | (parted) mklabel gpt |
+ | (parted) mkpart primary | ||
(parted) set 1 bios_grub on | (parted) set 1 bios_grub on | ||
- | (parted) mkpart primary | + | (parted) mkpart primary |
(parted) print free | (parted) print free | ||
Model: ATA WDC WD20EARX-00Z (scsi) | Model: ATA WDC WD20EARX-00Z (scsi) | ||
Line 83: | Line 88: | ||
< | < | ||
- | $ grub-install /dev/sdx | + | $ grub-install |
Installation finished. No error reported. | Installation finished. No error reported. | ||
</ | </ | ||
Line 209: | Line 214: | ||
grub-setup --verbose --directory=/ | grub-setup --verbose --directory=/ | ||
+ | |||
+ | ==== Speed up rebuid ==== | ||
+ | |||
+ | * Increase the target sync speed when the array is in use.< | ||
+ | |||
+ | * Increase the read ahead.< | ||
+ | |||
+ | * Increase the cache size to 32MiB< | ||
+ | |||
+ | ==== Bugs ==== | ||
+ | |||
+ | * When resizing some arrays you may get < | ||
+ | [ 4780.597961] md: couldn' |