LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
  Search this Thread
Old 01-10-2007, 11:13 AM   #1
tlemons
Member
 
Registered: Jun 2004
Posts: 39

Rep: Reputation: 15
How can I create more sd device files in SLES 9?


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
 
Old 01-10-2007, 12:58 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,981

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
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.
 
Old 01-10-2007, 01:02 PM   #3
tlemons
Member
 
Registered: Jun 2004
Posts: 39

Original Poster
Rep: Reputation: 15
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
 
Old 01-10-2007, 02:18 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,981

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
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 02:19 PM.
 
Old 01-16-2007, 02:17 PM   #5
tlemons
Member
 
Registered: Jun 2004
Posts: 39

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:55 PM
how i can findout corresponding device files for a device in RHL bluetux Linux - General 3 11-04-2006 06:53 AM
Had to create separate /boot for SLES 9 installation on Dell Precision 470 (SATA) betancoj SUSE / openSUSE 2 01-28-2006 11:58 AM
the partitions does not show as a device in SLES 9 reycapoy Linux - Software 4 12-18-2005 11:11 AM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration