From demored at rainbowschools.ca Tue Oct 3 17:51:16 2006 From: demored at rainbowschools.ca (Dominique Demore) Date: Tue, 03 Oct 2006 13:51:16 -0400 Subject: Increasing number of allocated file handles Message-ID: Hi Everyone, On our Oracle Application server, we have noticed that we are running out of file handles. Once the number of used file handles reaches 0, the application crashes/reset itself. I have increased the number of file handles from 65536 to 104854, but I am still seeing the problem. Should the number of allocated file handles be increase also, if so, where is the file to modify it. (*note: the second column will hit 0 everyday at ~9:00 when everyone is logging into the system.) ------ [root at server fs]# cat /proc/sys/fs/file-nr 39937 7405 104854 [root at server fs]# ------- Any thoughts/suggestions, Thanks. -- Dominique ----- Dominique D?mor? Technical Services Coordinator Rainbow District School Board 69 Young Street Sudbury, Ontario P3E 3G5 Tel: (705) 674-3171 x. 258 Fax: (705) 671-2442 From Art.Wildman at noaa.gov Wed Oct 4 18:32:24 2006 From: Art.Wildman at noaa.gov (Art Wildman) Date: Wed, 04 Oct 2006 14:32:24 -0400 Subject: Increasing number of allocated file handles In-Reply-To: References: Message-ID: <4523FE38.30609@noaa.gov> Dominique Demore wrote: > Hi Everyone, > > On our Oracle Application server, we have noticed that we are running out of file handles. Once the number of used file > handles reaches 0, the application crashes/reset itself. > I have increased the number of file handles from 65536 to 104854, but I am still seeing the problem. Should the number > of allocated file handles be increase also, if so, where is the file to modify it. > > (*note: the second column will hit 0 everyday at ~9:00 when everyone is logging into the system.) > ------ > [root at server fs]# cat /proc/sys/fs/file-nr > 39937 7405 104854 > [root at server fs]# > ------- > > > Any thoughts/suggestions, > > Tuning and Optimizing RHEL for Oracle 9i and 10g Databases (Red Hat Enterprise Linux, 4, 3, 2.1 - redhat, x86-64) http://www.puschitz.com/TuningLinuxForOracle.shtml#SettingFileHandles ...The maximum number of file handles can be changed in the proc file system without reboot: # echo 65536 > /proc/sys/fs/file-max Alternatively, you can use sysctl(8) to change it: # sysctl -w fs.file-max=65536 To make the change permanent, add or change the following line in the file /etc/sysctl.conf. This file is used during the boot process. # echo "fs.file-max=65536" >> /etc/sysctl.conf ------------------- Short Guide to install Oracle 10g on Gentoo Linux (2004.0) http://www.akadia.com/services/ora_linux_install_10g.html ...Setting Shell Limits for the Oracle User Most shells like Bash provide control over various resources like the maximum allowable number of open file descriptors or the maximum number of processes available to a user. To see all shell limits, run: $ ulimit -a Setting Limits for the Maximum Number of Open File Descriptors for the Oracle User After you changed and increased /proc/sys/fs/file-max (see: Checking Kernel Parameters), there is still a per user limit of open file descriptors which is set to 1024 by default: $ su - oracle $ ulimit -n 1024 To change this, you have to edit the file /etc/security/limits.conf as root and make the following changes or add the following lines, respectively: # To increase the shell limits for Oracle 10.1.0 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 The ?soft limit? in the first line defines the number of file handles or open files that the Oracle user will have after login. If the Oracle user gets error messages about running out of file handles, then the Oracle user can increase the number of file handles like in this example up to 63536 (?hard limit?) by running the following command: ulimit -n 63536 Note that we do not recommend to set the ?hard limit? for nofile for the oracle user equal to /proc/sys/fs/file-max. If you do that and the user uses up all the file handles, then the system would run out of file handles. This could mean that you won't be able to initiate new remote logins any more since the system won't be able to open any PAM modules which are required for performing a login. That's why we set the hard limit to 63536 and not to 65536. You also need to make sure that pam_limits is configured in the file /etc/pam.d/system-auth. This is the PAM module that will read the /etc/security/limits.conf file. The entry should read like: session required /lib/security/pam_limits.so session required /lib/security/pam_unix.so Now login to the oracle account again since the changes will become effective for new login sessions only. ------------------- File System Primer - Novell CoolSolutionsWiki http://wiki.novell.com/index.php/File_System_Primer EXT3 * Most popular Linux file system, limited scalability in size and number of files * Journaled * POSIX extended access control EXT3 file system is a journaled file system that has the greatest use in Linux today. It is the "Linux" File system. It is quite robust and quick, although it does not scale well to large volumes nor a great number of files. Recently a scalability feature was added called htrees, which significantly improved EXT3's scalability. However it is still not as scalable as some of the other file systems listed even with htrees. It scales similar to NTFS with htrees. Without htrees, EXT3 does not handle more than about 5,000 files in a directory. -HTH -- Art Wildman National Weather Service Office, JAX FL. http://www.srh.noaa.gov/jax "If you choose not to decide, you still have made a choice" -Rush|Freewill From lee.higginbotham at pic.com Wed Oct 4 18:35:49 2006 From: lee.higginbotham at pic.com (Lee Higginbotham) Date: Wed, 4 Oct 2006 13:35:49 -0500 Subject: Increasing number of allocated file handles Message-ID: Dominique, I'm by far, no Oracle Guru, but I seem to remember there was a static number of handles within Oracle. And it seems to me that we had to change our licensing. But that is completely from memory. That was Oracle 9i running on a HP-UX 11 HP 9000 L Class Server Sincerely, Lee Higginbotham Senior IT Technical Analyst 100 Bluegrass Commons Blvd., Suite 2200 Hendersonville, TN 37075 Ph: 615-265-2764 Fax: 615-265-2847 lee.higginbotham at pic.com -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Art Wildman Sent: Wednesday, October 04, 2006 1:32 PM To: redhat-sysadmin-list at redhat.com Subject: Re: Increasing number of allocated file handles Dominique Demore wrote: > Hi Everyone, > > On our Oracle Application server, we have noticed that we are running out of file handles. Once the number of used file > handles reaches 0, the application crashes/reset itself. > I have increased the number of file handles from 65536 to 104854, but I am still seeing the problem. Should the number > of allocated file handles be increase also, if so, where is the file to modify it. > > (*note: the second column will hit 0 everyday at ~9:00 when everyone is logging into the system.) > ------ > [root at server fs]# cat /proc/sys/fs/file-nr > 39937 7405 104854 > [root at server fs]# > ------- > > > Any thoughts/suggestions, > > Tuning and Optimizing RHEL for Oracle 9i and 10g Databases (Red Hat Enterprise Linux, 4, 3, 2.1 - redhat, x86-64) http://www.puschitz.com/TuningLinuxForOracle.shtml#SettingFileHandles ...The maximum number of file handles can be changed in the proc file system without reboot: # echo 65536 > /proc/sys/fs/file-max Alternatively, you can use sysctl(8) to change it: # sysctl -w fs.file-max=65536 To make the change permanent, add or change the following line in the file /etc/sysctl.conf. This file is used during the boot process. # echo "fs.file-max=65536" >> /etc/sysctl.conf ------------------- Short Guide to install Oracle 10g on Gentoo Linux (2004.0) http://www.akadia.com/services/ora_linux_install_10g.html ...Setting Shell Limits for the Oracle User Most shells like Bash provide control over various resources like the maximum allowable number of open file descriptors or the maximum number of processes available to a user. To see all shell limits, run: $ ulimit -a Setting Limits for the Maximum Number of Open File Descriptors for the Oracle User After you changed and increased /proc/sys/fs/file-max (see: Checking Kernel Parameters), there is still a per user limit of open file descriptors which is set to 1024 by default: $ su - oracle $ ulimit -n 1024 To change this, you have to edit the file /etc/security/limits.conf as root and make the following changes or add the following lines, respectively: # To increase the shell limits for Oracle 10.1.0 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 The in the first line defines the number of file handles or open files that the Oracle user will have after login. If the Oracle user gets error messages about running out of file handles, then the Oracle user can increase the number of file handles like in this example up to 63536 () by running the following command: ulimit -n 63536 Note that we do not recommend to set the for nofile for the oracle user equal to /proc/sys/fs/file-max. If you do that and the user uses up all the file handles, then the system would run out of file handles. This could mean that you won't be able to initiate new remote logins any more since the system won't be able to open any PAM modules which are required for performing a login. That's why we set the hard limit to 63536 and not to 65536. You also need to make sure that pam_limits is configured in the file /etc/pam.d/system-auth. This is the PAM module that will read the /etc/security/limits.conf file. The entry should read like: session required /lib/security/pam_limits.so session required /lib/security/pam_unix.so Now login to the oracle account again since the changes will become effective for new login sessions only. ------------------- File System Primer - Novell CoolSolutionsWiki http://wiki.novell.com/index.php/File_System_Primer EXT3 * Most popular Linux file system, limited scalability in size and number of files * Journaled * POSIX extended access control EXT3 file system is a journaled file system that has the greatest use in Linux today. It is the "Linux" File system. It is quite robust and quick, although it does not scale well to large volumes nor a great number of files. Recently a scalability feature was added called htrees, which significantly improved EXT3's scalability. However it is still not as scalable as some of the other file systems listed even with htrees. It scales similar to NTFS with htrees. Without htrees, EXT3 does not handle more than about 5,000 files in a directory. -HTH -- Art Wildman National Weather Service Office, JAX FL. http://www.srh.noaa.gov/jax "If you choose not to decide, you still have made a choice" -Rush|Freewill -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From demored at rainbowschools.ca Wed Oct 4 18:41:42 2006 From: demored at rainbowschools.ca (Dominique Demore) Date: Wed, 04 Oct 2006 14:41:42 -0400 Subject: Increasing number of allocated file handles In-Reply-To: References: Message-ID: We currently have out license as a processor based. I have placed a call with Oracle about this issue. I had placed all parameters in the sysctl.conf as part of the Oracle configuration guide, but it still has not resolved it.. Thanks. -- Dominique redhat-sysadmin-list at redhat.com writes: >Dominique, > >I'm by far, no Oracle Guru, but I seem to remember there was a static >number of handles within Oracle. And it seems to me that we had to >change our licensing. But that is completely from memory. > >That was Oracle 9i running on a HP-UX 11 HP 9000 L Class Server > >Sincerely, >Lee Higginbotham >Senior IT Technical Analyst >100 Bluegrass Commons Blvd., Suite 2200 >Hendersonville, TN 37075 >Ph: 615-265-2764 >Fax: 615-265-2847 >lee.higginbotham at pic.com >-----Original Message----- >From: redhat-sysadmin-list-bounces at redhat.com >[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Art >Wildman >Sent: Wednesday, October 04, 2006 1:32 PM >To: redhat-sysadmin-list at redhat.com >Subject: Re: Increasing number of allocated file handles > >Dominique Demore wrote: >> Hi Everyone, >> >> On our Oracle Application server, we have noticed that we are running >out of file handles. Once the number of used file >> handles reaches 0, the application crashes/reset itself. >> I have increased the number of file handles from 65536 to 104854, but >I am still seeing the problem. Should the number >> of allocated file handles be increase also, if so, where is the file >to modify it. >> >> (*note: the second column will hit 0 everyday at ~9:00 when everyone >is logging into the system.) >> ------ >> [root at server fs]# cat /proc/sys/fs/file-nr >> 39937 7405 104854 >> [root at server fs]# >> ------- >> >> >> Any thoughts/suggestions, >> >> > >Tuning and Optimizing RHEL for Oracle 9i and 10g Databases (Red Hat >Enterprise Linux, 4, 3, 2.1 - redhat, x86-64) >http://www.puschitz.com/TuningLinuxForOracle.shtml#SettingFileHandles >...The maximum number of file handles can be changed in the proc file >system without reboot: > ># echo 65536 > /proc/sys/fs/file-max > >Alternatively, you can use sysctl(8) to change it: > ># sysctl -w fs.file-max=65536 > >To make the change permanent, add or change the following line in the >file /etc/sysctl.conf. This file is used during the boot process. > ># echo "fs.file-max=65536" >> /etc/sysctl.conf > >------------------- > >Short Guide to install Oracle 10g on Gentoo Linux (2004.0) >http://www.akadia.com/services/ora_linux_install_10g.html > >...Setting Shell Limits for the Oracle User > Most shells like Bash provide control over various resources like the > >maximum allowable number of open file descriptors or the maximum number >of processes available to a user. > > To see all shell limits, run: > > $ ulimit -a > >Setting Limits for the Maximum Number of Open File Descriptors for the >Oracle User > > After you changed and increased /proc/sys/fs/file-max (see: Checking > >Kernel Parameters), there is still a per user limit of open file >descriptors which is set to 1024 by default: > > $ su - oracle > $ ulimit -n > 1024 > > To change this, you have to edit the file /etc/security/limits.conf >as root and make the following changes or add the following lines, >respectively: > > # To increase the shell limits for Oracle 10.1.0 > oracle soft nproc 2047 > oracle hard nproc 16384 > oracle soft nofile 1024 > oracle hard nofile 65536 > > The in the first line defines the number of file >handles or open files that the Oracle user will have after login. If the > >Oracle user gets error messages about running out of file handles, then >the Oracle user can increase the number of file handles like in this >example up to 63536 () by running the following command: > > ulimit -n 63536 > > Note that we do not recommend to set the for nofile for > >the oracle user equal to /proc/sys/fs/file-max. If you do that and the >user uses up all the file handles, then the system would run out of file > >handles. This could mean that you won't be able to initiate new remote >logins any more since the system won't be able to open any PAM modules >which are required for performing a login. That's why we set the hard >limit to 63536 and not to 65536. > > You also need to make sure that pam_limits is configured in the file > >/etc/pam.d/system-auth. This is the PAM module that will read the >/etc/security/limits.conf file. The entry should read like: > > session required /lib/security/pam_limits.so > session required /lib/security/pam_unix.so > > Now login to the oracle account again since the changes will become >effective for new login sessions only. >------------------- > >File System Primer - Novell CoolSolutionsWiki >http://wiki.novell.com/index.php/File_System_Primer > > >EXT3 > > * Most popular Linux file system, limited scalability in size and > number of files > * Journaled > * POSIX extended access control > >EXT3 file system is a journaled file system that has the greatest use in > >Linux today. It is the "Linux" File system. It is quite robust and >quick, although it does not scale well to large volumes nor a great >number of files. Recently a scalability feature was added called htrees, > >which significantly improved EXT3's scalability. However it is still not > >as scalable as some of the other file systems listed even with htrees. >It scales similar to NTFS with htrees. Without htrees, EXT3 does not >handle more than about 5,000 files in a directory. > >-HTH >-- >Art Wildman >National Weather Service Office, JAX FL. http://www.srh.noaa.gov/jax >"If you choose not to decide, you still have made a choice" >-Rush|Freewill > >-- >redhat-sysadmin-list mailing list >redhat-sysadmin-list at redhat.com >https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > >-- >redhat-sysadmin-list mailing list >redhat-sysadmin-list at redhat.com >https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list ----- Dominique D?mor? Technical Services Coordinator Rainbow District School Board 69 Young Street Sudbury, Ontario P3E 3G5 Tel: (705) 674-3171 x. 258 Fax: (705) 671-2442 From rmckeever at earthlink.net Wed Oct 4 18:56:40 2006 From: rmckeever at earthlink.net (Ron McKeever) Date: Wed, 4 Oct 2006 11:56:40 -0700 Subject: Increasing number of allocated file handles In-Reply-To: Message-ID: <001d01c6e7e6$d3ac0c00$0400a8c0@Hope> Have you set the limits for the user that?s running your app along with the systems? Ron -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Dominique Demore Sent: Wednesday, October 04, 2006 10:42 AM To: redhat-sysadmin-list at redhat.com Subject: Re: Increasing number of allocated file handles We currently have out license as a processor based. I have placed a call with Oracle about this issue. I had placed all parameters in the sysctl.conf as part of the Oracle configuration guide, but it still has not resolved it.. Thanks. -- Dominique redhat-sysadmin-list at redhat.com writes: >Dominique, > >I'm by far, no Oracle Guru, but I seem to remember there was a static >number of handles within Oracle. And it seems to me that we had to >change our licensing. But that is completely from memory. > >That was Oracle 9i running on a HP-UX 11 HP 9000 L Class Server > >Sincerely, >Lee Higginbotham >Senior IT Technical Analyst >100 Bluegrass Commons Blvd., Suite 2200 >Hendersonville, TN 37075 >Ph: 615-265-2764 >Fax: 615-265-2847 >lee.higginbotham at pic.com >-----Original Message----- >From: redhat-sysadmin-list-bounces at redhat.com >[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Art >Wildman >Sent: Wednesday, October 04, 2006 1:32 PM >To: redhat-sysadmin-list at redhat.com >Subject: Re: Increasing number of allocated file handles > >Dominique Demore wrote: >> Hi Everyone, >> >> On our Oracle Application server, we have noticed that we are running >out of file handles. Once the number of used file >> handles reaches 0, the application crashes/reset itself. >> I have increased the number of file handles from 65536 to 104854, but >I am still seeing the problem. Should the number >> of allocated file handles be increase also, if so, where is the file >to modify it. >> >> (*note: the second column will hit 0 everyday at ~9:00 when everyone >is logging into the system.) >> ------ >> [root at server fs]# cat /proc/sys/fs/file-nr >> 39937 7405 104854 >> [root at server fs]# >> ------- >> >> >> Any thoughts/suggestions, >> >> > >Tuning and Optimizing RHEL for Oracle 9i and 10g Databases (Red Hat >Enterprise Linux, 4, 3, 2.1 - redhat, x86-64) >http://www.puschitz.com/TuningLinuxForOracle.shtml#SettingFileHandles >...The maximum number of file handles can be changed in the proc file >system without reboot: > ># echo 65536 > /proc/sys/fs/file-max > >Alternatively, you can use sysctl(8) to change it: > ># sysctl -w fs.file-max=65536 > >To make the change permanent, add or change the following line in the >file /etc/sysctl.conf. This file is used during the boot process. > ># echo "fs.file-max=65536" >> /etc/sysctl.conf > >------------------- > >Short Guide to install Oracle 10g on Gentoo Linux (2004.0) >http://www.akadia.com/services/ora_linux_install_10g.html > >...Setting Shell Limits for the Oracle User > Most shells like Bash provide control over various resources like the > >maximum allowable number of open file descriptors or the maximum number >of processes available to a user. > > To see all shell limits, run: > > $ ulimit -a > >Setting Limits for the Maximum Number of Open File Descriptors for the >Oracle User > > After you changed and increased /proc/sys/fs/file-max (see: Checking > >Kernel Parameters), there is still a per user limit of open file >descriptors which is set to 1024 by default: > > $ su - oracle > $ ulimit -n > 1024 > > To change this, you have to edit the file /etc/security/limits.conf >as root and make the following changes or add the following lines, >respectively: > > # To increase the shell limits for Oracle 10.1.0 > oracle soft nproc 2047 > oracle hard nproc 16384 > oracle soft nofile 1024 > oracle hard nofile 65536 > > The in the first line defines the number of file >handles or open files that the Oracle user will have after login. If the > >Oracle user gets error messages about running out of file handles, then >the Oracle user can increase the number of file handles like in this >example up to 63536 () by running the following command: > > ulimit -n 63536 > > Note that we do not recommend to set the for nofile for > >the oracle user equal to /proc/sys/fs/file-max. If you do that and the >user uses up all the file handles, then the system would run out of file > >handles. This could mean that you won't be able to initiate new remote >logins any more since the system won't be able to open any PAM modules >which are required for performing a login. That's why we set the hard >limit to 63536 and not to 65536. > > You also need to make sure that pam_limits is configured in the file > >/etc/pam.d/system-auth. This is the PAM module that will read the >/etc/security/limits.conf file. The entry should read like: > > session required /lib/security/pam_limits.so > session required /lib/security/pam_unix.so > > Now login to the oracle account again since the changes will become >effective for new login sessions only. >------------------- > >File System Primer - Novell CoolSolutionsWiki >http://wiki.novell.com/index.php/File_System_Primer > > >EXT3 > > * Most popular Linux file system, limited scalability in size and > number of files > * Journaled > * POSIX extended access control > >EXT3 file system is a journaled file system that has the greatest use in > >Linux today. It is the "Linux" File system. It is quite robust and >quick, although it does not scale well to large volumes nor a great >number of files. Recently a scalability feature was added called htrees, > >which significantly improved EXT3's scalability. However it is still not > >as scalable as some of the other file systems listed even with htrees. >It scales similar to NTFS with htrees. Without htrees, EXT3 does not >handle more than about 5,000 files in a directory. > >-HTH >-- >Art Wildman >National Weather Service Office, JAX FL. http://www.srh.noaa.gov/jax >"If you choose not to decide, you still have made a choice" >-Rush|Freewill > >-- >redhat-sysadmin-list mailing list >redhat-sysadmin-list at redhat.com >https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > >-- >redhat-sysadmin-list mailing list >redhat-sysadmin-list at redhat.com >https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list ----- Dominique D?mor? Technical Services Coordinator Rainbow District School Board 69 Young Street Sudbury, Ontario P3E 3G5 Tel: (705) 674-3171 x. 258 Fax: (705) 671-2442 -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From demored at rainbowschools.ca Wed Oct 4 19:02:35 2006 From: demored at rainbowschools.ca (Dominique Demore) Date: Wed, 04 Oct 2006 15:02:35 -0400 Subject: Increasing number of allocated file handles In-Reply-To: <001d01c6e7e6$d3ac0c00$0400a8c0@Hope> References: <001d01c6e7e6$d3ac0c00$0400a8c0@Hope> Message-ID: Under /etc/security/limits.conf: oracleas soft nofile 4096 oracleas hard nofile 131072 oracleas soft nproc 2047 oracleas hard nproc 32768 Under the oracleas .bash_profile I have added: ulimit -n 196608 ulimit -u 16384 What I'm seeing is the number of allocated files (first column under /proc/sys/fs/file-nr) not changing... Maybe it's suppose to stay at the same number. [oracleas at esis oracleas]$ cat /proc/sys/fs/file-nr 39937 19888 131072 [oracleas at esis oracleas]$ redhat-sysadmin-list at redhat.com writes: >Have you set the limits for the user that?s running your app along with the >systems? > >Ron > >-----Original Message----- >From: redhat-sysadmin-list-bounces at redhat.com >[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Dominique >Demore >Sent: Wednesday, October 04, 2006 10:42 AM >To: redhat-sysadmin-list at redhat.com >Subject: Re: Increasing number of allocated file handles > >We currently have out license as a processor based. I have placed a call >with Oracle about this issue. > >I had placed all parameters in the sysctl.conf as part of the Oracle >configuration guide, but it still has not resolved >it.. > >Thanks. > >-- Dominique > >redhat-sysadmin-list at redhat.com writes: >>Dominique, >> >>I'm by far, no Oracle Guru, but I seem to remember there was a static >>number of handles within Oracle. And it seems to me that we had to >>change our licensing. But that is completely from memory. >> >>That was Oracle 9i running on a HP-UX 11 HP 9000 L Class Server >> >>Sincerely, >>Lee Higginbotham >>Senior IT Technical Analyst >>100 Bluegrass Commons Blvd., Suite 2200 >>Hendersonville, TN 37075 >>Ph: 615-265-2764 >>Fax: 615-265-2847 >>lee.higginbotham at pic.com >>-----Original Message----- >>From: redhat-sysadmin-list-bounces at redhat.com >>[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Art >>Wildman >>Sent: Wednesday, October 04, 2006 1:32 PM >>To: redhat-sysadmin-list at redhat.com >>Subject: Re: Increasing number of allocated file handles >> >>Dominique Demore wrote: >>> Hi Everyone, >>> >>> On our Oracle Application server, we have noticed that we are running >>out of file handles. Once the number of used file >>> handles reaches 0, the application crashes/reset itself. >>> I have increased the number of file handles from 65536 to 104854, but >>I am still seeing the problem. Should the number >>> of allocated file handles be increase also, if so, where is the file >>to modify it. >>> >>> (*note: the second column will hit 0 everyday at ~9:00 when everyone >>is logging into the system.) >>> ------ >>> [root at server fs]# cat /proc/sys/fs/file-nr >>> 39937 7405 104854 >>> [root at server fs]# >>> ------- >>> >>> >>> Any thoughts/suggestions, >>> >>> >> >>Tuning and Optimizing RHEL for Oracle 9i and 10g Databases (Red Hat >>Enterprise Linux, 4, 3, 2.1 - redhat, x86-64) >>http://www.puschitz.com/TuningLinuxForOracle.shtml#SettingFileHandles >>...The maximum number of file handles can be changed in the proc file >>system without reboot: >> >># echo 65536 > /proc/sys/fs/file-max >> >>Alternatively, you can use sysctl(8) to change it: >> >># sysctl -w fs.file-max=65536 >> >>To make the change permanent, add or change the following line in the >>file /etc/sysctl.conf. This file is used during the boot process. >> >># echo "fs.file-max=65536" >> /etc/sysctl.conf >> >>------------------- >> >>Short Guide to install Oracle 10g on Gentoo Linux (2004.0) >>http://www.akadia.com/services/ora_linux_install_10g.html >> >>...Setting Shell Limits for the Oracle User >> Most shells like Bash provide control over various resources like the >> >>maximum allowable number of open file descriptors or the maximum number >>of processes available to a user. >> >> To see all shell limits, run: >> >> $ ulimit -a >> >>Setting Limits for the Maximum Number of Open File Descriptors for the >>Oracle User >> >> After you changed and increased /proc/sys/fs/file-max (see: Checking >> >>Kernel Parameters), there is still a per user limit of open file >>descriptors which is set to 1024 by default: >> >> $ su - oracle >> $ ulimit -n >> 1024 >> >> To change this, you have to edit the file /etc/security/limits.conf >>as root and make the following changes or add the following lines, >>respectively: >> >> # To increase the shell limits for Oracle 10.1.0 >> oracle soft nproc 2047 >> oracle hard nproc 16384 >> oracle soft nofile 1024 >> oracle hard nofile 65536 >> >> The in the first line defines the number of file >>handles or open files that the Oracle user will have after login. If the >> >>Oracle user gets error messages about running out of file handles, then >>the Oracle user can increase the number of file handles like in this >>example up to 63536 () by running the following command: >> >> ulimit -n 63536 >> >> Note that we do not recommend to set the for nofile for >> >>the oracle user equal to /proc/sys/fs/file-max. If you do that and the >>user uses up all the file handles, then the system would run out of file >> >>handles. This could mean that you won't be able to initiate new remote >>logins any more since the system won't be able to open any PAM modules >>which are required for performing a login. That's why we set the hard >>limit to 63536 and not to 65536. >> >> You also need to make sure that pam_limits is configured in the file >> >>/etc/pam.d/system-auth. This is the PAM module that will read the >>/etc/security/limits.conf file. The entry should read like: >> >> session required /lib/security/pam_limits.so >> session required /lib/security/pam_unix.so >> >> Now login to the oracle account again since the changes will become >>effective for new login sessions only. >>------------------- >> >>File System Primer - Novell CoolSolutionsWiki >>http://wiki.novell.com/index.php/File_System_Primer >> >> >>EXT3 >> >> * Most popular Linux file system, limited scalability in size and >> number of files >> * Journaled >> * POSIX extended access control >> >>EXT3 file system is a journaled file system that has the greatest use in >> >>Linux today. It is the "Linux" File system. It is quite robust and >>quick, although it does not scale well to large volumes nor a great >>number of files. Recently a scalability feature was added called htrees, >> >>which significantly improved EXT3's scalability. However it is still not >> >>as scalable as some of the other file systems listed even with htrees. >>It scales similar to NTFS with htrees. Without htrees, EXT3 does not >>handle more than about 5,000 files in a directory. >> >>-HTH >>-- >>Art Wildman >>National Weather Service Office, JAX FL. http://www.srh.noaa.gov/jax >>"If you choose not to decide, you still have made a choice" >>-Rush|Freewill >> >>-- >>redhat-sysadmin-list mailing list >>redhat-sysadmin-list at redhat.com >>https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> >>-- >>redhat-sysadmin-list mailing list >>redhat-sysadmin-list at redhat.com >>https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > >----- >Dominique D?mor? >Technical Services Coordinator >Rainbow District School Board >69 Young Street >Sudbury, Ontario >P3E 3G5 >Tel: (705) 674-3171 x. 258 >Fax: (705) 671-2442 > > >-- >redhat-sysadmin-list mailing list >redhat-sysadmin-list at redhat.com >https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > >-- >redhat-sysadmin-list mailing list >redhat-sysadmin-list at redhat.com >https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list ----- Dominique D?mor? Technical Services Coordinator Rainbow District School Board 69 Young Street Sudbury, Ontario P3E 3G5 Tel: (705) 674-3171 x. 258 Fax: (705) 671-2442 From mgalgoci at redhat.com Wed Oct 4 19:46:13 2006 From: mgalgoci at redhat.com (Matthew Galgoci) Date: Wed, 4 Oct 2006 15:46:13 -0400 Subject: Increasing number of allocated file handles In-Reply-To: References: Message-ID: > Date: Wed, 04 Oct 2006 14:41:42 -0400 > From: Dominique Demore > Reply-To: redhat-sysadmin-list at redhat.com > To: redhat-sysadmin-list at redhat.com > Subject: Re: Increasing number of allocated file handles > > We currently have out license as a processor based. I have placed a call with Oracle about this issue. > > I had placed all parameters in the sysctl.conf as part of the Oracle configuration guide, but it still has not resolved > it.. Two things to look at before running to oracle: 1) make sure the sysctl.conf file has been re-read. eg, sysctl -p 2) for the pam_limits changes that were made in /etc/security/limits.conf, make sure you log out all of the oracle users and log them back in again. Leave no sessions hanging around. Remember that /etc/security/limits.conf is driven by pam_limits and is set per-user at login time via the pam stack. finally, one issue that I hit in RHEL4 that is aparently a bug, make sure the oracle usernames are 8 characters or less and contain NO, repeat, NO uppercase letters. I banged my head against a wall for an afternoon before I figured that one out. Regards, Matthew Galgoci -- Matthew Galgoci IS Production Operations Red Hat, Inc 919.754.3700 x44155 From rmckeever at earthlink.net Wed Oct 4 20:13:35 2006 From: rmckeever at earthlink.net (Ron McKeever) Date: Wed, 4 Oct 2006 13:13:35 -0700 Subject: Increasing number of allocated file handles In-Reply-To: Message-ID: <001f01c6e7f1$927df260$0400a8c0@Hope> ulimit -n 196608 in your bash_profile is larger than your hard limit. After you changed and increased /proc/sys/fs/file-max as root. There is still a per user limit of open file descriptors which is set to 1024 by default. As that user what does ulimit -n show? Under /etc/security/limits.conf: oracleas soft nofile 4096 oracleas hard nofile 131072 The ?soft limit? in the first line defines the number of file handles or open files that the Oracle user will have after login. If the Oracle user gets error messages about running out of file handles, then the Oracle user can increase the number of file handles like in this example up to 131072 (?hard limit?) by running the following command (as oracle user): ulimit -n number I have read that if you set the ?hard limit? for nofile for the oracle user equal to /proc/sys/fs/file-max. This could cause a problem where the user uses up all the file handles, then the system would run out of file handles. This could mean that you won't be able to initiate new remote logins any more since the system won't be able to open any PAM modules which are required for performing a login. Now login to the oracle account again since the changes will become effective for new login sessions only. And then re-run your ulimit -n. FYI... # cat /proc/sys/fs/file-nr 39937 19888 131072 | | | | | | | | maximum open file descriptors | total free allocated file descriptors total allocated file descriptors (the number of file descriptors allocated since boot) Ron -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Dominique Demore Sent: Wednesday, October 04, 2006 11:03 AM To: redhat-sysadmin-list at redhat.com Subject: Re: Increasing number of allocated file handles Under /etc/security/limits.conf: oracleas soft nofile 4096 oracleas hard nofile 131072 oracleas soft nproc 2047 oracleas hard nproc 32768 Under the oracleas .bash_profile I have added: ulimit -n 196608 ulimit -u 16384 What I'm seeing is the number of allocated files (first column under /proc/sys/fs/file-nr) not changing... Maybe it's suppose to stay at the same number. [oracleas at esis oracleas]$ cat /proc/sys/fs/file-nr 39937 19888 131072 [oracleas at esis oracleas]$ redhat-sysadmin-list at redhat.com writes: >Have you set the limits for the user that?s running your app along with the >systems? > >Ron > >-----Original Message----- >From: redhat-sysadmin-list-bounces at redhat.com >[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Dominique >Demore >Sent: Wednesday, October 04, 2006 10:42 AM >To: redhat-sysadmin-list at redhat.com >Subject: Re: Increasing number of allocated file handles > >We currently have out license as a processor based. I have placed a call >with Oracle about this issue. > >I had placed all parameters in the sysctl.conf as part of the Oracle >configuration guide, but it still has not resolved >it.. > >Thanks. > >-- Dominique > >redhat-sysadmin-list at redhat.com writes: >>Dominique, >> >>I'm by far, no Oracle Guru, but I seem to remember there was a static >>number of handles within Oracle. And it seems to me that we had to >>change our licensing. But that is completely from memory. >> >>That was Oracle 9i running on a HP-UX 11 HP 9000 L Class Server >> >>Sincerely, >>Lee Higginbotham >>Senior IT Technical Analyst >>100 Bluegrass Commons Blvd., Suite 2200 >>Hendersonville, TN 37075 >>Ph: 615-265-2764 >>Fax: 615-265-2847 >>lee.higginbotham at pic.com >>-----Original Message----- >>From: redhat-sysadmin-list-bounces at redhat.com >>[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Art >>Wildman >>Sent: Wednesday, October 04, 2006 1:32 PM >>To: redhat-sysadmin-list at redhat.com >>Subject: Re: Increasing number of allocated file handles >> >>Dominique Demore wrote: >>> Hi Everyone, >>> >>> On our Oracle Application server, we have noticed that we are running >>out of file handles. Once the number of used file >>> handles reaches 0, the application crashes/reset itself. >>> I have increased the number of file handles from 65536 to 104854, but >>I am still seeing the problem. Should the number >>> of allocated file handles be increase also, if so, where is the file >>to modify it. >>> >>> (*note: the second column will hit 0 everyday at ~9:00 when everyone >>is logging into the system.) >>> ------ >>> [root at server fs]# cat /proc/sys/fs/file-nr >>> 39937 7405 104854 >>> [root at server fs]# >>> ------- >>> >>> >>> Any thoughts/suggestions, >>> >>> >> >>Tuning and Optimizing RHEL for Oracle 9i and 10g Databases (Red Hat >>Enterprise Linux, 4, 3, 2.1 - redhat, x86-64) >>http://www.puschitz.com/TuningLinuxForOracle.shtml#SettingFileHandles >>...The maximum number of file handles can be changed in the proc file >>system without reboot: >> >># echo 65536 > /proc/sys/fs/file-max >> >>Alternatively, you can use sysctl(8) to change it: >> >># sysctl -w fs.file-max=65536 >> >>To make the change permanent, add or change the following line in the >>file /etc/sysctl.conf. This file is used during the boot process. >> >># echo "fs.file-max=65536" >> /etc/sysctl.conf >> >>------------------- >> >>Short Guide to install Oracle 10g on Gentoo Linux (2004.0) >>http://www.akadia.com/services/ora_linux_install_10g.html >> >>...Setting Shell Limits for the Oracle User >> Most shells like Bash provide control over various resources like the >> >>maximum allowable number of open file descriptors or the maximum number >>of processes available to a user. >> >> To see all shell limits, run: >> >> $ ulimit -a >> >>Setting Limits for the Maximum Number of Open File Descriptors for the >>Oracle User >> >> After you changed and increased /proc/sys/fs/file-max (see: Checking >> >>Kernel Parameters), there is still a per user limit of open file >>descriptors which is set to 1024 by default: >> >> $ su - oracle >> $ ulimit -n >> 1024 >> >> To change this, you have to edit the file /etc/security/limits.conf >>as root and make the following changes or add the following lines, >>respectively: >> >> # To increase the shell limits for Oracle 10.1.0 >> oracle soft nproc 2047 >> oracle hard nproc 16384 >> oracle soft nofile 1024 >> oracle hard nofile 65536 >> >> The in the first line defines the number of file >>handles or open files that the Oracle user will have after login. If the >> >>Oracle user gets error messages about running out of file handles, then >>the Oracle user can increase the number of file handles like in this >>example up to 63536 () by running the following command: >> >> ulimit -n 63536 >> >> Note that we do not recommend to set the for nofile for >> >>the oracle user equal to /proc/sys/fs/file-max. If you do that and the >>user uses up all the file handles, then the system would run out of file >> >>handles. This could mean that you won't be able to initiate new remote >>logins any more since the system won't be able to open any PAM modules >>which are required for performing a login. That's why we set the hard >>limit to 63536 and not to 65536. >> >> You also need to make sure that pam_limits is configured in the file >> >>/etc/pam.d/system-auth. This is the PAM module that will read the >>/etc/security/limits.conf file. The entry should read like: >> >> session required /lib/security/pam_limits.so >> session required /lib/security/pam_unix.so >> >> Now login to the oracle account again since the changes will become >>effective for new login sessions only. >>------------------- >> >>File System Primer - Novell CoolSolutionsWiki >>http://wiki.novell.com/index.php/File_System_Primer >> >> >>EXT3 >> >> * Most popular Linux file system, limited scalability in size and >> number of files >> * Journaled >> * POSIX extended access control >> >>EXT3 file system is a journaled file system that has the greatest use in >> >>Linux today. It is the "Linux" File system. It is quite robust and >>quick, although it does not scale well to large volumes nor a great >>number of files. Recently a scalability feature was added called htrees, >> >>which significantly improved EXT3's scalability. However it is still not >> >>as scalable as some of the other file systems listed even with htrees. >>It scales similar to NTFS with htrees. Without htrees, EXT3 does not >>handle more than about 5,000 files in a directory. >> >>-HTH >>-- >>Art Wildman >>National Weather Service Office, JAX FL. http://www.srh.noaa.gov/jax >>"If you choose not to decide, you still have made a choice" >>-Rush|Freewill >> >>-- >>redhat-sysadmin-list mailing list >>redhat-sysadmin-list at redhat.com >>https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> >>-- >>redhat-sysadmin-list mailing list >>redhat-sysadmin-list at redhat.com >>https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > >----- >Dominique D?mor? >Technical Services Coordinator >Rainbow District School Board >69 Young Street >Sudbury, Ontario >P3E 3G5 >Tel: (705) 674-3171 x. 258 >Fax: (705) 671-2442 > > >-- >redhat-sysadmin-list mailing list >redhat-sysadmin-list at redhat.com >https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > >-- >redhat-sysadmin-list mailing list >redhat-sysadmin-list at redhat.com >https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list ----- Dominique D?mor? Technical Services Coordinator Rainbow District School Board 69 Young Street Sudbury, Ontario P3E 3G5 Tel: (705) 674-3171 x. 258 Fax: (705) 671-2442 -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From hjnmolly at hetnet.nl Thu Oct 5 07:04:41 2006 From: hjnmolly at hetnet.nl (hjnmolly at hetnet.nl) Date: Thu, 5 Oct 2006 09:04:41 +0200 Subject: Increasing number of allocated file handles References: Message-ID: Since oracle does not hide secrets, reviewing the installation prerequisites and mangement documentation usally,solve the problem. regards hjnm ________________________________ Van: redhat-sysadmin-list-bounces at redhat.com namens Dominique Demore Verzonden: di 3-10-2006 19:51 Aan: redhat-sysadmin-list at redhat.com Onderwerp: Increasing number of allocated file handles Hi Everyone, On our Oracle Application server, we have noticed that we are running out of file handles. Once the number of used file handles reaches 0, the application crashes/reset itself. I have increased the number of file handles from 65536 to 104854, but I am still seeing the problem. Should the number of allocated file handles be increase also, if so, where is the file to modify it. (*note: the second column will hit 0 everyday at ~9:00 when everyone is logging into the system.) ------ [root at server fs]# cat /proc/sys/fs/file-nr 39937 7405 104854 [root at server fs]# ------- Any thoughts/suggestions, Thanks. -- Dominique ----- Dominique D?mor? Technical Services Coordinator Rainbow District School Board 69 Young Street Sudbury, Ontario P3E 3G5 Tel: (705) 674-3171 x. 258 Fax: (705) 671-2442 -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From CHort at caed.uscourts.gov Thu Oct 5 11:02:11 2006 From: CHort at caed.uscourts.gov (CHort at caed.uscourts.gov) Date: Thu, 5 Oct 2006 04:02:11 -0700 Subject: Cheree Hort/CAED/09/USCOURTS is out of the office. Message-ID: I will be out of the office starting 10/05/2006 and will not return until 10/11/2006. I will respond to your message when I return. ;o> From demored at rainbowschools.ca Thu Oct 5 11:48:45 2006 From: demored at rainbowschools.ca (Dominique Demore) Date: Thu, 05 Oct 2006 07:48:45 -0400 Subject: Increasing number of allocated file handles In-Reply-To: <001f01c6e7f1$927df260$0400a8c0@Hope> References: <001f01c6e7f1$927df260$0400a8c0@Hope> Message-ID: redhat-sysadmin-list at redhat.com writes: ># cat /proc/sys/fs/file-nr >39937 19888 131072 >| | | >| | | >| | maximum open file descriptors >| total free allocated file descriptors >total allocated file descriptors >(the number of file descriptors allocated since boot) Just for some clarification. I have 2 different methods of reading this file. One is the method above, the other is as follows: Column 1: Total allocated file handles Column 2: Currently used file handles Column 3: Maximum file handles that can be allocated As seen, Columns 1&3 are the same, but the second is the opposite. Is the method use to read this file dependant on the RedHat version, if so. We are using RHEL 2.1AS with kernel 2.4.32 Thanks. ----- Dominique D?mor? Technical Services Coordinator Rainbow District School Board 69 Young Street Sudbury, Ontario P3E 3G5 Tel: (705) 674-3171 x. 258 Fax: (705) 671-2442 From rmckeever at earthlink.net Thu Oct 5 13:19:50 2006 From: rmckeever at earthlink.net (Ron McKeever) Date: Thu, 5 Oct 2006 06:19:50 -0700 Subject: Increasing number of allocated file handles In-Reply-To: Message-ID: <001b01c6e880$f0251da0$0400a8c0@Hope> >From kernel source... : C1 - the total number of file structs allocated by the system, i.e, the value given by `nr_files' in the kernel sources. C2 - the number of free file structs, i.e, the value given by `nr_free_files'. nr_free_files' simply tells the kernel how many (of the `nr_files' that are allocated) are free. C3 - the maximum number of file structs which may be allocated by the system. This will be the value of `max_files' in the kernel sources and is also available by examining /proc/sys/fs/file-max. -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Dominique Demore Sent: Thursday, October 05, 2006 3:49 AM To: redhat-sysadmin-list at redhat.com Subject: Re: Increasing number of allocated file handles redhat-sysadmin-list at redhat.com writes: ># cat /proc/sys/fs/file-nr >39937 19888 131072 >| | | >| | | >| | maximum open file descriptors >| total free allocated file descriptors >total allocated file descriptors >(the number of file descriptors allocated since boot) Just for some clarification. I have 2 different methods of reading this file. One is the method above, the other is as follows: Column 1: Total allocated file handles Column 2: Currently used file handles Column 3: Maximum file handles that can be allocated As seen, Columns 1&3 are the same, but the second is the opposite. Is the method use to read this file dependant on the RedHat version, if so. We are using RHEL 2.1AS with kernel 2.4.32 Thanks. ----- Dominique D?mor? Technical Services Coordinator Rainbow District School Board 69 Young Street Sudbury, Ontario P3E 3G5 Tel: (705) 674-3171 x. 258 Fax: (705) 671-2442 -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From rmckeever at earthlink.net Thu Oct 5 13:32:19 2006 From: rmckeever at earthlink.net (Ron McKeever) Date: Thu, 5 Oct 2006 06:32:19 -0700 Subject: Increasing number of allocated file handles In-Reply-To: Message-ID: <001c01c6e882$ae7b3360$0400a8c0@Hope> Although redhat manual states it like, /proc/sys/fs/file-nr : 1. number of allocated file handles. 2. the number of file handles currently being used. 3. the max number of file handles. -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Dominique Demore Sent: Thursday, October 05, 2006 3:49 AM To: redhat-sysadmin-list at redhat.com Subject: Re: Increasing number of allocated file handles redhat-sysadmin-list at redhat.com writes: ># cat /proc/sys/fs/file-nr >39937 19888 131072 >| | | >| | | >| | maximum open file descriptors >| total free allocated file descriptors >total allocated file descriptors >(the number of file descriptors allocated since boot) Just for some clarification. I have 2 different methods of reading this file. One is the method above, the other is as follows: Column 1: Total allocated file handles Column 2: Currently used file handles Column 3: Maximum file handles that can be allocated As seen, Columns 1&3 are the same, but the second is the opposite. Is the method use to read this file dependant on the RedHat version, if so. We are using RHEL 2.1AS with kernel 2.4.32 Thanks. ----- Dominique D?mor? Technical Services Coordinator Rainbow District School Board 69 Young Street Sudbury, Ontario P3E 3G5 Tel: (705) 674-3171 x. 258 Fax: (705) 671-2442 -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From jastrolo at gmail.com Wed Oct 11 21:06:01 2006 From: jastrolo at gmail.com (Joe Astrologo) Date: Wed, 11 Oct 2006 17:06:01 -0400 Subject: RHN Monitoring Message-ID: <879d1e490610111406hcdd52cbx6be5dedee6aac436@mail.gmail.com> How can I get RHN to Monitor my servers? Is this feature available? -------------- next part -------------- An HTML attachment was scrubbed... URL: From JMARTI05 at intersil.com Thu Oct 12 13:10:51 2006 From: JMARTI05 at intersil.com (Martin, Jonathan (Contractor)) Date: Thu, 12 Oct 2006 09:10:51 -0400 Subject: RHN Monitoring In-Reply-To: <879d1e490610111406hcdd52cbx6be5dedee6aac436@mail.gmail.com> Message-ID: <13E204E614D8E04FAF594C9AA9ED0BB70444F7D4@PBCOMX02.intersil.corp> RHN monitors patch status of your servers, but that's it as far as I know. There is no facility to tell (for example) when your partitions fill up or when your servers go down. The service is passive (your server contacts RHN) and updates what patches it's got. That's all that I'm aware of. -Jonathan ________________________________ From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Joe Astrologo Sent: Wednesday, October 11, 2006 5:06 PM To: redhat-sysadmin-list at redhat.com Subject: RHN Monitoring How can I get RHN to Monitor my servers? Is this feature available? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Brian.Canada at bhpbilliton.com Thu Oct 12 13:21:44 2006 From: Brian.Canada at bhpbilliton.com (Canada, Brian) Date: Thu, 12 Oct 2006 08:21:44 -0500 Subject: RHN Monitoring Message-ID: <504BEF5D580A67448E7F3A3C575BC808967BBB@enthou-xch01.americas.ent.bhpbilliton.net> Actually RHN offers a Monitoring module. http://www.redhat.com/rhn/rhndetails/monitoring/ The other modules are less than $100 per server so I would assume it would be around the same price. Brian ________________________________ From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Martin, Jonathan (Contractor) Sent: Thursday, October 12, 2006 8:11 AM To: redhat-sysadmin-list at redhat.com Subject: RE: RHN Monitoring RHN monitors patch status of your servers, but that's it as far as I know. There is no facility to tell (for example) when your partitions fill up or when your servers go down. The service is passive (your server contacts RHN) and updates what patches it's got. That's all that I'm aware of. -Jonathan ________________________________ From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Joe Astrologo Sent: Wednesday, October 11, 2006 5:06 PM To: redhat-sysadmin-list at redhat.com Subject: RHN Monitoring How can I get RHN to Monitor my servers? Is this feature available? This message and any attached files may contain information that is confidential and/or subject of legal privilege intended only for use by the intended recipient. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, be advised that you have received this message in error and that any dissemination, copying or use of this message or attachment is strictly forbidden, as is the disclosure of the information therein. If you have received this message in error please notify the sender immediately and delete the message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Art.Wildman at noaa.gov Mon Oct 16 21:57:39 2006 From: Art.Wildman at noaa.gov (Art Wildman) Date: Mon, 16 Oct 2006 17:57:39 -0400 Subject: RHN Monitoring In-Reply-To: <879d1e490610111406hcdd52cbx6be5dedee6aac436@mail.gmail.com> References: <879d1e490610111406hcdd52cbx6be5dedee6aac436@mail.gmail.com> Message-ID: <45340053.40404@noaa.gov> Joe Astrologo wrote: > How can I get RHN to Monitor my servers? > If you just want up2date information, here's an /etc/cron.daily/up2date.sh script I use. System Monitoring http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/ch-sysinfo.html -- Art Wildman - http://www.srh.noaa.gov/jax National Weather Service Office, JAX FL. "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: up2date.sh URL: From reidkr at spawar.navy.mil Tue Oct 24 17:10:39 2006 From: reidkr at spawar.navy.mil (K. Reid Wightman) Date: Tue, 24 Oct 2006 10:10:39 -0700 Subject: AS3 "Not Enough Memory" workaround? Message-ID: <453E490F.4060105@spawar.navy.mil> Hi All - I'm installing RHEL AS3 on a system with 1G of memory. Unfortunately, loader runs and immediately states that I don't have enough memory to install (then allows me to reboot). Is there a loader option to disable the memory check and install the system anyway? Or any other bootstrapping tricks? Thanks, Reid From theillien at yahoo.com Sat Oct 28 03:28:08 2006 From: theillien at yahoo.com (Mathew Snyder) Date: Fri, 27 Oct 2006 23:28:08 -0400 Subject: Software RAID Configuration problem Message-ID: <4542CE48.8010203@yahoo.com> I posted this to rhn-users before realizing there is an actual sysadmin list so I'm posting it here now. I have an RHEL 4 AS virtual machine running under VMWare with the following configuration: /dev/sda1 / 650M /dev/sda2 /var 500M /dev/sda3 /home 500M (Linux raid autodetect for software raid) /dev/sda4 Extended partition /dev/sda5 swap 128M /dev/sdb1 /usr 1.65G /dev/sdb2 /tmp 100M /dev/sdb3 Linux raid autodetect for software raid with /dev/sda3) Here's the run down: I started with a single /home partition on /dev/sda and plenty of unallocated space on /dev/sdb. I followed directions in Michael Jang's RHCE book for mirroring the /home partition. They are as follows: Copy the /home data to /tmp then # unmount /home # fdisk /dev/sda Command (m for help) : t Partition number (1-4) 3 Partition ID (L to list options): FD Command (m for help) : w # fdisk /dev/sdb Command (m for help) : t Partition number (1-4) 4 Partition ID (L to list options): FD Command (m for help) : w I then edit /etc/raidtab and add the following information: raiddev /dev/md0 raid-level 1 nr-raid-disks 2 nr-spare-disk 0 persistent-superblock 1 chunck-size 4 device /dev/sda3 raid-disk 0 device /dev/sdb4 raid-disk 1 I then create the raid and format it: # mkraid -R /dev/md0 (this runs to completion with no errors) # mkfs -j /dev/md0 I then run e2label so I can apply a label to /dev/md0 and use the LABEL=/home entry in /etc/fstab. However, when I reboot it says it can't mount the special device: LABEL=/home no such device, etc. When I log in, I run e2label on /dev/md0 and it isn't found. If I run e2label on either /dev/sda3 or /dev/sdb4 it comes back with /home. If I mount /dev/md0 it mounts fine. I've changed the format command to `mke2fs -j -L /home /dev/md0` thinking it would give me better results but they end up the same. It won't mound /dev/md0 based on the label alone. What might I be doing wrong? Thanks, Mathew Snyder From rmckeever at earthlink.net Sat Oct 28 04:09:00 2006 From: rmckeever at earthlink.net (Ron McKeever) Date: Fri, 27 Oct 2006 21:09:00 -0700 Subject: Software RAID Configuration problem In-Reply-To: <4542CE48.8010203@yahoo.com> Message-ID: <000001c6fa46$ccbad990$0400a8c0@Hope> Rename /dev/sda3 and /dev/sdb4 with something other that /home, then label /dev/md0 as /home... You could also try the full syntax in /etc/fstab instead of the LABEL=/home, like: /dev/md0 /home ext3 defaults 1 2 Ron -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Mathew Snyder Sent: Friday, October 27, 2006 7:28 PM To: redhat-sysadmin-list at redhat.com Subject: Software RAID Configuration problem I posted this to rhn-users before realizing there is an actual sysadmin list so I'm posting it here now. I have an RHEL 4 AS virtual machine running under VMWare with the following configuration: /dev/sda1 / 650M /dev/sda2 /var 500M /dev/sda3 /home 500M (Linux raid autodetect for software raid) /dev/sda4 Extended partition /dev/sda5 swap 128M /dev/sdb1 /usr 1.65G /dev/sdb2 /tmp 100M /dev/sdb3 Linux raid autodetect for software raid with /dev/sda3) Here's the run down: I started with a single /home partition on /dev/sda and plenty of unallocated space on /dev/sdb. I followed directions in Michael Jang's RHCE book for mirroring the /home partition. They are as follows: Copy the /home data to /tmp then # unmount /home # fdisk /dev/sda Command (m for help) : t Partition number (1-4) 3 Partition ID (L to list options): FD Command (m for help) : w # fdisk /dev/sdb Command (m for help) : t Partition number (1-4) 4 Partition ID (L to list options): FD Command (m for help) : w I then edit /etc/raidtab and add the following information: raiddev /dev/md0 raid-level 1 nr-raid-disks 2 nr-spare-disk 0 persistent-superblock 1 chunck-size 4 device /dev/sda3 raid-disk 0 device /dev/sdb4 raid-disk 1 I then create the raid and format it: # mkraid -R /dev/md0 (this runs to completion with no errors) # mkfs -j /dev/md0 I then run e2label so I can apply a label to /dev/md0 and use the LABEL=/home entry in /etc/fstab. However, when I reboot it says it can't mount the special device: LABEL=/home no such device, etc. When I log in, I run e2label on /dev/md0 and it isn't found. If I run e2label on either /dev/sda3 or /dev/sdb4 it comes back with /home. If I mount /dev/md0 it mounts fine. I've changed the format command to `mke2fs -j -L /home /dev/md0` thinking it would give me better results but they end up the same. It won't mound /dev/md0 based on the label alone. What might I be doing wrong? Thanks, Mathew Snyder -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From theillien at yahoo.com Sat Oct 28 05:01:23 2006 From: theillien at yahoo.com (Mathew Snyder) Date: Sat, 28 Oct 2006 01:01:23 -0400 Subject: Software RAID Configuration problem In-Reply-To: <000001c6fa46$ccbad990$0400a8c0@Hope> References: <000001c6fa46$ccbad990$0400a8c0@Hope> Message-ID: <4542E423.5070001@yahoo.com> Using the device name (/dev/md0) certainly works but I'd like to figure out how to do it using LABEL= too. I did as you suggested and relabeled both /dev/sda3 and /dev/sdb3 to /home-old and then reran `mkraid -R /dev/md0` and `mke2fs -j -L /home /dev/md0`. I then ran `mount /home`. It seems to have mounted ok but when I rebooted I still get the error about no special device Mathew Snyder Ron McKeever wrote: > Rename /dev/sda3 and /dev/sdb4 with something other that /home, then label > /dev/md0 as /home... > > You could also try the full syntax in /etc/fstab instead of the LABEL=/home, > like: > /dev/md0 /home ext3 defaults 1 2 > > Ron > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Mathew Snyder > Sent: Friday, October 27, 2006 7:28 PM > To: redhat-sysadmin-list at redhat.com > Subject: Software RAID Configuration problem > > I posted this to rhn-users before realizing there is an actual sysadmin > list so I'm posting it here now. > > I have an RHEL 4 AS virtual machine running under VMWare with the > following configuration: > > /dev/sda1 / 650M > /dev/sda2 /var 500M > /dev/sda3 /home 500M (Linux raid autodetect for software raid) > /dev/sda4 Extended partition > /dev/sda5 swap 128M > > /dev/sdb1 /usr 1.65G > /dev/sdb2 /tmp 100M > /dev/sdb3 Linux raid autodetect for software raid with /dev/sda3) > > Here's the run down: I started with a single /home partition on > /dev/sda and plenty of unallocated space on /dev/sdb. I followed > directions in Michael Jang's RHCE book for mirroring the /home > partition. They are as follows: > > Copy the /home data to /tmp then > > # unmount /home > # fdisk /dev/sda > Command (m for help) : t > Partition number (1-4) > 3 > Partition ID (L to list options): FD > Command (m for help) : w > > # fdisk /dev/sdb > Command (m for help) : t > Partition number (1-4) > 4 > Partition ID (L to list options): FD > Command (m for help) : w > > I then edit /etc/raidtab and add the following information: > raiddev /dev/md0 > raid-level 1 > > nr-raid-disks 2 > nr-spare-disk 0 > persistent-superblock 1 > chunck-size 4 > device /dev/sda3 > raid-disk 0 > device /dev/sdb4 > raid-disk 1 > > > I then create the raid and format it: > # mkraid -R /dev/md0 (this runs to completion with no errors) > # mkfs -j /dev/md0 > > I then run e2label so I can apply a label to /dev/md0 and use the > LABEL=/home entry in /etc/fstab. However, when I reboot it says it > can't mount the special device: LABEL=/home no such device, etc. > > When I log in, I run e2label on /dev/md0 and it isn't found. If I run > e2label on either /dev/sda3 or /dev/sdb4 it comes back with /home. > > If I mount /dev/md0 it mounts fine. > > I've changed the format command to `mke2fs -j -L /home /dev/md0` > thinking it would give me better results but they end up the same. It > won't mound /dev/md0 based on the label alone. > > What might I be doing wrong? > > Thanks, > Mathew Snyder > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > From theillien at yahoo.com Sat Oct 28 05:04:02 2006 From: theillien at yahoo.com (Mathew Snyder) Date: Sat, 28 Oct 2006 01:04:02 -0400 Subject: Software RAID Configuration problem In-Reply-To: <000001c6fa46$ccbad990$0400a8c0@Hope> References: <000001c6fa46$ccbad990$0400a8c0@Hope> Message-ID: <4542E4C2.6030609@yahoo.com> I logged in and ran `mount /home` and got mount: no such partition found. I then checked the label on /dev/md0 but is came back with: e2label: invalid argument while trying to open /dev/md0 Couldn't find valid filesystem superblock. Mathew Snyder Ron McKeever wrote: > Rename /dev/sda3 and /dev/sdb4 with something other that /home, then label > /dev/md0 as /home... > > You could also try the full syntax in /etc/fstab instead of the LABEL=/home, > like: > /dev/md0 /home ext3 defaults 1 2 > > Ron > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Mathew Snyder > Sent: Friday, October 27, 2006 7:28 PM > To: redhat-sysadmin-list at redhat.com > Subject: Software RAID Configuration problem > > I posted this to rhn-users before realizing there is an actual sysadmin > list so I'm posting it here now. > > I have an RHEL 4 AS virtual machine running under VMWare with the > following configuration: > > /dev/sda1 / 650M > /dev/sda2 /var 500M > /dev/sda3 /home 500M (Linux raid autodetect for software raid) > /dev/sda4 Extended partition > /dev/sda5 swap 128M > > /dev/sdb1 /usr 1.65G > /dev/sdb2 /tmp 100M > /dev/sdb3 Linux raid autodetect for software raid with /dev/sda3) > > Here's the run down: I started with a single /home partition on > /dev/sda and plenty of unallocated space on /dev/sdb. I followed > directions in Michael Jang's RHCE book for mirroring the /home > partition. They are as follows: > > Copy the /home data to /tmp then > > # unmount /home > # fdisk /dev/sda > Command (m for help) : t > Partition number (1-4) > 3 > Partition ID (L to list options): FD > Command (m for help) : w > > # fdisk /dev/sdb > Command (m for help) : t > Partition number (1-4) > 4 > Partition ID (L to list options): FD > Command (m for help) : w > > I then edit /etc/raidtab and add the following information: > raiddev /dev/md0 > raid-level 1 > > nr-raid-disks 2 > nr-spare-disk 0 > persistent-superblock 1 > chunck-size 4 > device /dev/sda3 > raid-disk 0 > device /dev/sdb4 > raid-disk 1 > > > I then create the raid and format it: > # mkraid -R /dev/md0 (this runs to completion with no errors) > # mkfs -j /dev/md0 > > I then run e2label so I can apply a label to /dev/md0 and use the > LABEL=/home entry in /etc/fstab. However, when I reboot it says it > can't mount the special device: LABEL=/home no such device, etc. > > When I log in, I run e2label on /dev/md0 and it isn't found. If I run > e2label on either /dev/sda3 or /dev/sdb4 it comes back with /home. > > If I mount /dev/md0 it mounts fine. > > I've changed the format command to `mke2fs -j -L /home /dev/md0` > thinking it would give me better results but they end up the same. It > won't mound /dev/md0 based on the label alone. > > What might I be doing wrong? > > Thanks, > Mathew Snyder > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > From rmckeever at earthlink.net Sat Oct 28 06:08:17 2006 From: rmckeever at earthlink.net (Ron McKeever) Date: Fri, 27 Oct 2006 23:08:17 -0700 Subject: Software RAID Configuration problem In-Reply-To: <4542E4C2.6030609@yahoo.com> Message-ID: <000701c6fa57$76729f80$0400a8c0@Hope> I don't think your problem is labels, I think it is that your RAID array isn't starting when mounting occurs. When you created /dev/sdb4 is it the same size as /dev/sda3? What does /proc/mdstat show? These might help: http://kbase.redhat.com/faq/FAQ_43_2812.shtm -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Mathew Snyder Sent: Friday, October 27, 2006 9:04 PM To: redhat-sysadmin-list at redhat.com Subject: Re: Software RAID Configuration problem I logged in and ran `mount /home` and got mount: no such partition found. I then checked the label on /dev/md0 but is came back with: e2label: invalid argument while trying to open /dev/md0 Couldn't find valid filesystem superblock. Mathew Snyder Ron McKeever wrote: > Rename /dev/sda3 and /dev/sdb4 with something other that /home, then label > /dev/md0 as /home... > > You could also try the full syntax in /etc/fstab instead of the LABEL=/home, > like: > /dev/md0 /home ext3 defaults 1 2 > > Ron > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Mathew Snyder > Sent: Friday, October 27, 2006 7:28 PM > To: redhat-sysadmin-list at redhat.com > Subject: Software RAID Configuration problem > > I posted this to rhn-users before realizing there is an actual sysadmin > list so I'm posting it here now. > > I have an RHEL 4 AS virtual machine running under VMWare with the > following configuration: > > /dev/sda1 / 650M > /dev/sda2 /var 500M > /dev/sda3 /home 500M (Linux raid autodetect for software raid) > /dev/sda4 Extended partition > /dev/sda5 swap 128M > > /dev/sdb1 /usr 1.65G > /dev/sdb2 /tmp 100M > /dev/sdb3 Linux raid autodetect for software raid with /dev/sda3) > > Here's the run down: I started with a single /home partition on > /dev/sda and plenty of unallocated space on /dev/sdb. I followed > directions in Michael Jang's RHCE book for mirroring the /home > partition. They are as follows: > > Copy the /home data to /tmp then > > # unmount /home > # fdisk /dev/sda > Command (m for help) : t > Partition number (1-4) > 3 > Partition ID (L to list options): FD > Command (m for help) : w > > # fdisk /dev/sdb > Command (m for help) : t > Partition number (1-4) > 4 > Partition ID (L to list options): FD > Command (m for help) : w > > I then edit /etc/raidtab and add the following information: > raiddev /dev/md0 > raid-level 1 > > nr-raid-disks 2 > nr-spare-disk 0 > persistent-superblock 1 > chunck-size 4 > device /dev/sda3 > raid-disk 0 > device /dev/sdb4 > raid-disk 1 > > > I then create the raid and format it: > # mkraid -R /dev/md0 (this runs to completion with no errors) > # mkfs -j /dev/md0 > > I then run e2label so I can apply a label to /dev/md0 and use the > LABEL=/home entry in /etc/fstab. However, when I reboot it says it > can't mount the special device: LABEL=/home no such device, etc. > > When I log in, I run e2label on /dev/md0 and it isn't found. If I run > e2label on either /dev/sda3 or /dev/sdb4 it comes back with /home. > > If I mount /dev/md0 it mounts fine. > > I've changed the format command to `mke2fs -j -L /home /dev/md0` > thinking it would give me better results but they end up the same. It > won't mound /dev/md0 based on the label alone. > > What might I be doing wrong? > > Thanks, > Mathew Snyder > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list From theillien at yahoo.com Sat Oct 28 09:17:53 2006 From: theillien at yahoo.com (Mathew Snyder) Date: Sat, 28 Oct 2006 05:17:53 -0400 Subject: Software RAID Configuration problem In-Reply-To: <000701c6fa57$76729f80$0400a8c0@Hope> References: <000701c6fa57$76729f80$0400a8c0@Hope> Message-ID: <45432041.2090106@yahoo.com> You are correct. my RAID array isn't starting. During boot I get this: Starting up RAID devices: /dev/md0(skipped) Once I log in I can run `raidstart /dev/md0` and it comes up fine after which I am able to mount directories to it. Why wouldn't it start up during boot? I looked at that article but it basically explains how to create an array using mdadm instead of raidtools. It didn't really offer much help in the way of getting it to start on boot. Mathew Ron McKeever wrote: > I don't think your problem is labels, I think it is that your RAID array > isn't starting when mounting occurs. When you created /dev/sdb4 is it the > same size as /dev/sda3? What does /proc/mdstat show? > These might help: > http://kbase.redhat.com/faq/FAQ_43_2812.shtm > > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Mathew Snyder > Sent: Friday, October 27, 2006 9:04 PM > To: redhat-sysadmin-list at redhat.com > Subject: Re: Software RAID Configuration problem > > I logged in and ran `mount /home` and got mount: no such partition > found. I then checked the label on /dev/md0 but is came back with: > e2label: invalid argument while trying to open /dev/md0 > Couldn't find valid filesystem superblock. > > Mathew Snyder > > Ron McKeever wrote: >> Rename /dev/sda3 and /dev/sdb4 with something other that /home, then label >> /dev/md0 as /home... >> >> You could also try the full syntax in /etc/fstab instead of the > LABEL=/home, >> like: >> /dev/md0 /home ext3 defaults 1 2 >> >> Ron >> >> -----Original Message----- >> From: redhat-sysadmin-list-bounces at redhat.com >> [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Mathew > Snyder >> Sent: Friday, October 27, 2006 7:28 PM >> To: redhat-sysadmin-list at redhat.com >> Subject: Software RAID Configuration problem >> >> I posted this to rhn-users before realizing there is an actual sysadmin >> list so I'm posting it here now. >> >> I have an RHEL 4 AS virtual machine running under VMWare with the >> following configuration: >> >> /dev/sda1 / 650M >> /dev/sda2 /var 500M >> /dev/sda3 /home 500M (Linux raid autodetect for software raid) >> /dev/sda4 Extended partition >> /dev/sda5 swap 128M >> >> /dev/sdb1 /usr 1.65G >> /dev/sdb2 /tmp 100M >> /dev/sdb3 Linux raid autodetect for software raid with /dev/sda3) >> >> Here's the run down: I started with a single /home partition on >> /dev/sda and plenty of unallocated space on /dev/sdb. I followed >> directions in Michael Jang's RHCE book for mirroring the /home >> partition. They are as follows: >> >> Copy the /home data to /tmp then >> >> # unmount /home >> # fdisk /dev/sda >> Command (m for help) : t >> Partition number (1-4) >> 3 >> Partition ID (L to list options): FD >> Command (m for help) : w >> >> # fdisk /dev/sdb >> Command (m for help) : t >> Partition number (1-4) >> 4 >> Partition ID (L to list options): FD >> Command (m for help) : w >> >> I then edit /etc/raidtab and add the following information: >> raiddev /dev/md0 >> raid-level 1 >> >> nr-raid-disks 2 >> nr-spare-disk 0 >> persistent-superblock 1 >> chunck-size 4 >> device /dev/sda3 >> raid-disk 0 >> device /dev/sdb4 >> raid-disk 1 >> >> >> I then create the raid and format it: >> # mkraid -R /dev/md0 (this runs to completion with no errors) >> # mkfs -j /dev/md0 >> >> I then run e2label so I can apply a label to /dev/md0 and use the >> LABEL=/home entry in /etc/fstab. However, when I reboot it says it >> can't mount the special device: LABEL=/home no such device, etc. >> >> When I log in, I run e2label on /dev/md0 and it isn't found. If I run >> e2label on either /dev/sda3 or /dev/sdb4 it comes back with /home. >> >> If I mount /dev/md0 it mounts fine. >> >> I've changed the format command to `mke2fs -j -L /home /dev/md0` >> thinking it would give me better results but they end up the same. It >> won't mound /dev/md0 based on the label alone. >> >> What might I be doing wrong? >> >> Thanks, >> Mathew Snyder >> >> -- >> redhat-sysadmin-list mailing list >> redhat-sysadmin-list at redhat.com >> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> >> -- >> redhat-sysadmin-list mailing list >> redhat-sysadmin-list at redhat.com >> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > From theillien at yahoo.com Sat Oct 28 09:22:49 2006 From: theillien at yahoo.com (Mathew Snyder) Date: Sat, 28 Oct 2006 05:22:49 -0400 Subject: Software RAID Configuration problem In-Reply-To: <000701c6fa57$76729f80$0400a8c0@Hope> References: <000701c6fa57$76729f80$0400a8c0@Hope> Message-ID: <45432169.5010101@yahoo.com> I found an article online that gave the answer I was looking for. From http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch26_:_Linux_Software_RAID: Do not use labels in the /etc/fstab file for RAID devices; just use the real device name, such as /dev/md0. On startup, the /etc/rc.d/rc.sysinit script checks the /etc/fstab file for device entries that match RAID set names in the /etc/raidtab file. The script will not automatically start the RAID set driver for the RAID set if it doesn't find a match. Device mounting then occurs later on in the boot process. Mounting a RAID device that doesn't have a loaded driver can corrupt your data and produce this error. Thanks for the help. Mathew Ron McKeever wrote: > I don't think your problem is labels, I think it is that your RAID array > isn't starting when mounting occurs. When you created /dev/sdb4 is it the > same size as /dev/sda3? What does /proc/mdstat show? > These might help: > http://kbase.redhat.com/faq/FAQ_43_2812.shtm > > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Mathew Snyder > Sent: Friday, October 27, 2006 9:04 PM > To: redhat-sysadmin-list at redhat.com > Subject: Re: Software RAID Configuration problem > > I logged in and ran `mount /home` and got mount: no such partition > found. I then checked the label on /dev/md0 but is came back with: > e2label: invalid argument while trying to open /dev/md0 > Couldn't find valid filesystem superblock. > > Mathew Snyder > > Ron McKeever wrote: >> Rename /dev/sda3 and /dev/sdb4 with something other that /home, then label >> /dev/md0 as /home... >> >> You could also try the full syntax in /etc/fstab instead of the > LABEL=/home, >> like: >> /dev/md0 /home ext3 defaults 1 2 >> >> Ron >> >> -----Original Message----- >> From: redhat-sysadmin-list-bounces at redhat.com >> [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Mathew > Snyder >> Sent: Friday, October 27, 2006 7:28 PM >> To: redhat-sysadmin-list at redhat.com >> Subject: Software RAID Configuration problem >> >> I posted this to rhn-users before realizing there is an actual sysadmin >> list so I'm posting it here now. >> >> I have an RHEL 4 AS virtual machine running under VMWare with the >> following configuration: >> >> /dev/sda1 / 650M >> /dev/sda2 /var 500M >> /dev/sda3 /home 500M (Linux raid autodetect for software raid) >> /dev/sda4 Extended partition >> /dev/sda5 swap 128M >> >> /dev/sdb1 /usr 1.65G >> /dev/sdb2 /tmp 100M >> /dev/sdb3 Linux raid autodetect for software raid with /dev/sda3) >> >> Here's the run down: I started with a single /home partition on >> /dev/sda and plenty of unallocated space on /dev/sdb. I followed >> directions in Michael Jang's RHCE book for mirroring the /home >> partition. They are as follows: >> >> Copy the /home data to /tmp then >> >> # unmount /home >> # fdisk /dev/sda >> Command (m for help) : t >> Partition number (1-4) >> 3 >> Partition ID (L to list options): FD >> Command (m for help) : w >> >> # fdisk /dev/sdb >> Command (m for help) : t >> Partition number (1-4) >> 4 >> Partition ID (L to list options): FD >> Command (m for help) : w >> >> I then edit /etc/raidtab and add the following information: >> raiddev /dev/md0 >> raid-level 1 >> >> nr-raid-disks 2 >> nr-spare-disk 0 >> persistent-superblock 1 >> chunck-size 4 >> device /dev/sda3 >> raid-disk 0 >> device /dev/sdb4 >> raid-disk 1 >> >> >> I then create the raid and format it: >> # mkraid -R /dev/md0 (this runs to completion with no errors) >> # mkfs -j /dev/md0 >> >> I then run e2label so I can apply a label to /dev/md0 and use the >> LABEL=/home entry in /etc/fstab. However, when I reboot it says it >> can't mount the special device: LABEL=/home no such device, etc. >> >> When I log in, I run e2label on /dev/md0 and it isn't found. If I run >> e2label on either /dev/sda3 or /dev/sdb4 it comes back with /home. >> >> If I mount /dev/md0 it mounts fine. >> >> I've changed the format command to `mke2fs -j -L /home /dev/md0` >> thinking it would give me better results but they end up the same. It >> won't mound /dev/md0 based on the label alone. >> >> What might I be doing wrong? >> >> Thanks, >> Mathew Snyder >> >> -- >> redhat-sysadmin-list mailing list >> redhat-sysadmin-list at redhat.com >> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> >> -- >> redhat-sysadmin-list mailing list >> redhat-sysadmin-list at redhat.com >> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list >> > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > From rob.myroon at tartan.ca Tue Oct 31 21:49:51 2006 From: rob.myroon at tartan.ca (Rob Myroon) Date: Tue, 31 Oct 2006 21:49:51 -0000 Subject: Help using find command Message-ID: <456F516B.4000405@tartan.ca> Hi list, I am trying to tar up all the openoffice files on my server using the find command. The command I have come up with only tars the last file found by the find command. # find . -regex '.*\(odt\|ods\|sxc\)$' -exec cvzf /root/openofficefiles.tar.gz {} \; Can someone tell me how to make this work? (I realize that there are more openoffice extensions.) Thanks, Rob From rmckeever at earthlink.net Tue Oct 31 22:06:07 2006 From: rmckeever at earthlink.net (Ron McKeever) Date: Tue, 31 Oct 2006 14:06:07 -0800 Subject: Help using find command In-Reply-To: <456F516B.4000405@tartan.ca> Message-ID: <003101c6fd38$c65939d0$0400a8c0@Hope> How about: find . -regex '.*\(odt\|ods\|sxc\)$' | tar -c -T - | gzip > /root/openoffice.tar.gz then confirm with # tar -ztvf /root/openoffice.tar.gz Ron -----Original Message----- From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Rob Myroon Sent: Thursday, November 30, 2006 1:47 PM To: redhat-sysadmin-list at redhat.com Subject: Help using find command Hi list, I am trying to tar up all the openoffice files on my server using the find command. The command I have come up with only tars the last file found by the find command. # find . -regex '.*\(odt\|ods\|sxc\)$' -exec cvzf /root/openofficefiles.tar.gz {} \; Can someone tell me how to make this work? (I realize that there are more openoffice extensions.) Thanks, Rob -- redhat-sysadmin-list mailing list redhat-sysadmin-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From reidkr at spawar.navy.mil Tue Oct 31 22:14:44 2006 From: reidkr at spawar.navy.mil (K. Reid Wightman) Date: Tue, 31 Oct 2006 14:14:44 -0800 Subject: Help using find command In-Reply-To: <456F516B.4000405@tartan.ca> References: <456F516B.4000405@tartan.ca> Message-ID: <4547CAD4.4010909@spawar.navy.mil> Rob Myroon wrote: > Hi list, > > I am trying to tar up all the openoffice files on my server using the > find command. The command I have come up with only tars the last file > found by the find command. > > # find . -regex '.*\(odt\|ods\|sxc\)$' -exec cvzf > /root/openofficefiles.tar.gz {} \; Looking at the man page, it isn't really clear that exec doesn't work how you probably think it works. What's happening is, each file found is getting a separate tar instance run on it. That is, say 'find' finds two files a.odt and b.odt. First exec runs 'tar cvzf /root/openofficefiles.tar.gz a.odt' then exec runs 'tar cvzf /root/openofficefiles.tar.gz b.odt'. > Can someone tell me how to make this work? (I realize that there are > more openoffice extensions.) I would suggest trying: tar -c /root/openofficefiles.tar && find . -regex 'fancy-regex-foo' -exec tar -rv {} \; This will create the empty archive, then find the files and append them one-at-a-time to the end of the tarfile. It may be possible to append to a zipped tar archive, but I am not certain. Reid -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4062 bytes Desc: S/MIME Cryptographic Signature URL: From rob.myroon at tartan.ca Tue Oct 31 22:28:30 2006 From: rob.myroon at tartan.ca (Rob Myroon) Date: Tue, 31 Oct 2006 22:28:30 -0000 Subject: Help using find command In-Reply-To: <003101c6fd38$c65939d0$0400a8c0@Hope> References: <003101c6fd38$c65939d0$0400a8c0@Hope> Message-ID: <456F5A8A.4000900@tartan.ca> Thanks Ron. This works perfectly. Ron McKeever wrote: > How about: > > > > find . -regex '.*\(odt\|ods\|sxc\)$' | tar -c -T - | gzip > > /root/openoffice.tar.gz > > then > > confirm with > > # tar ?ztvf /root/openoffice.tar.gz > > > > Ron > > > > > > > > -----Original Message----- > From: redhat-sysadmin-list-bounces at redhat.com > [mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Rob Myroon > Sent: Thursday, November 30, 2006 1:47 PM > To: redhat-sysadmin-list at redhat.com > Subject: Help using find command > > > > Hi list, > > > > I am trying to tar up all the openoffice files on my server using the > > find command. The command I have come up with only tars the last file > > found by the find command. > > > > # find . -regex '.*\(odt\|ods\|sxc\)$' -exec cvzf > > /root/openofficefiles.tar.gz {} \; > > > > Can someone tell me how to make this work? (I realize that there are > > more openoffice extensions.) > > > > Thanks, > > > > Rob > > > > -- > > redhat-sysadmin-list mailing list > > redhat-sysadmin-list at redhat.com > > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list > > > ------------------------------------------------------------------------ > > -- > redhat-sysadmin-list mailing list > redhat-sysadmin-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list