Re: /dev/ufs

2005-07-15 Thread Heinrich Rebehn

Heinrich Rebehn wrote:

Dan Nelson wrote:


In the last episode (Jul 14), Heinrich Rebehn said:


Hmm, it does not work:

[EMAIL PROTECTED] [~] # kldstat
Id Refs AddressSize Name
19 0xc040 3c8ed4   kernel
2   14 0xc07c9000 56270acpi.ko
31 0xc3c38000 17000linux.ko
41 0xc961 4000 geom_label.ko
51 0xc918f000 2000 geom_vol_ffs.ko
[EMAIL PROTECTED] [~] # tunefs -L backup /dev/da1s1a
[EMAIL PROTECTED] [~] # tunefs -p /dev/da1s1a
tunefs: volume label: (-L) backup
[EMAIL PROTECTED] [~] # ls /dev/ufs
ls: /dev/ufs: No such file or directory

The filesystem is freshly newfs'ed and the partitions have not been
resized.




Try unloding and reloading geom_label.ko; I don't know if it is smart
enough to realize that the tunefs command added a label.  If that
doesn't work you'll have to start adding G_LABEL_DEBUG calls to
/sys/geom/label/g_label_ufs.c and figure out exactly where it's
failing.
 



geom_label cannot be unloaded:

[EMAIL PROTECTED] [~] # kldstat
Id Refs AddressSize Name
 18 0xc040 3c8ed4   kernel
 2   14 0xc07c9000 56270acpi.ko
 31 0xc3c38000 17000linux.ko
 41 0xc961 4000 geom_label.ko
[EMAIL PROTECTED] [~] # kldunload geom_label
kldunload: can't unload file: Operation not supported
[EMAIL PROTECTED] [~] #

Am i missing something?
Rebooting is not a good option since this is our main server.

I forgot to "# glabel stop -v backup", after that i could unload the 
module. However, i found out that i can more easily achive my goal by 
wiring down scsi unit numbers with kernel environment hints.

Thanks for your help,

Heinrich
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /dev/ufs

2005-07-15 Thread Heinrich Rebehn

Dan Nelson wrote:

In the last episode (Jul 14), Heinrich Rebehn said:


Hmm, it does not work:

[EMAIL PROTECTED] [~] # kldstat
Id Refs AddressSize Name
19 0xc040 3c8ed4   kernel
2   14 0xc07c9000 56270acpi.ko
31 0xc3c38000 17000linux.ko
41 0xc961 4000 geom_label.ko
51 0xc918f000 2000 geom_vol_ffs.ko
[EMAIL PROTECTED] [~] # tunefs -L backup /dev/da1s1a
[EMAIL PROTECTED] [~] # tunefs -p /dev/da1s1a
tunefs: volume label: (-L) backup
[EMAIL PROTECTED] [~] # ls /dev/ufs
ls: /dev/ufs: No such file or directory

The filesystem is freshly newfs'ed and the partitions have not been
resized.



Try unloding and reloading geom_label.ko; I don't know if it is smart
enough to realize that the tunefs command added a label.  If that
doesn't work you'll have to start adding G_LABEL_DEBUG calls to
/sys/geom/label/g_label_ufs.c and figure out exactly where it's
failing.
 


geom_label cannot be unloaded:

[EMAIL PROTECTED] [~] # kldstat
Id Refs AddressSize Name
 18 0xc040 3c8ed4   kernel
 2   14 0xc07c9000 56270acpi.ko
 31 0xc3c38000 17000linux.ko
 41 0xc961 4000 geom_label.ko
[EMAIL PROTECTED] [~] # kldunload geom_label
kldunload: can't unload file: Operation not supported
[EMAIL PROTECTED] [~] #

Am i missing something?
Rebooting is not a good option since this is our main server.

--Heinrich
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /dev/ufs

