Skip to contentSkip to conversation

INSTALL hint: create device btrfs-control

DISCUSSION Helmut Hullen 2 participants 9 messages Aug 4, 2011 – Aug 5, 2011 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hallo,

you should please add a hint in

.../git/mason/btrfs-progs-unstable.git

in the file "INSTALL" with at least the contents (please excuse my gerlish)

"btrfs" needs the device "btrfs-control". Perhaps you have to create it:

mknod /dev/btrfs-control c 10 234

Viele Gruesse!
Helmut

#1 lore raw
Quoted 4 lines · Helmut Hullen

Hallo,

you should please add a hint in

Quoted 8 lines

.../git/mason/btrfs-progs-unstable.git

in the file "INSTALL" with at least the contents (please excuse my gerlish)

"btrfs" needs the device "btrfs-control". Perhaps you have to create it:

mknod /dev/btrfs-control c 10 234

This should probably go in the problems FAQ [1] on the wiki
instead, since (a) it's really a problem with your distribution, and
(b) probably quite rare now that the majority of people are running distributions with udev.

What are the symptoms of not having the device node? (i.e. how
would I diagnose this particular problem?)

Hugo.

Signature · 3 lines
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
          --- What part of "gestalt" don't you understand? ---           
#2 lore raw

Hallo, Hugo,

Du meintest am 04.08.11:

Quoted 10 lines
Quoted 10 lines

you should please add a hint in

.../git/mason/btrfs-progs-unstable.git

in the file "INSTALL" with at least the contents (please excuse my gerlish)

"btrfs" needs the device "btrfs-control". Perhaps you have to create it:

Quoted 6 lines
Quoted 1 line

mknod /dev/btrfs-control c 10 234

This should probably go in the problems FAQ [1] on the wiki
instead, since (a) it's really a problem with your distribution, and
(b) probably quite rare now that the majority of people are running distributions with udev.

Sorry - it's no problem of my distribution; slackware uses udev.

But I run/maintain a very special system, without udev, with most modules integrated in the kernel etc. - it's for a special kind of servers, not for end user workstations.

And I believe btrfs should run not only for "the majority of people" without problems but also for systems which aren't "main stream".

Quoted 2 lines

What are the symptoms of not having the device node? (i.e. how
would I diagnose this particular problem?)

Please wait some hours (or days); I'll have to build a test system (I won't change my running systems ...).

Viele Gruesse!
Helmut

#3 lore raw
In reply to Hugo Mills

Hallo, Hugo,

Du meintest am 04.08.11:

Quoted 2 lines

What are the symptoms of not having the device node? (i.e. how
would I diagnose this particular problem?)

The days get shorter and shorter ...

running

btrfs device scan

produces something like

...
failed to read /dev/hdc
failed to read /dev/hdc8
failed to read /dev/lmscd
failed to read /dev/sdc1
failed to read /dev/sdb4
failed to open /dev/btrfs-control skipping device registration failed to read /dev/sdd8
failed to read /dev/hdc9
failed to read /dev/sdf8
...

a lot of error messages for not existing devices and 1 error messages on behalf of "btrfs-control".

My "/dev" directory has worked (without "udev") without any problem for more than 10 years, it contains (has contained) a lot of entries for nearly every case of disk. Therefore i had started with

btrfs device scan 2>/dev/null

and that deleted the "btrfs-control" error message too. And

btrfs device scan 2>&1 | grep -v 'failed to'

didn't help too.

btrfs-show

doesn't need "/dev/btrfs-control", it shows the existing btrfs partition(s).

If I remember correct: mounting works, writing works, reading works. And adding another partition works.

But there are strange messages when I try to resize or delete.

I'll try to reproduce these messages ...

Viele Gruesse!
Helmut

#4 lore raw
Quoted 15 lines · Helmut Hullen

Hallo, Hugo,

Du meintest am 04.08.11:

Quoted 2 lines

What are the symptoms of not having the device node? (i.e. how
would I diagnose this particular problem?)

The days get shorter and shorter ...

running

btrfs device scan

produces something like

Quoted 7 lines

...
failed to read /dev/hdc
failed to read /dev/hdc8
failed to read /dev/lmscd
failed to read /dev/sdc1
failed to read /dev/sdb4
failed to open /dev/btrfs-control skipping device registration

OK, that's the symptom we can put in the problems list for this
particular issue.

Quoted 12 lines

failed to read /dev/sdd8
failed to read /dev/hdc9
failed to read /dev/sdf8
...

a lot of error messages for not existing devices and 1 error messages on behalf of "btrfs-control".

My "/dev" directory has worked (without "udev") without any problem for more than 10 years, it contains (has contained) a lot of entries for nearly every case of disk. Therefore i had started with

Quoted 7 lines

btrfs device scan 2>/dev/null

and that deleted the "btrfs-control" error message too. And

btrfs device scan 2>&1 | grep -v 'failed to'

didn't help too.

Goffredo published a patch to scan only the contents of
/proc/partitions, which should at least shut up the scan over the issue of non-existent devices in /dev. That's in the next integration-* branch (going out shortly... I'm just integrating and updating the balance management patches before i release).

Quoted 11 lines

btrfs-show

doesn't need "/dev/btrfs-control", it shows the existing btrfs partition(s).

