User Tools

Site Tools


informatica:linux:raid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
informatica:linux:raid [2020/11/15 13:08] joseinformatica:linux:raid [2020/11/15 13:11] (current) jose
Line 71: Line 71:
 For the record, here's how I do the MBR replication: For the record, here's how I do the MBR replication:
  
-# grub --no-floppy +  # grub --no-floppy 
- +<code> 
-device (hd0) /dev/sda \\ +device (hd0) /dev/sda 
-root (hd0,0) \\+root (hd0,0)
 setup (hd0) setup (hd0)
  
-device (hd0) /dev/sdb \\ +device (hd0) /dev/sdb 
-root (hd0,0) \\+root (hd0,0)
 setup (hd0) setup (hd0)
  
-device (hd0) /dev/sdc \\ +device (hd0) /dev/sdc 
-root (hd0,0) \\+root (hd0,0)
 setup (hd0) setup (hd0)
  
Line 93: Line 93:
 * take great care that the raid1 is in sync, to insure that all the required files are in their final position on disk * take great care that the raid1 is in sync, to insure that all the required files are in their final position on disk
 * thanks to grub's architecture, this only has to be done when upgrading grub or when changing a disk, not on every reconfiguration or kernel upgrade. * thanks to grub's architecture, this only has to be done when upgrading grub or when changing a disk, not on every reconfiguration or kernel upgrade.
 +</code>
  
 ==== Cambiar un disco ==== ==== Cambiar un disco ====
Line 320: Line 321:
         9767424 blocks [3/3] [UUU]         9767424 blocks [3/3] [UUU]
  
-#mdadm --detail /dev/md0 \\+  #mdadm --detail /dev/md0 
 <code> <code>
-/dev/md0: \\ +/dev/md0:  
-        Version : 00.90.03 \\ +        Version : 00.90.03 
-  Creation Time : Thu Oct 25 21:15:28 2007 \\ +  Creation Time : Thu Oct 25 21:15:28 2007 
-     Raid Level : raid1 \\ +     Raid Level : raid1 
-     Array Size : 9767424 (9.31 GiB 10.00 GB) \\ +     Array Size : 9767424 (9.31 GiB 10.00 GB) 
-    Device Size : 9767424 (9.31 GiB 10.00 GB) \\ +    Device Size : 9767424 (9.31 GiB 10.00 GB) 
-   Raid Devices : 3 \\ +   Raid Devices : 3 
-  Total Devices : 3 \\ +  Total Devices : 3 
- Preferred Minor : 0 \\ + Preferred Minor : 0 
-    Persistence : Superblock is persistent \\+    Persistence : Superblock is persistent
    
-    Update Time : Sat Nov  3 15:07:36 2007 \\ +    Update Time : Sat Nov  3 15:07:36 2007 
-          State : clean \\ +          State : clean 
- Active Devices : 3 \\ + Active Devices : 3 
- Working Devices : 3 \\ + Working Devices : 3 
- Failed Devices : 0 \\ + Failed Devices : 0 
-  Spare Devices : 0 \\+  Spare Devices : 0
  
-           UUID : a912d356:3a213509:fb13e982:631824f5 \\+           UUID : a912d356:3a213509:fb13e982:631824f5
          Events : 0.1284          Events : 0.1284
  
-    Number   Major   Minor   RaidDevice State \\ +    Number   Major   Minor   RaidDevice State 
-                    1        0      active sync   /dev/sda1 \\ +                    1        0      active sync   /dev/sda1 
-                   33        1      active sync   /dev/sdc1 \\+                   33        1      active sync   /dev/sdc1
                    49        2      active sync   /dev/sdd1                    49        2      active sync   /dev/sdd1
 </code> </code>
-Añadimos el disco: \\ +Añadimos el disco: 
-#mdadm /dev/md0 -a /dev/sdb1 \\ + 
-mdadm: added /dev/sdb1+  #mdadm /dev/md0 -a /dev/sdb1 
 +  mdadm: added /dev/sdb1
  
-Ahora el disco aparecerà en reserva: \\+Ahora el disco aparecerà en reserva:
  
 servidor:~# mdadm --detail /dev/md0 servidor:~# mdadm --detail /dev/md0
informatica/linux/raid.1605445682.txt.gz · Last modified: 2020/11/15 13:08 by jose