ssd raid5 migration
[gnt-info] / doc / 2021-03-04-ssd-raid5.txt
1 root@lib24:~# mdadm --create /dev/md0 --level=5 --raid-devices=4 /dev/sd{a,b,c,d}
2
3 root@lib24:~# pvcreate /dev/md0
4   Physical volume "/dev/md0" successfully created.
5
6 root@lib24:~# vgcreate ffzgvg /dev/md0
7   Volume group "ffzgvg" successfully created
8
9 root@lib24:/srv/gnt-info/doc# sysctl dev.raid.speed_limit_max
10 dev.raid.speed_limit_max = 200000
11 root@lib24:/srv/gnt-info/doc# sysctl dev.raid.speed_limit_max=500000
12 dev.raid.speed_limit_max = 500000
13
14 root@lib26:~# cd /sys/fs/bcache/*-*-*
15
16 root@lib26:/sys/fs/bcache/3b03ccb9-c932-44b6-95ad-791b91da6186# echo 1 > stop
17
18 root@lib26:/sys/fs/bcache/3b03ccb9-c932-44b6-95ad-791b91da6186# wipefs -a /dev/sde3
19 /dev/sde3: 16 bytes were erased at offset 0x00001018 (bcache): c6 85 73 f6 4e 1a 45 ca 82 65 f5 7f 48 ba 6d 81
20
21 root@lib26:~# gdisk /dev/sde
22
23 Command (? for help): t
24 Partition number (1-3): 3
25 Current type is 'Linux filesystem'
26 Hex code or GUID (L to show codes, Enter = 8300): 8e00
27 Changed type of partition to 'Linux LVM'
28
29 Command (? for help): wq
30
31 root@lib26:~# pvcreate /dev/sde3
32   Physical volume "/dev/sde3" successfully created.
33
34 root@lib26:~# vgcreate ssd /dev/sde3
35   Volume group "ssd" successfully created
36
37
38
39