LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Thread Tools
Old 01-10-2007, 12:13 PM   #1
tlemons
LQ Newbie
 
Registered: Jun 2004
Posts: 29
Thanked: 0
How can I create more sd device files in SLES 9?


[Log in to get rid of this advertisement]
My SLES 9 SP3 system has 4096 /dev/sd* files: 256 'major' files each with 16 'minior files. I need to create more sd files, so that my system can handle more than 256 disks. I thought that Linux 2.6 kernel systems were supposed to just do this automatically, but this isn't happening.

Is there a knob I need to turn somewhere?

Thanks!
tl
tlemons is offline     Reply With Quote
Old 01-10-2007, 01:58 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 1,998
Thanked: 30
The 2.4 kernel had a limitation on the device major numbers allowed(1-255) but I thought that limit no longer existed in the 2.6 kernels. Normally you would create a device file with the mknod command(see man mknod) which, for block devices, would have the syntax:

# mknod <device name> -b Major Minor

Have you tried creating a device file with mknod? If it refuses to go ,it could be a kernel limitation.
kilgoretrout is offline     Reply With Quote
Old 01-10-2007, 02:02 PM   #3
tlemons
LQ Newbie
 
Registered: Jun 2004
Posts: 29
Thanked: 0

Original Poster
Thanks for the reply. Yes, mknod works just fine. But I want to fix the problem the 'right way', and understand why SLES 9 didn't just create more sd files automagically. Any ideas?

Thanks!
tl
tlemons is offline     Reply With Quote
Old 01-10-2007, 03:18 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 1,998
Thanked: 30
You would have to carefully parse through all your init scripts to find that and then properly edit them to get the desired number of device files. The init scripts never anticipated anyone would need more that 256 drives and are set up that way by default. I'd just run the necessary mknod commands out of rc.local so you get your extra device files on every boot without potentially screwing up your init scripts.

Last edited by kilgoretrout; 01-10-2007 at 03:19 PM..
kilgoretrout is offline     Reply With Quote
Old 01-16-2007, 03:17 PM   #5
tlemons
LQ Newbie
 
Registered: Jun 2004
Posts: 29
Thanked: 0

Original Poster
Here's the solution to my problem. In SLES 9 SP3, chkconfig boot.udev is off by default. This means that udevstart is not run by default, and so will not create additional /dev/sd* files if needed. So, when I ran udevstart, poof!, all the additional /dev/sd entries were created. And, using 'chkcondig boot.udev on' will allow this to happen automatically.

FYI, 'chkconfig boot.udev' is on by default in SLES 10.

tl
tlemons is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
access files network SLES micro_xii Linux - Newbie 1 11-25-2006 06:55 PM
how i can findout corresponding device files for a device in RHL bluetux Linux - General 3 11-04-2006 07:53 AM
Had to create separate /boot for SLES 9 installation on Dell Precision 470 (SATA) betancoj Suse/Novell 2 01-28-2006 12:58 PM
the partitions does not show as a device in SLES 9 reycapoy Linux - Software 4 12-18-2005 12:11 PM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 11:05 PM


All times are GMT -5. The time now is 05:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration