Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raid1 冷备份 #73

Open
tiancheng91 opened this issue Oct 23, 2023 · 0 comments
Open

raid1 冷备份 #73

tiancheng91 opened this issue Oct 23, 2023 · 0 comments

Comments

@tiancheng91
Copy link
Owner

tiancheng91 commented Oct 23, 2023

md wirte-mostly

  1. 本地磁盘构建raid0, 用于多磁盘并行加速
sudo mdadm --create --verbose /dev/md0 --level=0 --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sdd
  1. 本地md0 + 远程磁盘组raid1 用于备份
sudo mdadm --create --verbose --assume-clean /dev/md1 --level=1 --raid-devices=2 /dev/md0 --write-mostly /dev/sde
  1. 优化raid1 写入性能(不需要等待该磁盘写入成功)
sudo mdadm --create --verbose --assume-clean /dev/md1 --level=1 --raid-devices=2  --bitmap=internal  /dev/md0 --write-mostly --write-behind /dev/sde 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant