All of lore.kernel.org
 help / color / mirror / Atom feed
* Inappropriate ioctl for device
@ 2015-07-25  8:56 Mojtaba
  2015-07-25  9:15 ` Patrik Lundquist
  2015-07-25 13:42 ` Jim Murphy
  0 siblings, 2 replies; 3+ messages in thread
From: Mojtaba @ 2015-07-25  8:56 UTC (permalink / raw)
  To: linux-btrfs

Hello
I have had some problems with btrfs for some time and it seems no one
else had such problems as I couldn't find anything on the web. All I
could find was either upgrade your kernel or btrfs is experimental so
it's your problem!
The problem is sometimes on some of my servers I get the free space
problem(DF shows free space but I can't create/update and sometimes
delete files)
So as the wiki suggest I try to issue a balance command to get the
Inappropriate ioctl for device
On some of my servers I can successfully use the command one however
after that I get the same error
System is debian wheezy or Jessie.
This is Debian Jessie:

root@s2:/# uname -a
Linux s2 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux
root@s2:/#   btrfs --version
Btrfs v3.17
root@s2:/#   btrfs fi show
ERROR: unable get label Inappropriate ioctl for device
Label: none  uuid: 257c0845-1d12-4749-b813-4c69b38fb9fc
        Total devices 1 FS bytes used 3.16TiB
        devid    1 size 3.62TiB used 3.17TiB path /dev/vda4

Btrfs v3.17

root@s2:/# btrfs fi df /home
Data, single: total=3.16TiB, used=3.15TiB
System, DUP: total=8.00MiB, used=356.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, DUP: total=4.62GiB, used=3.84GiB
root@s2:/#
Dmesg:
http://50.7.76.234/dmesg.log


I've successfully run balance on this system once a few days ago
however after that I'm getting Inappropriate ioctl


Thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Inappropriate ioctl for device
  2015-07-25  8:56 Inappropriate ioctl for device Mojtaba
@ 2015-07-25  9:15 ` Patrik Lundquist
  2015-07-25 13:42 ` Jim Murphy
  1 sibling, 0 replies; 3+ messages in thread
From: Patrik Lundquist @ 2015-07-25  9:15 UTC (permalink / raw)
  To: Mojtaba; +Cc: linux-btrfs

On 25 July 2015 at 10:56, Mojtaba <kernel@rp2.org> wrote:
>
> System is debian wheezy or Jessie.
> This is Debian Jessie:
>
> root@s2:/# uname -a
> Linux s2 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux

That's a way too old kernel to be running Btrfs on. You should be
running on at least the Jessie 3.16 kernel.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Inappropriate ioctl for device
  2015-07-25  8:56 Inappropriate ioctl for device Mojtaba
  2015-07-25  9:15 ` Patrik Lundquist
@ 2015-07-25 13:42 ` Jim Murphy
  1 sibling, 0 replies; 3+ messages in thread
From: Jim Murphy @ 2015-07-25 13:42 UTC (permalink / raw)
  To: linux-btrfs

On Sat, Jul 25, 2015 at 3:56 AM, Mojtaba <kernel@rp2.org> wrote:
> Hello
> I have had some problems with btrfs for some time and it seems no one

[snip]

> System is debian wheezy or Jessie.
> This is Debian Jessie:
>
> root@s2:/# uname -a
> Linux s2 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux
> root@s2:/#   btrfs --version
> Btrfs v3.17

This appears to be Debian Wheezy.  You can use "cat /etc/debian_version" to
verify(7.n = Wheezy).  There is a backports kernel which is version 3.16
that you can upgrade to.  You will need to add the wheezy backports
repository to apt.

Note:  Watch the dependencies during the upgrade.  You may want to choose
  initramfs-tools from backports rather than dracut which was offered as a
  replacement for initramfs-tools.

[snip]

>
> I've successfully run balance on this system once a few days ago
> however after that I'm getting Inappropriate ioctl
>
> Thanks

[snip]

Hope this helps,

Jim

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-25 13:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-25  8:56 Inappropriate ioctl for device Mojtaba
2015-07-25  9:15 ` Patrik Lundquist
2015-07-25 13:42 ` Jim Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.