After adding a new drive to a btrfs raid1 array I cannot remount it.  One thing that went wrong for me after having successfully done this many times before over the last five years is that in this case I failed to format the partition as btrfs and just left it unformatted assuming the btrfs command would format it or give me a warning.  But I am not sure that is what caused the problem.

So far I have tried physically disconnecting the added drive and trying to mount read only but that has been unsuccessful.

I could forge ahead attempting to recover but I prefer to gather any advice or suggestions I can get before making some foolish mistake.  I appreciate any comments you might have.

Here is what I am seeing:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


[root@localhost ghmitch]# btrfs filesystem show
Label: 'COMMON'  uuid: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
        Total devices 7 FS bytes used 473.83GiB
        devid    1 size 385.78GiB used 96.00GiB path /dev/sde4
        devid    4 size 385.78GiB used 84.00GiB path /dev/sdc4
        devid    5 size 385.78GiB used 85.00GiB path /dev/sdd4
        devid    6 size 385.76GiB used 109.03GiB path /dev/sdf4
        devid    7 size 385.76GiB used 110.00GiB path /dev/sdg4
        devid    8 size 781.12GiB used 480.03GiB path /dev/sdb4
        devid    9 size 458.98GiB used 0.00B path /dev/sda4

[root@localhost ghmitch]# btrfs check /dev/sda4
Checking filesystem on /dev/sda4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# btrfs check /dev/sdb4
Checking filesystem on /dev/sdb4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# btrfs check /dev/sdc4
Checking filesystem on /dev/sdc4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# btrfs check /dev/sdd4
Checking filesystem on /dev/sdd4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# btrfs check /dev/sde4
Checking filesystem on /dev/sde4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# btrfs check /dev/sdf4
Checking filesystem on /dev/sdf4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# btrfs check /dev/sdg4
Checking filesystem on /dev/sdg4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should be aligned to 4096 WARNING: this is OK for older kernel, but may cause kernel warning for newer kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# mount LABEL=common /common
mount: can't find LABEL=common
[root@localhost ghmitch]# mount LABEL=COMMON /common
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
[root@localhost ghmitch]# mount LABEL=COMMON /common
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
[root@localhost ghmitch]#


I am attaching the output from journalctl for this.

[root@localhost ghmitch]# btrfs filesystem show
Label: 'COMMON'  uuid: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
        Total devices 7 FS bytes used 473.83GiB
        devid    1 size 385.78GiB used 96.00GiB path /dev/sde4
        devid    4 size 385.78GiB used 84.00GiB path /dev/sdc4
        devid    5 size 385.78GiB used 85.00GiB path /dev/sdd4
        devid    6 size 385.76GiB used 109.03GiB path /dev/sdf4
        devid    7 size 385.76GiB used 110.00GiB path /dev/sdg4
        devid    8 size 781.12GiB used 480.03GiB path /dev/sdb4
        devid    9 size 458.98GiB used 0.00B path /dev/sda4

[root@localhost ghmitch]# btrfs check /dev/sda4
Checking filesystem on /dev/sda4                                                
                                                                                
                                                                             
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b                                      
                                                                                
                                                                             
checking extents                                                                
                                                                                
                                                                             
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should 
be aligned to 4096                                                              
                                                                               
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels                                                                         
                                                                                
WARNING: this can be fixed by 'btrfs rescue fix-device-size'                    
                                                                                
                                                                             
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should 
be aligned to 4096                                                              
                                                                               
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels                                                                         
                                                                                
WARNING: this can be fixed by 'btrfs rescue fix-device-size'                    
                                                                                
                                                                             
ERROR: super total bytes 3402637811712 smaller than real device(s) size 
3402637812736                                                                   
                                                                                
     
ERROR: mounting this fs may fail for newer kernels                              
                                                                                
                                                                             
ERROR: this can be fixed by 'btrfs rescue fix-device-size'                      
                                                                                
                                                                             
checking free space cache                                                       
                                                                                
                                                                             
checking fs roots                                                               
                                                                                
                                                                             
checking csums                                                                  
                                                                                
                                                                             
checking root refs                                                              
                                                                                
                                                                             
found 508766167040 bytes used, error(s) found                                   
                                                                                
                                                                             
total csum bytes: 495196304                                                     
                                                                                
                                                                             
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# btrfs check /dev/sdb4
Checking filesystem on /dev/sdb4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should 
be aligned to 4096
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should 
be aligned to 4096
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 
3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# btrfs check /dev/sdc4
Checking filesystem on /dev/sdc4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should 
be aligned to 4096
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should 
be aligned to 4096
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 
3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# btrfs check /dev/sdd4
Checking filesystem on /dev/sdd4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should 
be aligned to 4096
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should 
be aligned to 4096
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 
3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# btrfs check /dev/sde4
Checking filesystem on /dev/sde4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should 
be aligned to 4096
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should 
be aligned to 4096
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 
3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# btrfs check /dev/sdf4
Checking filesystem on /dev/sdf4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should 
be aligned to 4096
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should 
be aligned to 4096
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 
3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# btrfs check /dev/sdg4
Checking filesystem on /dev/sdg4
UUID: 4b0983d7-8d85-463d-85c1-c20aa3b4fa3b
checking extents
WARNING: unaligned total_bytes detected for devid 4, have 414224777728 should 
be aligned to 4096
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
WARNING: unaligned total_bytes detected for devid 5, have 414224777728 should 
be aligned to 4096
WARNING: this is OK for older kernel, but may cause kernel warning for newer 
kernels
WARNING: this can be fixed by 'btrfs rescue fix-device-size'
ERROR: super total bytes 3402637811712 smaller than real device(s) size 
3402637812736
ERROR: mounting this fs may fail for newer kernels
ERROR: this can be fixed by 'btrfs rescue fix-device-size'
checking free space cache
checking fs roots
checking csums
checking root refs
found 508766167040 bytes used, error(s) found
total csum bytes: 495196304
total tree bytes: 1548525568
total fs tree bytes: 891138048
total extent tree bytes: 111878144
btree space waste bytes: 305303118
file data blocks allocated: 1035580137472
 referenced 506530619392
[root@localhost ghmitch]# mount LABEL=common /common
mount: can't find LABEL=common
[root@localhost ghmitch]# mount LABEL=COMMON /common
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
[root@localhost ghmitch]# mount LABEL=COMMON /common
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
[root@localhost ghmitch]# 

Reply via email to