2005-07-14 Thread Dan Nelson
In the last episode (Jul 14), Heinrich Rebehn said:
> Hmm, it does not work:
> 
> [EMAIL PROTECTED] [~] # kldstat
> Id Refs AddressSize Name
>  19 0xc040 3c8ed4   kernel
>  2   14 0xc07c9000 56270acpi.ko
>  31 0xc3c38000 17000linux.ko
>  41 0xc961 4000 geom_label.ko
>  51 0xc918f000 2000 geom_vol_ffs.ko
> [EMAIL PROTECTED] [~] # tunefs -L backup /dev/da1s1a
> [EMAIL PROTECTED] [~] # tunefs -p /dev/da1s1a
> tunefs: volume label: (-L) backup
> [EMAIL PROTECTED] [~] # ls /dev/ufs
> ls: /dev/ufs: No such file or directory
> 
> The filesystem is freshly newfs'ed and the partitions have not been
> resized.

Try unloding and reloading geom_label.ko; I don't know if it is smart
enough to realize that the tunefs command added a label.  If that
doesn't work you'll have to start adding G_LABEL_DEBUG calls to
/sys/geom/label/g_label_ufs.c and figure out exactly where it's
failing.
 
> Any more ideas?
> --Heinrich
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /dev/ufs

2005-07-14 Thread Heinrich Rebehn

Dan Nelson wrote:

In the last episode (Jul 14), Heinrich Rebehn said:


I am trying to mount disks by label. The glabel(8) manpage suggests:

  tunefs -L data /dev/da4s1a
  mount /dev/ufs/data /mnt/data

I tried that, but i don't see a /dev/ufs at all. Does it have to be
mounted? If so, how?



Make sure you have the geom_label module loaded, or have "options
GEOM_LABEL" in your kernel config file.  It's also a bit sensitive; if
your filesystem doesn't completely fill the partition it's in, you
won't get a label, so if you have resized partitions and not yet run
growfs it won't show up.


Hmm, it does not work:

[EMAIL PROTECTED] [~] # kldstat
Id Refs AddressSize Name
 19 0xc040 3c8ed4   kernel
 2   14 0xc07c9000 56270acpi.ko
 31 0xc3c38000 17000linux.ko
 41 0xc961 4000 geom_label.ko
 51 0xc918f000 2000 geom_vol_ffs.ko
[EMAIL PROTECTED] [~] # tunefs -L backup /dev/da1s1a
[EMAIL PROTECTED] [~] # tunefs -p /dev/da1s1a
tunefs: ACLs: (-a) disabled
tunefs: MAC multilabel: (-l)   disabled
tunefs: soft updates: (-n) disabled
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: average file size: (-f)16384
tunefs: average number of files in a directory: (-s)   64
tunefs: minimum percentage of free space: (-m) 1%
tunefs: optimization preference: (-o)  time
tunefs: should optimize for space with minfree < 8%
tunefs: volume label: (-L)         backup
[EMAIL PROTECTED] [~] # ls /dev/ufs
ls: /dev/ufs: No such file or directory

The filesystem is freshly newfs'ed and the partitions have not been resized.

Any more ideas?
--Heinrich
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /dev/ufs

2005-07-14 Thread Dan Nelson
In the last episode (Jul 14), Heinrich Rebehn said:
> I am trying to mount disks by label. The glabel(8) manpage suggests:
> 
>tunefs -L data /dev/da4s1a
>        mount /dev/ufs/data /mnt/data
> 
> I tried that, but i don't see a /dev/ufs at all. Does it have to be
> mounted? If so, how?

Make sure you have the geom_label module loaded, or have "options
GEOM_LABEL" in your kernel config file.  It's also a bit sensitive; if
your filesystem doesn't completely fill the partition it's in, you
won't get a label, so if you have resized partitions and not yet run
growfs it won't show up.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


/dev/ufs

2005-07-14 Thread Heinrich Rebehn

Hi all,

I am trying to mount disks by label. The glabel(8) manpage suggests:

   tunefs -L data /dev/da4s1a
   mount /dev/ufs/data /mnt/data

I tried that, but i don't see a /dev/ufs at all. Does it have to be 
mounted? If so, how?


I use FreeBSD 5.4-RELEASE-p4

Thanks for any suggestions.

Heinrich
--

Heinrich Rebehn

University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -

Phone : +49/421/218-4664
Fax   :-3341
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"