User Tools

Site Tools


raid:mdadm:growing_an_array

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
raid:mdadm:growing_an_array [2021/09/14 17:29] peterraid:mdadm:growing_an_array [2021/09/14 17:34] (current) peter
Line 122: Line 122:
 <code bash> <code bash>
 Filesystem            Size  Used Avail Use% Mounted on Filesystem            Size  Used Avail Use% Mounted on
-/dev/sda2             7.9G  2.9G  4.7G  39% / +...
-tmpfs                 499M      499M   0% /dev/shm +
-/dev/sda1             194M   25M  159M  14% /boot+
 /dev/md0              5.0G   70M  4.7G   2% /mnt/md0 /dev/md0              5.0G   70M  4.7G   2% /mnt/md0
 </code> </code>
- 
----- 
- 
-===== Result ===== 
- 
-<WRAP info> 
-**NOTE:**  The disk failure has been dealt with. 
- 
-  * The original 4-disk RAID has been changed to a 5-disk array. 
-  * The RAID size has been increased too, without ever bringing the file system offline. 
-    * There could be VMs or any other data running on the RAID during any of these procedures. 
- 
-</WRAP> 
  
 ---- ----
Line 156: Line 141:
   Creation Time : Tue Sep  6 18:31:41 2011   Creation Time : Tue Sep  6 18:31:41 2011
      Raid Level : raid6      Raid Level : raid6
-     Array Size : 3144192 (3.00 GiB 3.22 GB)+     Array Size : 5240320 (5.00 GiB 5.37 GB)
   Used Dev Size : 1048064 (1023.67 MiB 1073.22 MB)   Used Dev Size : 1048064 (1023.67 MiB 1073.22 MB)
    Raid Devices : 7    Raid Devices : 7
Line 162: Line 147:
     Persistence : Superblock is persistent     Persistence : Superblock is persistent
  
-    Update Time : Thu Sep  8 18:58:53 2011 +    Update Time : Thu Sep  8 19:01:15 2011 
-          State : clean, recovering+          State : clean
  Active Devices : 7  Active Devices : 7
 Working Devices : 7 Working Devices : 7
Line 171: Line 156:
          Layout : left-symmetric          Layout : left-symmetric
      Chunk Size : 512K      Chunk Size : 512K
- 
- Reshape Status : 7% complete 
-  Delta Devices : 2, (5->7) 
  
            Name : raidtest.loc: (local to host raidtest.loc)            Name : raidtest.loc: (local to host raidtest.loc)
            UUID : e0748cf9:be2ca997:0bc183a6:ba2c9ebf            UUID : e0748cf9:be2ca997:0bc183a6:ba2c9ebf
-         Events : 2073+         Events : 2089
  
     Number   Major   Minor   RaidDevice State     Number   Major   Minor   RaidDevice State
Line 189: Line 171:
 </code> </code>
  
-and (later)+<WRAP info> 
 +**NOTE:**  The RAID size has been increased, without ever bringing the file system offline.
  
 +  * There could be VMs or any other data running on the RAID during any of these procedures.
  
-<code bash> +</WRAP>
-mdadm --detail /dev/md0 +
-</code>+
  
-returns:+----
  
-<code bash> 
-/dev/md0: 
-        Version : 1.2 
-  Creation Time : Tue Sep  6 18:31:41 2011 
-     Raid Level : raid6 
-     Array Size : 5240320 (5.00 GiB 5.37 GB) 
-  Used Dev Size : 1048064 (1023.67 MiB 1073.22 MB) 
-   Raid Devices : 7 
-  Total Devices : 7 
-    Persistence : Superblock is persistent 
  
-    Update Time : Thu Sep  8 19:01:15 2011 
-          State : clean 
- Active Devices : 7 
-Working Devices : 7 
- Failed Devices : 0 
-  Spare Devices : 0 
- 
-         Layout : left-symmetric 
-     Chunk Size : 512K 
- 
-           Name : raidtest.loc: (local to host raidtest.loc) 
-           UUID : e0748cf9:be2ca997:0bc183a6:ba2c9ebf 
-         Events : 2089 
- 
-    Number   Major   Minor   RaidDevice State 
-                   16        0      active sync   /dev/sdb 
-                   32        1      active sync   /dev/sdc 
-                   48        2      active sync   /dev/sdd 
-                   64        3      active sync   /dev/sde 
-                   80        4      active sync   /dev/sdf 
-                  112        5      active sync   /dev/sdh 
-                   96        6      active sync   /dev/sdg 
-</code>        
raid/mdadm/growing_an_array.1631640566.txt.gz · Last modified: 2021/09/14 17:29 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki