Skip to main content
Fix wrong RAID level
Source Link
Arc
  • 221
  • 2
  • 13

Repair btrfs RAID1RAID? Error: Inappropriate ioctl for device

I have a RAID1RAID5 btrfs with 8 disks and a hard disk died and just disappeared from the list.

Now I tried removing it but got an error:

ERROR: error removing the device '/dev/sdb' - Inappropriate ioctl for device

After disabling auto-mounting in /etc/fstab, I shut down the system, replaced the faulty drive and rebooted the system to reset the controller just in case it tripped from some other error, and the died disk was now absent, causing all other disks to re-enumerate, so the replacement disk became /dev/sdd rather than sdb.

Running btrfs fi show -d yielded this:

Label: 'store'  uuid: ...
        Total devices 8 FS bytes used 5.27TiB
        devid    2 size 1.36TiB used 784.63GiB path /dev/sdb
        devid    3 size 1.36TiB used 784.63GiB path /dev/sdc
        devid    4 size 1.36TiB used 784.63GiB path /dev/sde
        devid    5 size 1.36TiB used 784.63GiB path /dev/sdf
        devid    6 size 1.36TiB used 784.63GiB path /dev/sdg
        devid    7 size 1.36TiB used 784.63GiB path /dev/sdh
        devid    8 size 1.36TiB used 784.63GiB path /dev/sdi
        *** Some devices missing

Btrfs v3.12

Now I tried btrfs device add /dev/sdd /mnt/x, but got

ERROR: error adding the device '/dev/sdd' - Inappropriate ioctl for device

What now? How can I restore or mount the RAID?

I cannot even mount it. Tried mount [-t btrfs] -o degraded /dev/sdb /mnt/x and mount [-t btrfs] -o degraded,device=/dev/sdb,[...] /dev/sdb /mnt/x ([...] are the device specs, of course):

mount: wrong fs type, bad option, bad superblock on /dev/sdb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

This is an Ubuntu 14.04 box with kernel 3.13.0-36-generic x64.

Repair btrfs RAID1? Error: Inappropriate ioctl for device

I have a RAID1 btrfs with 8 disks and a hard disk died and just disappeared from the list.

Now I tried removing it but got an error:

ERROR: error removing the device '/dev/sdb' - Inappropriate ioctl for device

After disabling auto-mounting in /etc/fstab, I shut down the system, replaced the faulty drive and rebooted the system to reset the controller just in case it tripped from some other error, and the died disk was now absent, causing all other disks to re-enumerate, so the replacement disk became /dev/sdd rather than sdb.

Running btrfs fi show -d yielded this:

Label: 'store'  uuid: ...
        Total devices 8 FS bytes used 5.27TiB
        devid    2 size 1.36TiB used 784.63GiB path /dev/sdb
        devid    3 size 1.36TiB used 784.63GiB path /dev/sdc
        devid    4 size 1.36TiB used 784.63GiB path /dev/sde
        devid    5 size 1.36TiB used 784.63GiB path /dev/sdf
        devid    6 size 1.36TiB used 784.63GiB path /dev/sdg
        devid    7 size 1.36TiB used 784.63GiB path /dev/sdh
        devid    8 size 1.36TiB used 784.63GiB path /dev/sdi
        *** Some devices missing

Btrfs v3.12

Now I tried btrfs device add /dev/sdd /mnt/x, but got

ERROR: error adding the device '/dev/sdd' - Inappropriate ioctl for device

What now? How can I restore or mount the RAID?

I cannot even mount it. Tried mount [-t btrfs] -o degraded /dev/sdb /mnt/x and mount [-t btrfs] -o degraded,device=/dev/sdb,[...] /dev/sdb /mnt/x ([...] are the device specs, of course):

mount: wrong fs type, bad option, bad superblock on /dev/sdb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

This is an Ubuntu 14.04 box with kernel 3.13.0-36-generic x64.

Repair btrfs RAID? Error: Inappropriate ioctl for device

I have a RAID5 btrfs with 8 disks and a hard disk died and just disappeared from the list.

Now I tried removing it but got an error:

ERROR: error removing the device '/dev/sdb' - Inappropriate ioctl for device

After disabling auto-mounting in /etc/fstab, I shut down the system, replaced the faulty drive and rebooted the system to reset the controller just in case it tripped from some other error, and the died disk was now absent, causing all other disks to re-enumerate, so the replacement disk became /dev/sdd rather than sdb.

Running btrfs fi show -d yielded this:

Label: 'store'  uuid: ...
        Total devices 8 FS bytes used 5.27TiB
        devid    2 size 1.36TiB used 784.63GiB path /dev/sdb
        devid    3 size 1.36TiB used 784.63GiB path /dev/sdc
        devid    4 size 1.36TiB used 784.63GiB path /dev/sde
        devid    5 size 1.36TiB used 784.63GiB path /dev/sdf
        devid    6 size 1.36TiB used 784.63GiB path /dev/sdg
        devid    7 size 1.36TiB used 784.63GiB path /dev/sdh
        devid    8 size 1.36TiB used 784.63GiB path /dev/sdi
        *** Some devices missing

Btrfs v3.12

Now I tried btrfs device add /dev/sdd /mnt/x, but got

ERROR: error adding the device '/dev/sdd' - Inappropriate ioctl for device

What now? How can I restore or mount the RAID?

I cannot even mount it. Tried mount [-t btrfs] -o degraded /dev/sdb /mnt/x and mount [-t btrfs] -o degraded,device=/dev/sdb,[...] /dev/sdb /mnt/x ([...] are the device specs, of course):

mount: wrong fs type, bad option, bad superblock on /dev/sdb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

This is an Ubuntu 14.04 box with kernel 3.13.0-36-generic x64.

Specify Ubuntu 14.04
Source Link
Arc
  • 221
  • 2
  • 13

I have a RAID1 btrfs with 8 disks and a hard disk died and just disappeared from the list.

Now I tried removing it but got an error:

ERROR: error removing the device '/dev/sdb' - Inappropriate ioctl for device

After disabling auto-mounting in /etc/fstab, I shut down the system, replaced the faulty drive and rebooted the system to reset the controller just in case it tripped from some other error, and the died disk was now absent, causing all other disks to re-enumerate, so the replacement disk became /dev/sdd rather than sdb.

Running btrfs fi show -d yielded this:

Label: 'store'  uuid: ...
        Total devices 8 FS bytes used 5.27TiB
        devid    2 size 1.36TiB used 784.63GiB path /dev/sdb
        devid    3 size 1.36TiB used 784.63GiB path /dev/sdc
        devid    4 size 1.36TiB used 784.63GiB path /dev/sde
        devid    5 size 1.36TiB used 784.63GiB path /dev/sdf
        devid    6 size 1.36TiB used 784.63GiB path /dev/sdg
        devid    7 size 1.36TiB used 784.63GiB path /dev/sdh
        devid    8 size 1.36TiB used 784.63GiB path /dev/sdi
        *** Some devices missing

Btrfs v3.12

Now I tried btrfs device add /dev/sdd /mnt/x, but got

ERROR: error adding the device '/dev/sdd' - Inappropriate ioctl for device

What now? How can I restore or mount the RAID?

I cannot even mount it. Tried mount [-t btrfs] -o degraded /dev/sdb /mnt/x and mount [-t btrfs] -o degraded,device=/dev/sdb,[...] /dev/sdb /mnt/x ([...] are the device specs, of course):

mount: wrong fs type, bad option, bad superblock on /dev/sdb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

This is an Ubuntu 14.04 box with kernel 3.13.0-36-generic x64.

I have a RAID1 btrfs with 8 disks and a hard disk died and just disappeared from the list.

Now I tried removing it but got an error:

ERROR: error removing the device '/dev/sdb' - Inappropriate ioctl for device

After disabling auto-mounting in /etc/fstab, I shut down the system, replaced the faulty drive and rebooted the system to reset the controller just in case it tripped from some other error, and the died disk was now absent, causing all other disks to re-enumerate, so the replacement disk became /dev/sdd rather than sdb.

Running btrfs fi show -d yielded this:

Label: 'store'  uuid: ...
        Total devices 8 FS bytes used 5.27TiB
        devid    2 size 1.36TiB used 784.63GiB path /dev/sdb
        devid    3 size 1.36TiB used 784.63GiB path /dev/sdc
        devid    4 size 1.36TiB used 784.63GiB path /dev/sde
        devid    5 size 1.36TiB used 784.63GiB path /dev/sdf
        devid    6 size 1.36TiB used 784.63GiB path /dev/sdg
        devid    7 size 1.36TiB used 784.63GiB path /dev/sdh
        devid    8 size 1.36TiB used 784.63GiB path /dev/sdi
        *** Some devices missing

