« Linux : Creation d'un volume RAID » : différence entre les versions

De www.yakakliker.org
Aucun résumé des modifications
Aucun résumé des modifications
 
(Une version intermédiaire par le même utilisateur non affichée)
Ligne 70 : Ligne 70 :
== Liens ==
== Liens ==
https://allcloud.io/blog/create-software-raid-10-with-mdadm/
https://allcloud.io/blog/create-software-raid-10-with-mdadm/
‎<html>
<a href="https://www.compteurdevisite.com" title="compteur web gratuit sans pub"><img src="https://counter6.optistats.ovh/private/compteurdevisite.php?c=b4epghealnwlf7wuq7gn3ygll9aywrfx" border="0" title="compteur web gratuit sans pub" alt="compteur web gratuit sans pub"></a>
‎</html>
‎ <html>
<script src='https://storage.ko-fi.com/cdn/scripts/overlay-widget.js'></script>
<script>
  kofiWidgetOverlay.draw('yakakliker', {
    'type': 'floating-chat',
    'floating-chat.donateButton.text': 'Café',
    'floating-chat.donateButton.background-color': '#00b9fe',
    'floating-chat.donateButton.text-color': '#fff'
  });
</script>
‎</html>
[[Catégorie:Linux]]
[[Catégorie:RAID]]

Dernière version du 24 avril 2025 à 16:43

Préparation des disques

fdisk /dev/sdX

  • Création de la table de partition
    • g puis w pour écrire
  • Création de la partition
    • n et laisser les options par défaut puis w pour écrire

Création du RAID

  • Installation de mdadm

apt-get install mdadm

  • Création du volume RAID

mdadm --create /dev/md0 --level raid10 --name data --raid-disks 4 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1

  • Pour le status

mdadm --detail

root@Ubuntu2204:/home/franck# mdadm --detail /dev/md0
/dev/md0:
           Version : 1.2
     Creation Time : Wed Jan  8 09:46:08 2025
        Raid Level : raid10
        Array Size : 524020736 (499.75 GiB 536.60 GB)
     Used Dev Size : 262010368 (249.87 GiB 268.30 GB)
      Raid Devices : 4
     Total Devices : 4
       Persistence : Superblock is persistent

     Intent Bitmap : Internal

       Update Time : Wed Jan  8 09:50:37 2025
             State : clean, resyncing 
    Active Devices : 4
   Working Devices : 4
    Failed Devices : 0
     Spare Devices : 0

            Layout : near=2
        Chunk Size : 512K

Consistency Policy : bitmap

     Resync Status : 0% complete

              Name : Ubuntu2204:data  (local to host Ubuntu2204)
              UUID : 91b45207:0a70d1e9:bb788057:af279c19
            Events : 38

    Number   Major   Minor   RaidDevice State
       0     253       17        0      active sync set-A   /dev/vdb1
       1     253       33        1      active sync set-B   /dev/vdc1
       2     253       49        2      active sync set-A   /dev/vdd1
       3     253       65        3      active sync set-B   /dev/vde1
  • Formatage du volume RAID

mkfs.ext4 /dev/md0

  • Reste à monter le volume raid /dev/md0

mount /dev/md0 /mnt/monRaid


Liens

https://allcloud.io/blog/create-software-raid-10-with-mdadm/


compteur web gratuit sans pub