# raid 1 ์์ฑ
mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdd1 /dev/sde1
# yes
y
# Resync Status ๊ฐ 100% ๊ฐ ๋ ๋๊น์ง ๋๊ธฐ
mdadm --detail /dev/md1
# ์ ์์ฑ ๋์๋์ง ํ์ธ
cat /proc/mdstat
# ํฌ๋ฉงํ
mkfs.ext4 /dev/md1
# mount ํ ํด๋ ์์ฑ
mkdir /data2
# raid 1 ๋์คํฌ mount
mount /dev/md1 /data2
# ๋ง์ดํธ ๋ด์ฉ ํ์ธ
df -Th
#lost+found ๊ฐ ์๋๊ฒ์ผ๋ก mount๊ฐ ๋์ด์๋ค๋ ๊ฒ์ ํ์ธ.
cd /data2
# ํ์ผ ์ฝ๊ณ ์ฐ๊ธฐ ์ ๋๋๊ฒ ํ์ธ
touch aa;ls;rm -rf aa;ls;
728x90
':: Linux ๐ฉ > Linux_basic' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฆฌ๋ ์ค] [AWK ๋ช ๋ น์ด] (0) | 2021.05.27 |
---|---|
[๋ฆฌ๋ ์ค] [์นผ๋ฆฌ ๋ฆฌ๋ ์ค(KALI LINUX)] (0) | 2021.05.26 |
[๋ฆฌ๋ ์ค] [Raid 0] (0) | 2021.05.19 |
[๋ฆฌ๋ ์ค] [at , cron] (0) | 2021.05.18 |
[๋ฆฌ๋ ์ค1] 5์ผ์ฐจ [grep, -E ์ต์ , ์ต์ ๋ค] (0) | 2021.04.27 |
๋๊ธ