{"id":106149,"date":"2022-12-18T21:36:39","date_gmt":"2022-12-18T19:36:39","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/v-yadro-linux-6-2-vojdut-uluchsheniya-raid5-6-v-btrfs"},"modified":"2022-12-18T21:36:39","modified_gmt":"2022-12-18T19:36:39","slug":"v-yadro-linux-6-2-vojdut-uluchsheniya-raid5-6-v-btrfs","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sq\/blog\/news\/v-yadro-linux-6-2-vojdut-uluchsheniya-raid5-6-v-btrfs","title":{"rendered":"P\u00ebrmir\u00ebsime RAID5\/6 n\u00eb Btrfs do t\u00eb p\u00ebrfshihen n\u00eb kernelin Linux 6.2","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>P\u00ebr aktivizimin e kernelit Linux 6.2, jan\u00eb propozuar p\u00ebrmir\u00ebsime Btrfs q\u00eb lidhen me rregullimin e problematik\u00ebs \"write hole\" n\u00eb implementimin e RAID 5\/6. Thelbi i problemit \u00ebsht\u00eb se, n\u00ebse ndodh nj\u00eb p\u00ebrplasje gjat\u00eb shkrimit, fillimisht \u00ebsht\u00eb e pamundur t\u00eb kuptohet se cilat blloqe n\u00eb cilin nga pajisjet RAID jan\u00eb regjistruar sakt\u00eb, dhe n\u00eb cilat regjistrimi nuk \u00ebsht\u00eb p\u00ebrfunduar. N\u00eb rastin e p\u00ebrpjekjes p\u00ebr t\u00eb rikuperuar RAID n\u00eb nj\u00eb situat\u00eb t\u00eb till\u00eb, mund t\u00eb ndodhi shkat\u00ebrrimi i blloqeve q\u00eb p\u00ebrkojn\u00eb me blloqet e pa regjistruara, p\u00ebr shkak se gjendja e blloqeve RAID \u00ebsht\u00eb jasht\u00eb sinkronizimi. Ky problem ndodh n\u00eb \u00e7do grup RAID1\/5\/6 ku nuk jan\u00eb marr\u00eb masa speciale p\u00ebr t\u00eb luftuar efektin e till\u00eb.    <\/p>\n<p>N\u00eb implementimin e RAID, si\u00e7 \u00ebsht\u00eb RAID1 n\u00eb btrfs, ky problem zgjidhet duke p\u00ebrdorur kontrollet e shumave n\u00eb t\u00eb dyja kopjet; n\u00eb rast t\u00eb mos p\u00ebrputhjes, t\u00eb dh\u00ebnat thjesht rindizen nga kopja e dyt\u00eb. Ky qasje gjithashtu funksionon n\u00ebse ndonj\u00eb pajisje fillon t\u00eb jap\u00eb t\u00eb dh\u00ebna t\u00eb pa sakta n\u00eb vend t\u00eb nj\u00eb d\u00ebshtimi t\u00eb plot\u00eb.    <\/p>\n<p>Megjithat\u00eb, n\u00eb rastin e RAID5\/6, sistemi i skedar\u00ebve nuk ruan kontrollet e shumave p\u00ebr blloqet e paritetit: n\u00eb situat\u00ebn normale, sakt\u00ebsia e blloqeve verifikohet nga fakti se t\u00eb gjitha jan\u00eb t\u00eb pajisura me nj\u00eb shum\u00eb kontrolli, dhe blloku i paritetit mund t\u00eb rindizet nga t\u00eb dh\u00ebnat. Megjithat\u00eb, n\u00eb rastin e shkrimit t\u00eb pjes\u00ebmarr\u00eb, ky qasje n\u00eb disa situata mund t\u00eb mos funksionoj\u00eb. N\u00eb k\u00ebt\u00eb rast, gjat\u00eb rikuperimit t\u00eb masivit, nuk \u00ebsht\u00eb e p\u00ebrjashtuar q\u00eb blloqet e prekura nga nj\u00eb shkrim t\u00eb pap\u00ebrfunduar t\u00eb rikuperohen gabim.    <\/p>\n<p>N\u00eb rastin e btrfs, ky problem \u00ebsht\u00eb m\u00eb i theksuar kur shkrimi i prodhuar \u00ebsht\u00eb m\u00eb i vog\u00ebl se strippi. N\u00eb k\u00ebt\u00eb rast, sistemi i skedar\u00ebve duhet t\u00eb kryej\u00eb operacionin e lexim-shkruar-modifikim (read-modify-write, RMW). N\u00ebse gjat\u00eb k\u00ebtij procesi hasen blloqe me shkrim t\u00eb pap\u00ebrfunduar, operacioni RMW mund t\u00eb shkaktoj\u00eb d\u00ebmtime q\u00eb nuk do t\u00eb evidentohen, pavar\u00ebsisht kontrollit t\u00eb shumave. Zhvilluesit kan\u00eb b\u00ebr\u00eb ndryshime n\u00eb m\u00ebnyr\u00eb q\u00eb operacioni RMW t\u00eb verifikoj\u00eb shum\u00ebn e kontrollit t\u00eb blloqeve para se t\u00eb kryej\u00eb k\u00ebt\u00eb operacion, dhe n\u00eb rast nevoje p\u00ebr rikuperimin e t\u00eb dh\u00ebnave, t\u00eb kryej\u00eb kontrollimin e shumave t\u00eb kontrollit pas shkrimit. Fatkeq\u00ebsisht, n\u00eb situat\u00ebn me shkrimin e nj\u00eb strippi t\u00eb pap\u00ebrfunduar (RMW), kjo \u00e7on n\u00eb kosto t\u00eb shtuar p\u00ebr llogaritjen e shumave t\u00eb kontrollit, megjithat\u00eb ndihmon shum\u00eb n\u00eb rritjen e aft\u00ebsis\u00eb p\u00ebr t\u00eb qen\u00eb t\u00eb besuesh\u00ebm. P\u00ebr RAID6, kjo logjik\u00eb ende nuk \u00ebsht\u00eb e gatshme, megjithat\u00eb p\u00ebr nj\u00eb d\u00ebshtim t\u00eb till\u00eb n\u00eb RAID6 \u00ebsht\u00eb e nevojshme q\u00eb shkrimi t\u00eb d\u00ebshtoj\u00eb n\u00eb dy pajisje menj\u00ebher\u00eb, q\u00eb \u00ebsht\u00eb m\u00eb pak e mundshme.    <\/p>\n<p>Gjithashtu, mund t\u00eb theksohen rekomandimet p\u00ebr p\u00ebrdorimin e RAID5\/6 nga zhvilluesit, t\u00eb cilat p\u00ebrmbledhin se n\u00eb Btrfs profili i ruajtjes s\u00eb metadata dhe t\u00eb dh\u00ebnave mund t\u00eb jet\u00eb i ndrysh\u00ebm. N\u00eb k\u00ebt\u00eb rast, mund t\u00eb p\u00ebrdoret profili RAID1 (pasqyr\u00eb) ose madje RAID1C3 (3 kopje) p\u00ebr metadata, nd\u00ebrsa p\u00ebr t\u00eb dh\u00ebna RAID5 ose RAID6. Kjo siguron mbrojtje t\u00eb besueshme p\u00ebr metadata dhe munges\u00ebn e \"write hole\" nga nj\u00ebra an\u00eb, dhe nj\u00eb p\u00ebrdorim m\u00eb efikas t\u00eb hap\u00ebsir\u00ebs, karakteristik p\u00ebr RAID5\/6, nga ana tjet\u00ebr. Kjo lejon shmangien e shkat\u00ebrrimeve n\u00eb metadata, nd\u00ebrsa d\u00ebmtimet e t\u00eb dh\u00ebnave mund t\u00eb rregullohen.    <\/p>\n<p>Gjithashtu, mund t\u00eb theksohet se p\u00ebr SSD n\u00eb Btrfs n\u00eb kernelin 6.2 do t\u00eb aktivizohet si parazgjedhje ekzekutimi asinkron i operacionit \"discard\" (sh\u00ebnimi i blloqeve t\u00eb \u00e7liruara, t\u00eb cilat tashm\u00eb nuk mund t\u00eb mbahen fizikisht). Avantazhi i k\u00ebtij regjimi \u00ebsht\u00eb performanca e lart\u00eb p\u00ebr shkak t\u00eb grupimit efektiv t\u00eb operacioneve \"discard\" n\u00eb radh\u00eb dhe m\u00eb pas p\u00ebrpunimi i radh\u00ebs nga p\u00ebrpunuesi i sfondit, p\u00ebr shkak t\u00eb t\u00eb cilit operacionet normale t\u00eb FSH nuk ngadal\u00ebsohen, si n\u00eb rastin e \"discard\" asinkron nd\u00ebrsa lirohen blloqet, dhe SSD mund t\u00eb marr\u00eb vendime m\u00eb t\u00eb mira. Nga ana tjet\u00ebr, nuk do t\u00eb nevojitet m\u00eb p\u00ebrdorimi i utilitar\u00ebve si fstrim, sepse t\u00eb gjitha blloqet e disponueshme do t\u00eb pastrohen n\u00eb FSH pa nevoj\u00ebn p\u00ebr skanime shtes\u00eb dhe pa ngadal\u00ebsimin e operacioneve.<br \/>\n<br \/>Burimi: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=58352\">opennet.ru<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u044f\u0434\u0440\u043e Linux 6.2 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u044b \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f Btrfs, \u043a\u0430\u0441\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b &#171;write hole&#187; \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 RAID 5\/6. \u0421\u0443\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043a\u0440\u0430\u0445 \u0441\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u0438\u0441\u0438, \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u0430\u043a\u043e\u0439 \u0431\u043b\u043e\u043a \u043d\u0430 \u043a\u0430\u043a\u043e\u043c \u0438\u0437 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 RAID \u0437\u0430\u043f\u0438\u0441\u0430\u043b\u0441\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e, \u0430 \u0432 \u043a\u0430\u043a\u043e\u043c \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0435 \u0431\u044b\u043b\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f RAID \u0432 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-106149","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0414\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u044f\u0434\u0440\u043e Linux 6.2 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u044b \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f Btrfs, \u043a\u0430\u0441\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b &quot;write hole&quot; \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 RAID 5\/6.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/sq\/blog\/news\/v-yadro-linux-6-2-vojdut-uluchsheniya-raid5-6-v-btrfs\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"sq_AL\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0412 \u044f\u0434\u0440\u043e Linux 6.2 \u0432\u043e\u0439\u0434\u0443\u0442 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f RAID5\/6 \u0432 Btrfs | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0414\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u044f\u0434\u0440\u043e Linux 6.2 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u044b \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f Btrfs, \u043a\u0430\u0441\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b &quot;write hole&quot; \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 RAID 5\/6.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sq\/blog\/news\/v-yadro-linux-6-2-vojdut-uluchsheniya-raid5-6-v-btrfs\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-12-18T19:36:39+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-12-18T19:36:39+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47P\u00ebrmir\u00ebsimet RAID5\/6 n\u00eb Btrfs do t\u00eb p\u00ebrfshihen n\u00eb kernelin Linux 6.2 | ProHoster","description":"P\u00ebrfshirja n\u00eb kernelin Linux 6.2 p\u00ebrmir\u00ebsime Btrfs q\u00eb preken rregullimin e probl\u00e9m\u00ebs \"write hole\" n\u00eb implementimin e RAID 5\/6.","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/news\/v-yadro-linux-6-2-vojdut-uluchsheniya-raid5-6-v-btrfs","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sq_AL","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0412 \u044f\u0434\u0440\u043e Linux 6.2 \u0432\u043e\u0439\u0434\u0443\u0442 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f RAID5\/6 \u0432 Btrfs | ProHoster","og:description":"\u0414\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u044f\u0434\u0440\u043e Linux 6.2 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u044b \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f Btrfs, \u043a\u0430\u0441\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b &quot;write hole&quot; \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 RAID 5\/6.","og:url":"https:\/\/prohoster.info\/sq\/blog\/news\/v-yadro-linux-6-2-vojdut-uluchsheniya-raid5-6-v-btrfs","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2022-12-18T19:36:39+00:00","article:modified_time":"2022-12-18T19:36:39+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":[],"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/106149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/comments?post=106149"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/106149\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=106149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=106149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=106149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}