bcachefs.md 1.3 KB

bcachefs

bcachefs ํŒŒ์ผ ์‹œ์Šคํ…œ/์žฅ์น˜๋ฅผ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค. device์™€ ๊ฐ™์€ ์ผ๋ถ€ ํ•˜์œ„ ๋ช…๋ น์—๋Š” ์ž์ฒด ์‚ฌ์šฉ ์„ค๋ช…์„œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋” ๋งŽ์€ ์ •๋ณด: https://bcachefs-docs.readthedocs.io/en/latest/index.html.

  • bcachefs๋กœ ํŒŒํ‹ฐ์…˜ ํฌ๋งท:

sudo bcachefs format {{๊ฒฝ๋กœ/๋Œ€์ƒ/ํŒŒํ‹ฐ์…˜}}

  • bcachefs ํŒŒ์ผ ์‹œ์Šคํ…œ ๋งˆ์šดํŠธ:

sudo bcachefs mount {{๊ฒฝ๋กœ/๋Œ€์ƒ/ํŒŒํ‹ฐ์…˜}} {{๊ฒฝ๋กœ/๋Œ€์ƒ/๋งˆ์šดํŠธํฌ์ธํŠธ}}

  • SSD๋ฅผ ์บ์‹œ๋กœ, HDD๋ฅผ ์žฅ๊ธฐ ์ €์žฅ์†Œ๋กœ ์‚ฌ์šฉํ•˜๋Š” RAID 0 ํŒŒ์ผ ์‹œ์Šคํ…œ ์ƒ์„ฑ:

sudo bcachefs format --label=ssd.ssd1 {{๊ฒฝ๋กœ/๋Œ€์ƒ/ssd/ํŒŒํ‹ฐ์…˜}} --label=hdd.hdd1 {{๊ฒฝ๋กœ/๋Œ€์ƒ/hdd/ํŒŒํ‹ฐ์…˜}} --replicas=1 --foreground_target=ssd --promote_target=ssd --background_target=hdd

  • ๋‹ค์ค‘ ์žฅ์น˜ ํŒŒ์ผ ์‹œ์Šคํ…œ ๋งˆ์šดํŠธ:

sudo bcachefs mount {{๊ฒฝ๋กœ/๋Œ€์ƒ/ํŒŒํ‹ฐ์…˜1}}:{{๊ฒฝ๋กœ/๋Œ€์ƒ/ํŒŒํ‹ฐ์…˜2}} {{๊ฒฝ๋กœ/๋Œ€์ƒ/๋งˆ์šดํŠธํฌ์ธํŠธ}}

  • ๋””์Šคํฌ ์‚ฌ์šฉ๋Ÿ‰ ํ‘œ์‹œ:

bcachefs fs usage --human-readable {{๊ฒฝ๋กœ/๋Œ€์ƒ/๋งˆ์šดํŠธํฌ์ธํŠธ}}

  • ํฌ๋งท ๋ฐ ๋งˆ์šดํŠธ ํ›„ ๋ณต์ œ๋ณธ ์„ค์ •:

sudo bcachefs set-fs-option --metadata_replicas={{2}} --data_replicas={{2}} {{๊ฒฝ๋กœ/๋Œ€์ƒ/ํŒŒํ‹ฐ์…˜}}

  • ๋ชจ๋“  ํŒŒ์ผ์ด ๋ณต์ œ๋˜๋„๋ก bcachefs ๊ฐ•์ œํ™”:

sudo bcachefs data rereplicate {{๊ฒฝ๋กœ/๋Œ€์ƒ/๋งˆ์šดํŠธํฌ์ธํŠธ}}

  • ๋„์›€๋ง ํ‘œ์‹œ:

bcachefs