Btrfs v3.12

Now I tried btrfs device add /dev/sdd /mnt/x, but got

ERROR: error adding the device '/dev/sdd' - Inappropriate ioctl for device

What now? How can I restore or mount the RAID?

I cannot even mount it. Tried mount [-t btrfs] -o degraded /dev/sdb /mnt/x and mount [-t btrfs] -o degraded,device=/dev/sdb,[...] /dev/sdb /mnt/x ([...] are the device specs, of course):

mount: wrong fs type, bad option, bad superblock on /dev/sdb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

I have a RAID1 btrfs with 8 disks and a hard disk died and just disappeared from the list.

Now I tried removing it but got an error:

ERROR: error removing the device '/dev/sdb' - Inappropriate ioctl for device

After disabling auto-mounting in /etc/fstab, I shut down the system, replaced the faulty drive and rebooted the system to reset the controller just in case it tripped from some other error, and the died disk was now absent, causing all other disks to re-enumerate, so the replacement disk became /dev/sdd rather than sdb.

Running btrfs fi show -d yielded this:

Label: 'store'  uuid: ...
        Total devices 8 FS bytes used 5.27TiB
        devid    2 size 1.36TiB used 784.63GiB path /dev/sdb
        devid    3 size 1.36TiB used 784.63GiB path /dev/sdc
        devid    4 size 1.36TiB used 784.63GiB path /dev/sde
        devid    5 size 1.36TiB used 784.63GiB path /dev/sdf
        devid    6 size 1.36TiB used 784.63GiB path /dev/sdg
        devid    7 size 1.36TiB used 784.63GiB path /dev/sdh
        devid    8 size 1.36TiB used 784.63GiB path /dev/sdi
        *** Some devices missing

Btrfs v3.12

Now I tried btrfs device add /dev/sdd /mnt/x, but got

ERROR: error adding the device '/dev/sdd' - Inappropriate ioctl for device

What now? How can I restore or mount the RAID?

I cannot even mount it. Tried mount [-t btrfs] -o degraded /dev/sdb /mnt/x and mount [-t btrfs] -o degraded,device=/dev/sdb,[...] /dev/sdb /mnt/x ([...] are the device specs, of course):

mount: wrong fs type, bad option, bad superblock on /dev/sdb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

This is an Ubuntu 14.04 box with kernel 3.13.0-36-generic x64.

Source Link
Arc
  • 221
  • 2
  • 13

Repair btrfs RAID1? Error: Inappropriate ioctl for device

I have a RAID1 btrfs with 8 disks and a hard disk died and just disappeared from the list.

Now I tried removing it but got an error:

ERROR: error removing the device '/dev/sdb' - Inappropriate ioctl for device

After disabling auto-mounting in /etc/fstab, I shut down the system, replaced the faulty drive and rebooted the system to reset the controller just in case it tripped from some other error, and the died disk was now absent, causing all other disks to re-enumerate, so the replacement disk became /dev/sdd rather than sdb.

Running btrfs fi show -d yielded this:

Label: 'store'  uuid: ...
        Total devices 8 FS bytes used 5.27TiB
        devid    2 size 1.36TiB used 784.63GiB path /dev/sdb
        devid    3 size 1.36TiB used 784.63GiB path /dev/sdc
        devid    4 size 1.36TiB used 784.63GiB path /dev/sde
        devid    5 size 1.36TiB used 784.63GiB path /dev/sdf
        devid    6 size 1.36TiB used 784.63GiB path /dev/sdg
        devid    7 size 1.36TiB used 784.63GiB path /dev/sdh
        devid    8 size 1.36TiB used 784.63GiB path /dev/sdi
        *** Some devices missing

Btrfs v3.12

Now I tried btrfs device add /dev/sdd /mnt/x, but got

ERROR: error adding the device '/dev/sdd' - Inappropriate ioctl for device

What now? How can I restore or mount the RAID?

I cannot even mount it. Tried mount [-t btrfs] -o degraded /dev/sdb /mnt/x and mount [-t btrfs] -o degraded,device=/dev/sdb,[...] /dev/sdb /mnt/x ([...] are the device specs, of course):

mount: wrong fs type, bad option, bad superblock on /dev/sdb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so