Date: Fri, 15 Jul 2005 15:49:17 +0200 From: Heinrich Rebehn <rebehn@ant.uni-bremen.de> To: Heinrich Rebehn <rebehn@ant.uni-bremen.de> Cc: Dan Nelson <dnelson@allantgroup.com>, freebsd-questions@freebsd.org Subject: Re: /dev/ufs Message-ID: <42D7BEDD.9020003@ant.uni-bremen.de> In-Reply-To: <42D77563.3000003@ant.uni-bremen.de> References: <42D66ABD.6040408@ant.uni-bremen.de> <20050714143156.GA43976@dan.emsphone.com> <42D67DAF.8080901@ant.uni-bremen.de> <20050714201106.GB10486@dan.emsphone.com> <42D77563.3000003@ant.uni-bremen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Heinrich Rebehn wrote: > Dan Nelson wrote: > >> In the last episode (Jul 14), Heinrich Rebehn said: >> >>> Hmm, it does not work: >>> >>> root@antsrv1 [~] # kldstat >>> Id Refs Address Size Name >>> 1 9 0xc0400000 3c8ed4 kernel >>> 2 14 0xc07c9000 56270 acpi.ko >>> 3 1 0xc3c38000 17000 linux.ko >>> 4 1 0xc9610000 4000 geom_label.ko >>> 5 1 0xc918f000 2000 geom_vol_ffs.ko >>> root@antsrv1 [~] # tunefs -L backup /dev/da1s1a >>> root@antsrv1 [~] # tunefs -p /dev/da1s1a >>> tunefs: volume label: (-L) backup >>> root@antsrv1 [~] # 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: > > root@antsrv1 [~] # kldstat > Id Refs Address Size Name > 1 8 0xc0400000 3c8ed4 kernel > 2 14 0xc07c9000 56270 acpi.ko > 3 1 0xc3c38000 17000 linux.ko > 4 1 0xc9610000 4000 geom_label.ko > root@antsrv1 [~] # kldunload geom_label > kldunload: can't unload file: Operation not supported > root@antsrv1 [~] # > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42D7BEDD.9020003>