If I remember correct: mounting works, writing works, reading works. And adding another partition works.

But there are strange messages when I try to resize or delete.

I'll try to reproduce these messages ...

Thanks. We can add those as symptoms to the solution later.

How's this?

https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#I_get_the_message_.22failed_to_open_.2Fdev.2Fbtrfs-control_skipping_device_registration.22_from_.22btrfs_dev_scan.22

Hugo.

Signature · 4 lines
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
       --- "I lost my leg in 1942.  Some bastard stole it in a ---       
                            pub in Pimlico."                             
#5 lore raw

Hallo, Hugo,

Du meintest am 04.08.11:

Quoted 10 lines
Quoted 7 lines

...
failed to read /dev/hdc
failed to read /dev/hdc8
failed to read /dev/lmscd
failed to read /dev/sdc1
failed to read /dev/sdb4
failed to open /dev/btrfs-control skipping device registration

OK, that's the symptom we can put in the problems list for this
particular issue.

[...]

Quoted 5 lines

Goffredo published a patch to scan only the contents of
/proc/partitions, which should at least shut up the scan over the issue of non-existent devices in /dev. That's in the next integration-* branch (going out shortly... I'm just integrating and updating the balance management patches before i release).

That sounds fine - thanks to you and to Goffredo!

Quoted 3 lines
Quoted 1 line

I'll try to reproduce these messages ...

Thanks. We can add those as symptoms to the solution later.

I've just run the first test - finding reliable (for only this case) messages is a bad job ...

Quoted 5 lines

How's this?

https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#I_get_the_message
_.22failed_to_open_.2Fdev.2Fbtrfs-control_skipping_device_registratio n.22_from_.22btrfs_dev_scan.22

There's some problem in the Wiki. This new paragraph (?) is not shown when I call the "Problem_FAQ", it ends with the "Copy-on-write doesn't work" question.

When I look into the source code of that page I can see and read the paragraph, and it looks fine!

Viele Gruesse!
Helmut

#6 lore raw

Hi, Helmut,

Quoted 7 lines · Helmut Hullen

Du meintest am 04.08.11:

Quoted 3 lines
Quoted 1 line

I'll try to reproduce these messages ...

Thanks. We can add those as symptoms to the solution later.

I've just run the first test - finding reliable (for only this case) messages is a bad job ...

Well, it's probably OK just to use this particular symptom for
now. You've generally got to run btrfs dev scan before you run anything else, so that message should turn up. I wouldn't spend ages hunting down additional failure messages.

Quoted 6 lines
Quoted 5 lines

How's this?

https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#I_get_the_message
_.22failed_to_open_.2Fdev.2Fbtrfs-control_skipping_device_registratio n.22_from_.22btrfs_dev_scan.22

Quoted 6 lines

There's some problem in the Wiki. This new paragraph (?) is not shown when I call the "Problem_FAQ", it ends with the "Copy-on-write doesn't work" question.

When I look into the source code of that page I can see and read the paragraph, and it looks fine!

Yes, I think there is a problem with it at the moment. The usual
one that happens every so often. I don't know what's up, but it seems to be something to do with the MySQL back-end.

At least the text looks good to you, so we'll leave it at that for
now, and it should be better the next time the kernel.org admins sort it out.

Hugo.

Signature · 3 lines
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
  --- "What's so bad about being drunk?" "You ask a glass of water" ---  
#7 lore raw

Hallo, Hugo,

Du meintest am 04.08.11:

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Thanks. We can add those as symptoms to the solution later.

I've just run the first test - finding reliable (for only this case) messages is a bad job ...

Well, it's probably OK just to use this particular symptom for
now. You've generally got to run btrfs dev scan before you run anything else, so that message should turn up.

My usual way: "btrfs device scan" is part of a script under "/etc/ init.d", it's run while booting the machine, and even when I watch the machine while booting this special message isn't shown a long time. I'm searching ...

Viele Gruesse!
Helmut

#8 lore raw
In reply to Hugo Mills

Hallo, Hugo,

Du meintest am 04.08.11:

Quoted 11 lines
Quoted 9 lines
Quoted 2 lines

What are the symptoms of not having the device node? (i.e. how
would I diagnose this particular problem?)

If I remember correct: mounting works, writing works, reading works. And adding another partition works.

But there are strange messages when I try to resize or delete.

I'll try to reproduce these messages ...

Thanks. We can add those as symptoms to the solution later.

Maybe I've found the place of the (unique?) problem.

Partitions:

        sdb1    2 GByte
        sdb2    3 GByte
        sdb3    4 Gbyte

mkfs.btrfs -L Probe -m raid0 -d raid1 /dev/sdb1 mount LABEL=Probe /mnt/Probe
filling with about 600 MByte (1 *.iso)

btrfs device add /dev/sdb2 /mnt/Probe
btrfs filesystem balance /mnt/Probe

     (ok)
   btrfs device add /dev/sdb3 /mnt/Probe
     filling with a DVD *.iso (more than 4 GByte)
   btrfs filesystem balance /mnt/Probe
     (ok)

And then:

btrfs device delete /dev/sdb2 /mnt/Probe

works fine, if /dev/btrfs-control exists

crashes (shown with "dmesg") if this device doesn't exist.

Viele Gruesse!
Helmut