1 2 Previous Next 21 Replies Latest reply: Sep 26, 2011 8:55 AM by Bruce RSS

    VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error

    Bruce
      Hello,
      Running the installer and get

      hardnofiles should be set to 8192 but was 0

      I ran create oracle sh

      ./createOracle.sh
      Adding group 'oinstall' with gid '54322' ...
      groupadd: group oinstall exists
      Adding group 'dba'
      groupadd: group dba exists
      Adding user 'oracle' with user id '54321', initial login group 'dba', supplementary group 'oinstall' and home directory '/home/oracle' ...
      User 'oracle' already exists ...
      uid=501(oracle) gid=501(dba) groups=501(dba)
      Creating user 'oracle' succeeded ...
      Verifying user 'oracle' OS prerequisites for Oracle VM Manager ...
      oracle soft nofile 8192
      oracle hard nofile 8192
      oracle soft nproc 4096
      oracle hard nproc 4096
      oracle soft core unlimited
      oracle hard core unlimited
      Setting user 'oracle' OS limits for Oracle VM Manager ...
      Altered file /etc/security/limits.conf
      Original file backed up at /etc/security/limits.conf.orabackup
      Verifying & setting of user limits succeeded ...
      Modifying iptables
      Adding rules to enable access to :
      7001 : Oracle VM Manager http
      7002 : Oracle VM Manager https
      15901 : Oracle VM Manager VM console proxy
      54321 : Oracle VM Manager core
      Saving old iptables config file to /etc/sysconfig/iptables.ovmm


      Here is

      cat /etc/security/limits.conf
      # /etc/security/limits.conf
      * soft nofile 8192
      * hard nofile 8192
      * soft nproc 4096
      * hard nproc 4096
      * soft core unlimited
      * hard core unlimited

      oracle soft nofile 8192
      oracle hard nofile 8192
      oracle soft nproc 4096
      oracle hard nproc 4096
      oracle soft core unlimited
      oracle hard core unlimited

      I even rebooted, but have not been able to get around this. Any suggestions would be helpful...

      Thanks!
        • 1. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
          Avi Miller-Oracle
          Bruce wrote:
          Running the installer and get
          hardnofiles should be set to 8192 but was 0
          Ensure you run the installer as root and not as the oracle user.
          • 2. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
            Bruce
            Thanks, but I was logged in as root when i ran the install script.

            [root@s08 disk]# id
            uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
            [root@s08 disk]# ./runInstaller.sh

            Oracle VM Manager Release 3.0.1 Installer

            Oracle VM Manager Installer log file:
            /tmp/ovmm-installer.selfextract_wN8838/install-2011-08-31-155452.log


            Please select an installation type:
            1: Simple
            2: Standard
            3: Uninstall
            4: Help

            Select Number (1-4):2

            Starting standard installation ...


            Verifying installation prerequisites ...
            hardnofiles should be set to 8192 but was 0
            Configuration verification failed ...
            [                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
            • 3. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
              wcoekaer
              is your user oracle a nis user?
              • 4. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
                Bruce
                I don't think so, not entirely sure how to tell; but we have never used NIS...

                [root@s08 disk]# grep oracle /etc/passwd
                oracle:x:501:501::/home/oracle:/bin/bash
                • 5. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
                  wcoekaer
                  hmm interesting. can you look at the install log and look for hardnofiles?
                  • 6. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
                    Bruce
                    It seems to look at 8192 and see 0?



                    [root@s08 oracle]# more /tmp/ovmm-installer.selfextract_wN8838/install-2011-08-31-155452.log
                    Traceback (most recent call last):
                    File "setup.py", line 31, in ?
                    installer.install(cfgFile, installersDir, uuid, installType, assumeYes)
                    File "/tmp/ovmm-installer.selfextract_wN8838/ovm/installer/installer.py", line 180, in install
                    self._verify_prerequisites()
                    File "/tmp/ovmm-installer.selfextract_wN8838/ovm/installer/installer.py", line 302, in verifyprerequisites
                    self.prerequisites.verifyGeneral()
                    File "/tmp/ovmm-installer.selfextract_wN8838/ovm/installer/prerequisites.py", line 64, in verifyGeneral
                    raise Exception("Prerequisite check failed ...")
                    Exception: Prerequisite check failed ...
                    ler INFO
                    08-31 15:54 ovm.installer.prerequisites INFO
                    08-31 15:54 ovm.installer.prerequisites INFO Verifying installation prerequisites ...
                    08-31 15:54 ovm.installer.prerequisites DEBUG * Checking if run by root user
                    08-31 15:54 ovm.installer.prerequisites DEBUG * Checking if OS is at least Oracle Linux version 5.5
                    08-31 15:54 system.process DEBUG system.process.start
                    08-31 15:54 system.process DEBUG system.process.run ended, exitcode was 0
                    08-31 15:54 system.process DEBUG system.process.run stdout:
                    unzip-5.52-3.el5

                    08-31 15:54 system.process DEBUG system.process.run stderr:

                    08-31 15:54 ovm.installer.prerequisites DEBUG * Checking if hostname is pingable
                    08-31 15:54 system.net DEBUG pingMachine s08.first4db.local, timeout=5, recheck=False
                    08-31 15:54 system.process DEBUG system.process.start
                    08-31 15:54 system.process DEBUG system.process.run ended, exitcode was 0
                    08-31 15:54 system.process DEBUG system.process.run stdout:
                    PING s08.first4db.local (127.0.0.1) 56(84) bytes of data.
                    64 bytes from s08.first4db.local (127.0.0.1): icmp_seq=1 ttl=64 time=0.020 ms

                    --- s08.first4db.local ping statistics ---
                    1 packets transmitted, 1 received, 0% packet loss, time 0ms
                    rtt min/avg/max/mdev = 0.020/0.020/0.020/0.000 ms

                    08-31 15:54 system.process DEBUG system.process.run stderr:

                    08-31 15:54 system.net DEBUG Machine with ip:[s08.first4db.local] is pingable
                    08-31 15:54 ovm.installer.prerequisites DEBUG * Checking if system has enough memory
                    08-31 15:54 system.fs DEBUG Opened file /proc/meminfo for reading
                    08-31 15:54 system.fs DEBUG Reading file /proc/meminfo
                    08-31 15:54 system.fs DEBUG File /proc/meminfo is closed after reading
                    08-31 15:54 system.fs DEBUG Opened file /proc/cpuinfo for reading
                    08-31 15:54 system.fs DEBUG Reading file /proc/cpuinfo
                    08-31 15:54 system.fs DEBUG File /proc/cpuinfo is closed after reading
                    08-31 15:54 ovm.installer.prerequisites DEBUG * Checking if the 'oracle' user and group exist
                    08-31 15:54 ovm.installer.prerequisites DEBUG * Verifying hardnofiles for user 'oracle'
                    08-31 15:54 system.process DEBUG system.process.start
                    08-31 15:54 system.process DEBUG system.process.run ended, exitcode was 0
                    08-31 15:54 system.process DEBUG system.process.run stdout:

                    open files (-n) 8192

                    08-31 15:54 system.process DEBUG system.process.run stderr:

                    08-31 15:54 ovm.installer.prerequisites INFO hardnofiles should be set to 8192 but was 0
                    08-31 15:54 ovm.installer.prerequisites DEBUG * Verifying /u01
                    08-31 15:54 ovm.installer.prerequisites INFO Configuration verification failed ...
                    • 7. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
                      883981
                      ulimit -n 65536 try try again. It should work.
                      You can add this line in profile of oracle account
                      • 8. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
                        Terry Phelps
                        Very strange. What does "ulimit -a" show when run by oracle?
                        • 9. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
                          Bruce
                          Get operation not permitted when I run ulimit -n command:

                          [oracle@s08 ~]$ ulimit -a
                          core file size (blocks, -c) 0
                          data seg size (kbytes, -d) unlimited
                          scheduling priority (-e) 0
                          file size (blocks, -f) unlimited
                          pending signals (-i) 73728
                          max locked memory (kbytes, -l) 32
                          max memory size (kbytes, -m) unlimited
                          open files (-n) 8192
                          pipe size (512 bytes, -p) 8
                          POSIX message queues (bytes, -q) 819200
                          real-time priority (-r) 0
                          stack size (kbytes, -s) 10240
                          cpu time (seconds, -t) unlimited
                          max user processes (-u) 4096
                          virtual memory (kbytes, -v) unlimited
                          file locks (-x) unlimited
                          [oracle@s08 ~]$ ulimit -n 65536
                          -bash: ulimit: open files: cannot modify limit: Operation not permitted
                          [oracle@s08 ~]$ su -
                          Password:
                          [root@s08 ~]# ulimit -a
                          core file size (blocks, -c) 0
                          data seg size (kbytes, -d) unlimited
                          scheduling priority (-e) 0
                          file size (blocks, -f) unlimited
                          pending signals (-i) 73728
                          max locked memory (kbytes, -l) 32
                          max memory size (kbytes, -m) unlimited
                          open files (-n) 8192
                          pipe size (512 bytes, -p) 8
                          POSIX message queues (bytes, -q) 819200
                          real-time priority (-r) 0
                          stack size (kbytes, -s) 10240
                          cpu time (seconds, -t) unlimited
                          max user processes (-u) 4096
                          virtual memory (kbytes, -v) unlimited
                          file locks (-x) unlimited
                          [root@s08 ~]#
                          • 10. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
                            Terry Phelps
                            Well, gee...Oracle's "ulimit -a" plainly says:
                            open files (-n) 8192

                            So there seems to be no doubt that /etc/security/limits is good. I just did this install myself and had no problems. I did make the config changes manually, and didn't use the provided script, but I can't imagine that that's important here.
                            • 11. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
                              Bruce
                              Agreed, I did get the install working on one of our dev machines (OEL 5.5) which is puzzling...

                              Thanks for the response...
                              • 12. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
                                bmace
                                I saw this once and the person that hit the problem said after they rebooted the install worked ok because those values were now set in that file. I don't know if there is some other logout / login type things you can alternately do rather than a reboot.
                                • 13. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
                                  bmace
                                  Also, check to see what your shell is. ksh looks to be problematic. If you are using ksh swap to bash and the world should be a far happier place.
                                  • 14. Re: VM Manager fails with "hardnofiles should be set to 8192 but was 0"  error
                                    Bruce
                                    Thanks,
                                    bash shell and have rebooted. still not working...
                                    1 2 Previous Next