niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
Accessing disks via their serial numbers.
Post new topic   Reply to topic Page 4 of 4 [48 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2, 3, 4
Author Message
Andrea Campi
*nix forums beginner


Joined: 21 Jul 2004
Posts: 4

PostPosted: Wed Jun 28, 2006 10:06 pm    Post subject: Re: Accessing disks via their serial numbers. Reply with quote

On Tue, Jun 27, 2006 at 04:38:23PM -0400, Garance A Drosehn wrote:
Quote:
This strikes me as a worthwhile idea. Leave the device-
entries in /dev as they are now, but then create some
sub-directories which would hold the more arbitrary (or
"non-sanitized") names.
/dev/info/disk/serial-num
or /dev/info/geom/whatever

etc. That way there's only one new entry in /dev, and
people could just de-permit that directory (or turn the
feature off) if they didn't want or need to have that
extra info available.

Picking a semi-random message to reply to, I seem to recall Solaris
has a separate /devices filesystem for this: all entries are dynamic,
so the filesystem is strictly readonly from a userland point of view.
In our case, we would have quite a lot of overlap with devinfo, but it
could still be something to keep in mind.

Andrea

--
Loose bits sink chips.
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
Back to top
Pawel Jakub Dawidek
*nix forums addict


Joined: 24 Jun 2003
Posts: 92

PostPosted: Fri Jul 07, 2006 8:20 am    Post subject: Re: Accessing disks via their serial numbers. Reply with quote

On Wed, Jun 28, 2006 at 10:36:07AM -0400, John Baldwin wrote:
Quote:
On Tuesday 27 June 2006 16:11, Pawel Jakub Dawidek wrote:
On Tue, Jun 27, 2006 at 06:43:19PM +0000, Poul-Henning Kamp wrote:
I wrote this twice already in this thread, but let me write it again.
File systems are not the whole world. For example. I've a disk ad0.
I configured gbde(4) on top of it. I create file system on top of
ad0.bde. Now, let's assume I implemented shrinkfs(Cool as you suggested,
how can I shrink gbde(4) provider?

If you want a label you should label it before gbde(4). This is similar to
the fact that you can't retroactively add a gmirror under the gbde slice
either.

That's right. And this is how I do it. Unfortunately this is not always
the case. First of all, sysinstall doesn't have support for configuring
things like gbde/gmirror (which of course can be changed) or you may
simply not expect that you will need labels on your disks when you
install the system...

--
Pawel Jakub Dawidek http://www.wheel.pl
pjd@FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
Back to top
John Baldwin
*nix forums Guru Wannabe


Joined: 27 Mar 2002
Posts: 278

PostPosted: Fri Jul 07, 2006 4:57 pm    Post subject: Re: Accessing disks via their serial numbers. Reply with quote

On Friday 07 July 2006 04:20, Pawel Jakub Dawidek wrote:
Quote:
On Wed, Jun 28, 2006 at 10:36:07AM -0400, John Baldwin wrote:
On Tuesday 27 June 2006 16:11, Pawel Jakub Dawidek wrote:
On Tue, Jun 27, 2006 at 06:43:19PM +0000, Poul-Henning Kamp wrote:
I wrote this twice already in this thread, but let me write it again.
File systems are not the whole world. For example. I've a disk ad0.
I configured gbde(4) on top of it. I create file system on top of
ad0.bde. Now, let's assume I implemented shrinkfs(Cool as you suggested,
how can I shrink gbde(4) provider?

If you want a label you should label it before gbde(4). This is similar
to
the fact that you can't retroactively add a gmirror under the gbde slice
either.

That's right. And this is how I do it. Unfortunately this is not always
the case. First of all, sysinstall doesn't have support for configuring
things like gbde/gmirror (which of course can be changed) or you may
simply not expect that you will need labels on your disks when you
install the system...

If you want to label a filesystem that should be part of the filesystem's
metadata. If you want to label a region of the disk it seems sensible that
one has to label it before putting other stuff into it. Either that or the
label's belong in the geom that manages the region you are trying to label
(i.e. geom_mbr would manage labels for mbr slices).

--
John Baldwin
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 4 of 4 [48 Posts] Goto page:  Previous  1, 2, 3, 4
View previous topic :: View next topic
The time now is Fri Nov 21, 2008 4:53 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Problem while accessing 64 bit Server thru 32 bit client Ganesh Server 0 Fri Jul 21, 2006 1:40 pm
No new posts setting serial start value Greg Philpott PostgreSQL 4 Fri Jul 21, 2006 1:32 am
No new posts Accessing structure elements using pointer math - padding... quantumred@gmail.com C 12 Wed Jul 19, 2006 3:11 am
No new posts T2000 serial port confusion Chris Ridd Solaris 4 Tue Jul 18, 2006 2:10 pm
No new posts unique generated numbers mob1012 IBM DB2 2 Tue Jul 18, 2006 1:58 pm

Mortgage | Personal Loans | Unblock Myspace | Mortgages | Computers 2007
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3966s ][ Queries: 16 (0.3154s) ][ GZIP on - Debug on ]