tag:blogger.com,1999:blog-42697232819758452102024-03-14T16:14:29.364+11:00Linux SysAdmin and Oracle/MySQL DBAUnknownnoreply@blogger.comBlogger270125tag:blogger.com,1999:blog-4269723281975845210.post-74233745421227903912022-04-03T10:11:00.009+10:002022-04-06T14:40:00.548+10:00<h2 style="text-align: left;">Use realm/adcli to join RHEL7/8/9 to AD</h2><p><br /></p><h3 style="text-align: left;">For RHEL 7</h3><p># yum install realmd oddjob oddjob-mkhomedir sssd adcli krb5-workstation authconfig<br /><br />adcli info test.com<br /># adcli join test.com<br />Password for Administrator@TEST.COM: <---- Enter Admin password<br /><br />The join operation creates an /etc/krb5.keytab keytab that the machine will authenticate with. you can run below command to show several entries<br /># klist -kte<br /><br />Configure /etc/krb5.conf to use AD domain:<br /><br />[libdefaults]<br />default_realm = TEST.COM<br />dns_lookup_realm = true<br />dns_lookup_kdc = true<br />ticket_lifetime = 24h<br />renew_lifetime = 7d<br />forwardable = true<br />udp_preference_limit = 1<br /><br />[realms]<br />TEST.COM = {<br />#kdc = ad1.test.com<br />#admin_server = ad1.test.com<br />}<br /><br />[domain_realm]<br />.test.com = TEST.COM<br />test.com = TEST.COM<br /><br /><br />Use authconfig to set up the Name Service Switch (/etc/nsswitch.conf) and PAM stacks(/etc/pam.d/password-authand /etc/pam.d/system-auth):<br /><br /># authconfig --enablesssd --enablesssdauth --enablelocauthorize --enablemkhomedir --update<br /><br />#cat /etc/sssd/sssd.conf<br />[sssd]<br />domains = test.com</p><p>config_file_version = 2<br />services = nss, pam<br /><br />[domain/test.com]<br />access_provider = simple<br />ad_domain = test.com<br />ad_gpo_access_control = permissive<br />ad_server = ad1.test.com, ad2.test.com<br />auto_private_groups = true #all ad users have gid same as uid<br />cache_credentials = true<br />default_shell = /bin/bash<br />fallback_homedir = /home/%u # same as local user home folder location<br />id_provider = ad<br />krb5_realm = TEST.COM<br />krb5_store_password_if_offline = true<br />ldap_id_mapping = true # use id mapping from kerberos instead of postix uid/gid defintion in AD<br />ldap_schema = ad<br />ldap_user_ssh_public_key = sshPublicKey<br />realmd_tags = manages-system, joined-with-samba<br />simple_allow_groups = ssh users<br />use_fully_qualified_names = false<br /><br />[nss]<br /><br />[pam]<br /><br /># chown root:root /etc/sssd/sssd.conf<br /># chmod 600 /etc/sssd/sssd.conf<br /><br /># id username <br /><br /><br /></p><h3 style="text-align: left;">For RHEL 8/9</h3><p># yum install realmd sssd oddjob oddjob-mkhomedir krb5-workstation authselect-compat adcli [samba-common-tools]<br /><br />#realm discover example.com<br />#realm list<br />#realm join example.com<br /> Password for Administrator:<br /><br />#authselect select sssd with-mkhomedir with-faillock without-nullok --force<br />#systemctl enable sssd.service --now<br />#systemctl enable oddjobd.service --now<br /><br /></p><p>A keytab is a file containing pairs of Kerberos principals and
encrypted keys<br /><br />[root@test1 ~]# more /etc/realmd.conf <br />[users]<br />default-home = /home/%U<br />default-shell = /bin/bash<br /><br />[service]<br />automatic-install = yes<br /><br />[providers]<br />sssd = yes<br /><br />[active-directory]<br />default-client = sssd<br /><br />[test.com]<br />fully-qualified-names = no<br />automatic-id-mapping = yes<br /></p><p><br /></p><h3 style="text-align: left;"># other commands</h3><p>#realm leave<br />#klist -k /etc/krb5.keytab<br />#authconfig --test<br /></p><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-32669821664833224552022-03-11T15:28:00.009+11:002022-03-30T17:26:03.326+11:00<h2 style="text-align: left;"> Ansible.cfg Best Practice</h2><h2 style="text-align: left;"> </h2><p style="text-align: left;">Ansible.cfg is the important parameters to control how Ansible and ansible-playbook behaves.</p><p style="text-align: left;">The following parameters are best practice, please put it to the same folder as ansible.cfg file.</p><p style="text-align: left;"><br /></p><p style="text-align: left;">Reference: </p><p style="text-align: left;"><a href="https://www.ansible.com/blog/using-ansible-to-manage-rhel-5-yesterday-today-and-tomorrow">https://www.ansible.com/blog/using-ansible-to-manage-rhel-5-yesterday-today-and-tomorrow</a></p><p style="text-align: left;"><a href="https://docs.ansible.com/ansible/latest/reference_appendices/config.html">https://docs.ansible.com/ansible/latest/reference_appendices/config.html </a> <br /></p><p style="text-align: left;"><br />[ssh_connection]<br />ssh_args = '-o ControlMaster=auto -o ControlPersist=60s -o ServerAliveInterval=60 -o ServerAliveCountMax=10 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'<br />retries=5<br />pipelining = True<br /><br />[defaults]<br />command_warnings=False<br />host_key_checking = false<br />timeout = 60<br />remote_tmp = /tmp<br /><br /></p><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-10987229788800599032021-12-07T14:31:00.007+11:002022-02-10T14:50:39.164+11:00<h2 style="text-align: left;">How to install ansible2.11 with python36 on RHEL7</h2><p> by Jephe Wu - <a href="http://linuxtechres.blogspot.com">http://linuxtechres.blogspot.com</a></p><p><br /></p><h3 style="text-align: left;">Install python36 packages from subscription or RHEL7.9 ISO</h3><p>[root@test ]# more /etc/yum.repos.d/local.repo<br />[localrepo]<br />name=Unixmen Repository<br />baseurl=<a class="external-link" rel="nofollow">file:///cdrom</a><br />gpgcheck=0<br />enabled=1</p><p>yum
localinstall python3
python3-pip python3-rpm-generators python3-rpm-macros
python3
python3-setuptools</p><p> <br /></p><h3 id="Usepip3toinstallansiblewithpython3-UseEPEL">Use EPEL</h3><p>[root@test ]# grep proxy /etc/yum.conf<br />proxy=<a class="external-link" href="http://proxy.domain.com:8080" rel="nofollow">http://proxy.domain.com:8080</a></p><p>yum install <a class="external-link" href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" rel="nofollow">https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm</a></p><p> </p><h3 id="Usepip3toinstallansiblewithpython3-usepip3toinstallansible">use pip3 to install ansible</h3><p>pip3 install --upgrade pip</p><p>pip3 cache purge</p><p>export LANG=en_AU.UTF8</p><p>pip3 install ansible ( or python3 -m pip install ansible )</p><p>pip3 install pywinrm</p><p> </p><h3 id="Usepip3toinstallansiblewithpython3-Checkifwin_modulesarethere">Check if win_ modules are there</h3><p>run ansible-doc win_reboot</p><p>find /user/local/ -name "win_*" <br /></p><p> </p><p> </p><div class="confluence-information-macro-body">[root@test unixadm]# pip3 install pywinrm<br />WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.<br />Please see <a class="external-link" href="https://github.com/pypa/pip/issues/5599" rel="nofollow">https://github.com/pypa/pip/issues/5599</a> for advice on fixing the underlying issue.<br />To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.<br />Collecting pywinrm<br />Downloading pywinrm-0.4.2-py2.py3-none-any.whl (44 kB)<br />|████████████████████████████████| 44 kB 920 kB/s<br />Collecting requests>=2.9.1<br />Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)<br />|████████████████████████████████| 62 kB 1.2 MB/s<br />Collecting six<br />Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)<br />Collecting xmltodict<br />Downloading xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB)<br />Collecting requests-ntlm>=0.3.0<br />Downloading requests_ntlm-1.1.0-py2.py3-none-any.whl (5.7 kB)<br />Collecting charset-normalizer~=2.0.0<br />Downloading charset_normalizer-2.0.9-py3-none-any.whl (39 kB)<br />Collecting certifi>=2017.4.17<br />Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)<br />|████████████████████████████████| 149 kB 28.9 MB/s<br />Collecting urllib3<1.27,>=1.21.1<br />Downloading urllib3-1.26.7-py2.py3-none-any.whl (138 kB)<br />|████████████████████████████████| 138 kB 37.7 MB/s<br />Collecting idna<4,>=2.5<br />Downloading idna-3.3-py3-none-any.whl (61 kB)<br />|████████████████████████████████| 61 kB 11.2 MB/s<br />Requirement
already satisfied: cryptography>=1.3 in
/usr/local/lib64/python3.6/site-packages (from
requests-ntlm>=0.3.0->pywinrm) (36.0.0)<br />Collecting ntlm-auth>=1.0.2<br />Downloading ntlm_auth-1.5.0-py2.py3-none-any.whl (29 kB)<br />Requirement
already satisfied: cffi>=1.12 in
/usr/local/lib64/python3.6/site-packages (from
cryptography>=1.3->requests-ntlm>=0.3.0->pywinrm) (1.15.0)<br />Requirement
already satisfied: pycparser in /usr/local/lib/python3.6/site-packages
(from
cffi>=1.12->cryptography>=1.3->requests-ntlm>=0.3.0->pywinrm)
(2.21)<br />Installing collected packages: urllib3, idna,
charset-normalizer, certifi, requests, ntlm-auth, xmltodict, six,
requests-ntlm, pywinrm<br />WARNING: The script normalizer is installed in '/usr/local/bin' which is not on PATH.<br />Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.<br />Successfully
installed certifi-2021.10.8 charset-normalizer-2.0.9 idna-3.3
ntlm-auth-1.5.0 pywinrm-0.4.2 requests-2.26.0 requests-ntlm-1.1.0
six-1.16.0 urllib3-1.26.7 xmltodict-0.12.0<br />WARNING: Running pip as
the 'root' user can result in broken permissions and conflicting
behaviour with the system package manager. It is recommended to use a
virtual environment instead: <a class="external-link" href="https://pip.pypa.io/warnings/venv" rel="nofollow">https://pip.pypa.io/warnings/venv</a></div><p> </p><p><b>Note: pip3 will download packages from site below</b></p><div class="confluence-information-macro confluence-information-macro-information conf-macro output-block" data-hasbody="true" data-macro-name="info"><div class="confluence-information-macro-body"><p>e.g. Downloading <a class="external-link" href="http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz" rel="nofollow">http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz</a></p></div></div><p> </p><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-56396177305978791252021-12-03T14:24:00.006+11:002021-12-03T14:29:44.995+11:00<h2 style="text-align: left;"> How to find out which process is using swap space</h2><p> Jephe Wu - <a href="http://linuxtechres.blogspot.com">http://linuxtechres.blogspot.com</a></p><p> </p><p><a href="https://dbsysupgrade.com/how-to-display-processes-using-swap-space/" target="_blank">https://dbsysupgrade.com/how-to-display-processes-using-swap-space/ </a><br /></p><p><br /></p><h3 style="text-align: left;">Use command below to find out pid and percentage of swap usage.<br /></h3><p># find /proc -maxdepth 2 -path "/proc/[0-9]*/status" -readable -exec awk -v FS=":" -v TOTSWP="$(cat /proc/meminfo | sed -n -e "s/^SwapTotal:[ ]*\([0-9]*\) kB/\1/p")" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") {used_swap=process["VmSwap"];sub(/[ a-zA-Z]+/,"",used_swap);percent=(used_swap/TOTSWP*100); printf "%10s %-30s %20s %6.2f%\n",process["Pid"],process["Name"],process["VmSwap"],percent} }' '{}' \; | awk '{print $(NF-2),$0}' | sort -hr | head | cut -d " " -f2-<br /></p><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-18195857683857532162021-11-27T14:22:00.010+11:002022-02-10T14:55:02.348+11:00<h2 style="text-align: left;">Installing Ansible with winrm module for Windows server automation</h2><p> by Jephe Wu - <a href="http://linuxtechres.blogspot.com">http://linuxtechres.blogspot.com</a><br /></p><div class="wiki-content" id="main-content"><h2 id="InstallansiblewithwinrmforWindowsserverautomation-Steps">Steps</h2><h3 id="InstallansiblewithwinrmforWindowsserverautomation-setproxyforyum.conf">set proxy for /etc/yum.conf</h3><p>proxy= http://proxy.domain.com:8080</p><h3 id="InstallansiblewithwinrmforWindowsserverautomation-Disableredhatregistration">Disable redhat registration</h3><p>[root@ansible01 pluginconf.d]# grep enabled /etc/yum/pluginconf.d/subscription-manager.conf</p><p>enabled=0</p><h3 id="InstallansiblewithwinrmforWindowsserverautomation-InstallEPELreleaseforyumrepo">Install EPEL release for yum repo</h3><p><code>yum install <a class="external-link" href="https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" rel="nofollow">https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm</a></code></p><h3 id="InstallansiblewithwinrmforWindowsserverautomation-Installansiblepackages">Download and install ansible packages from EPEL together with local RHEL7 ISO mount<br /></h3><p>yum localinstall * => install all below packages</p><p><img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA30AAABRCAIAAADpblg+AAAAA3NCSVQICAjb4U/gAAAgAElEQVR4Xu1dv28jSXYuauaMu/MZsGFgHUiCoMgB4XBBCFAwyhkyYDCTbiJlTKS/YJQwk5JNR8EEDJVTgQCBuMgwmNjBYCEp8AKGFz7j1ribEf1eVXezu+u96mqRFH/o652dkapfvR9fvVdV/aq7yvzwx59Lf8zsV9uYYfqHfsb1Ugg0j83VcZSw9rkZDs3wyjSL5MdXttz+OS7di2L8fKJ45eMpn6+NXnMh0ttT2M/nFDIL0VOH5QXubJ5FLwAaRAABIAAEVgqBBk06Swr9+P13K6UilAECQAAIAAEgAASAABDYAAS2NsAGmAAEgAAQAAJAAAgAASCw+ghg3rn6bQQNgQAQAAJAAAgAASCwCQhUzDubx+dVL/m1z4fJdVVFugmAwQYgAASAABAAAkAACACBZyHwVq9FE8pei253hp3Hwcn7y7FMen16dE13iLorE6AUCAABIAAEgAAQAAJAAAgYdd7ZPO7uDE5OzId3N6falBP4AQEgAASAABAAAkAACACBSATUeSfV397dN/eRfMpkzeOri862Kx31j045JYoLCAABIAAEgAAQAAJA4PUioM47x5cfB1cXF63Hwc0z0Gl/6Dz0j95jtvkM7FAFCAABIAAEgAAQAAIbiUDgu6Lx5fuj/mi7czGs/8HQ9e2o1aPPjea1BfZGYg+jgAAQAAJAAAgAASDwmhAIzDsdDKP+ycB0PtQ9QoW+NqLr5L5Lk8/609bX1AKwFQgAASAABIAAEAACrwMBbd7ZbM5yRmJaO0mZ0nuiuIAAEAACQAAIAAEgAAReNwLa+53j/Q/DC95FyZhWiz4Mqvmm5ruz4UXyVZGpX/t1NwmsBwJAAAgAASAABIDARiJQcT57+/zcnOJj9I1sehgFBIAAEAACQAAIAIEXRUDLdyZKXJ+evqg6EAYEgAAQAAJAAAgAASCwoQho73duqLkwCwgAASAABIAAEAACQGBJCGDeuSTgIRYIAAEgAASAABAAAq8MAcw7X1mDw1wgAASAABAAAkAACCwJgYXOO9vnhc076Vd/K0+mcZd/b0mYLFfsugAituZyods86csFeY6uWDKk1DNsXsPFWzRHkOOFPoNyua74DIVXp8oqQIeIC/sDwjCMz5zvVnxXNJs02jy+cv+lhIaavfssYVSx5/Z74g2bwp/eZ7SPg5P3l2NVnsQzV1ZRm9na4+nppNCwPqICIiA56bZSpakiaxSuNgIcBPdBz3xZ/UVXJBVm1zOmZ6glKDa0rfKuw6gM41hKqbuIbygRZMR7PICrRjl7dJQtms3BHLfIiCuLrvl7bMjY8dFttDi3MCRVMezWbK+lkS803/kCVjXN7QmfjHRER3q2eqFjOckne6bvSB86FwFShScFiJMUmrKy61P69mz34XGe1rvjn6z4k8Hj4+BT5Xx+ntLBCwisMgIc2jsuOvsPnbNj/ciLGp1APM/oLigeQ8R7PFYbT6mMRytnd3wYGj5QJhnNTGXAxoQ2ht2Vc4egQmq+M/dEYtJHEvsk17876PGjSvackqdM8nC5onJmbj990infKKkZYJGnHF+nM7Av94/mYI+GHCWPub+7Pbp1xNefBt2Lw7bJ6hZlx/MUoOWIurRPXq1d4Xa5KNLMrFrz+Ozg7uN7xUYik9tomuXJ5UqVJj68Pbo9dDmhaRvlaXPZ1rQ1gw+tpJLPs6Cn40gyzszdQ6dDBxXQCav0QFzhI2UwV/B338wvFAAHd7mspiUZsNmsf+ti2OF/c6b7IAsJEKXdfUhs3Vycsi4372KRzySX9RRUSvIPnNYYjUZOE9Xfyw6WuqAESMmo5ruD7dFnt35xfTvq9T60L5WFhuhOoAbPWt2Far/fULYE8a4A86LFy43iWAc7vroyH/NJkfb51d6nj+YsTS3m+hSxu6DCckddo0+uETLTxqOAfLy7UYezaJ4Ydr2AEFqzND1Y4rCr5ztvPronEkokbk/PZ9/udA3fmBa2P/CCcnIl3X3yOEOpuRIaaXW60+oG8hLtcx6bkyeinWAeM5FAamSDj9cEXEDz0lQke7NIUyos8tzuXPCLqIFEaQzPAk1tM9sfaNYZeEPAcvfaiDqPNB9E6dKdXvomrdzErR73PjaxmipLenZMmu49yt4e8ASpAAg8p3rmnGG7s3trM9dn5iMV7/BzxLpfJZ8fX34cmGlANY+7O4OPl5enNqj4ac6FUjZx8kDWWtNvdxE5SqUxwOQDdk6TToAjkbeJOE9PWSX2mqRruDXJuzBKz+A7mCxItIjHrvsvyS1+/NTdJroTqMEz06myC6Knv5rdGuJdbPElFK5CFFc42E8P23wiNQWjG6WaezsPP42ViBOGCUZV6KgjewZTL2SslsOq94rq8Yx1C4QhT+GWOuyq+c7xeP88PSmT8hVpkz7SGMlPJ9y9u3yezTAMh72o3FRafXxz99g5eNe8HIuPOu3DltlOMyok7dHOP6bvhHBR/hVNTrbQGrqS5HC683h/cGGzSY+jUXlC7LtsiWfyfgznK4bnJhGVy16UVfIZ+iWimSIgrm77vHsfynUmErw2yj9UWuS5exobtYlPLJDUYSWHBrCeo74/3fUE+SZmKpV5WrycL6XOcMNF9AbB/qGx6atjld1a3SibeXl5+Xk0pKeua7KRn9o+HwXaPEMpizilNad4TmNT8c/r05O9q4uLC46hVPRMyIsq7VuvSVYYqJMIvL+tOZjfzopFPqFcUrcTKHEJSI/pghDvtg9Zy3hfYhQ7Jyw5mOCKFPddHih3H0Yj++i1a+5v5DjgUrH3pi6h1PmLfbIgPdSHCUokCUqyanheMXJ7tWeUjjBcfhhq887Ey/m7IG7l0JKxm5ERFU0+g+utZf+hh7FyUe53fx7rVrC9KiS5ctJpKyWuTj+RdTtZhsRjSAUqT9dnpsv5U44Sk6gy30ytWvu8Z8JTFK2mXK41cbhZZF5VpdU8mWKvis3633dA2Bc9aDX40x4nOxf3rm6Ff9r0SCgGVw9vySIab6eW0BTYhLwtshNQeM7aBdX5IhDxvnrul2j0slFMQv3xSAoESnge7rd3ze3p7eHVu7YxgRVsBdtQ6OSqSNKVkFEEJcU2a6W/8qbwVMIwLKpwF8Oug2NZw66+zm7StSvuyfWr2XRLoeyJtPjOI1ngSu/zisF0bcyrQN5oguvw0xouZ17OdNpZsLYkTh16K3upRKKUeVqZdok+MjiLZgmCaphJPU+3lb6fmjEWeHpYUgFHLyWXMwMy5OOa2NTTM4B8UblIZ5AsWqcyycwxpTxb3aszSnb6aeQK49TWrKg3vZ2sM1V9iRfNT3YwTru2aEihi503xK2Og/l8+Fkw7S0ol5F9dReMjopOQOPpS+enWF49j+iC6piJeJegXl7ZMqNYdjAfC/KvnW6XMypf7s3u4a4JJnb8+rOVaCETDkNaFMmGI59S4xmvqc+z5nCGYTce7HhKLd9pMzLuE4fRYPDY6fHi8q3E993Z8CKdmNJTRDh5MzKHlBVlNkQaGHGTlUBeFOdLT6MWc+Y6HTEhD0xesA6S0ThSWOV3xIXK5SEmD8uU0Bh+/SCY4Yg20853R5/D4ObVKPxMzwT93WHywUqGfHwTG0lPVVr0jcedbsEZmu+iq64TYdlMp7tF/6CY7LQP//53RSVj5daMRiRJc3Pwnfbp+zEO7E/RtS2hp6eskn2xxcbA42AwMgcBIZKDkYKeIJlFXny4X4nvBOJ5St2FrKcYR3K+GfGuQLis4iVGcbyD0XRze4eTnGNzt0MPQzXjekZs40Om9JlrYCIQyxPDbnTjlT15OcPuD3/8ufQn2gAQAoFnI0DTn9dwUIBqpnrj2YiiIhBYXQTW2t9V5dUbq9sQ0Ow1I7AqDqvlO19z28B2ILBABDjhSKvO/Aa/nOtaoGywBgJAYB4IIIrngSJ4vFIEGpTsLJn+4/ffvVIwYDYQAAJAAAgAASAwCwJbjTeTydPETAx9QPLUaNAP9pq8bRj6823LfH0yk6dERMM0zNbbyRP9/q0glW68aTSeJltPZmvL/IV4feX7W4YLzNbEvHnacqx/+w//8qdf/vVvJsyAZFnOxPSNmXxtsBq4VguBwHdFq6UotAECQAAIAAEgAARWHIEt06CJBU03ae5H/0z4H3fRXPTbxHz9Np108gTyzZvGmzfJDDJvGs0YGzx9pWnkhCaZWzSTbDTeuFkllU4axMc03r7Z+t2ffvk3+vGvxvyWp6XuIoqvJJhmrFSxQdqQUlQb1woggHX2FWgEqAAEgAAQAAJAYCMQoNSlyzva5GM+28iJSJ5N5szkaSX9R5nMclqSqCaWD92g2eqE/3dUjpJSqszn64QmpWnylKaeeTZ0x01aPU02Aui1NWKh+U56Byb/8Yj4TivTuGvmz0xE/mvbMvNUfI4gz1MtjxdasATJiwNSClmvhV6w4MVtf0HbcqLWJTbj0XklDScC8pptnwJCMz+e7XFBeS5p77Q/5gZ9njM+Tb599ZfDua6dWSb83ByUSzMBnPV8+jqh2WZC95fyWj1nSnGtGgILzXcmZ/wEbU5oKF4D55kEOcz/JinDX37wVbm/bEZbtTmTwDMnp6I2q2K3iqBzB0O7OClYiCDnpMeZqjBH8bwQ4CC4z53cPjvfOp5spcWE7OxqCRxmtD02DO2ZES64K0MunjK3PVN1j1EyfsbYRBQLzvSai6KHCdm9cxsShca+2h1LoUlm9HmteadK5WM70iJiqlFGQ6ophvIyAgudd5aFrcnvTXN7cmS/NWZHPm9fqzM9ckg+Kok3LSXSi/Of1EmhwrNy7LOQuXiIOt2zBsS5KQYJODN0QiWuzUJA8brNMtKd5rJDB9vzuaPnw7Pjm/fajoA1ApZCO46n3TieHwjfzy+A4mMznnLTWh32lBCoM0xwIAjuHevJi+hYZvVkOgkisYiBoNPg7LAda5FO2Tw+69AG5Q/wtzkioM47nRM7SensiDr17n3/7qDH7ZBNmfKUySNSrqj80LSf7t5eviEGkS0MU2ayRqPsFPnSvrTpvDGvaYDr+DodQPjIlYP0UEwBdTrKKT1DyO4Drh/4Fc9TEMNnQV3a4bUVOrA0rRlAX2DOfM8O7kLnvsvtLoKsuM3h7dEt7VHOSeRpayrNkXpIcE5OKvk8C3o6QSTjzNw9dDqtUf/kvksHB4S9SQRohkJfpS8UAHS8zXRqZEkGrCLLafn7xvuAUJVyQl5so3ivy7fFNIgV6AQHE+qzf0y7i6zdfQ/JrImy3W8Mt8e6m2ranebTMccnjQ7YGjztyUJVB2akqgjQ+VrmSipjM6OtpBQ9JJf/zYWm30aWzo84kv4aorhgZNaBSD5vm6McsLGBUEKzWlDRdWoME7J7x3tyfMdStCmq863yZNtfTDuptDctnKmZnIEUb5FGac+K6g8OeuGRV4wOod3JZ5ROtdiWG/+btm98ev6l7XCSEyf5p+SFzULhuT0Mz78I5PxZlbnqfKfwPifdy/+e+7XEpCRlqofV0/LIM8/9nN33FVVKcsxlihx3/lE7mDNfOc/TAsKXBmBRahiJlDYAXe5WjnP7vOrNWqunI8rUV0BW3cbZSLVSW6XmkATJyDvoLK8pz1z1VL20WRJp9GuVsbK855YKKln/zFo8rxERl7STAJGRlyinSvPdKCfL6aZBl9Myo6Yyn71kOzVXcrBuvmMhReNsF5uhUDWPjk+du5ua5xNxSQ2elrRtD+YtvM4uMJagS8h8+50ase6KKBbwnleR5t5Bn2f3dwT8UxLZeQcUAiFekG5aLoRVItm9a3hyynlqpCYrJ6qsWUGLrH61J7uugyKDGBbiwwKdD8J4i2RKKuUmLCvu2+okr/545Gu+nBI13zke79PKcXqqcpZJfBx8tIkFzgS6JwCbYaDD8KIeZdLqfO5qh44MvxyLW2cXTwaj3CrnHE12ziVD5bJhTDjqu/QkK2LfEaWkRnb8uhXEh8aPHWlpAY4cKjk7c8ozaQjyJF5DV9fYmWxsjwK0GaqoVfASz2RlgZXg0wqdqIBKiWbBf0ToRJAdm/Z59z6U60yEee0ug2xUt3HnV9Mj+Wki17acvx7qCVKtJQ+wiE150i9lB7vhInqDYP/QjPgo9GOV3cJulFW6vKTD2Yfd4+Y1rwt/oCPajwLtk1mURZyC/NT2aWwmUBc9uYaDSdCJDqZ1Ap7tY7rEjkWE33eGGspLHOsGbImHJn270zUnR9SMFOCBt21E6AJtHxmbpGQkpYen4ktKG/kRJ3aqpI8nSGoMW+bzzFVPh4mbJUex6N5ioWZ7ZCCIPMVCzRVVoONu+J4cEBQzRC7G55NzdS94FpAGEClqX3oz1N1dXJl0Rcm3SEPCozTnzJDGGJ59VF5r4cmVVrwQgTbvTFzKgk7TolCS2c2eiIomn8G10bJJDz8F+lxhHdytNpe5zPR7sjTh8Uh8ODjptJWmDAixnfsvHqdpgcrT9a7pcr6mUoBz+VbUI4CtRO/EmPC0p8w7/LvmNuGmDvPU7lbzZIo9rfpyyp3S9qUMWg3+tNfdKR7RPnetfK9biIPFdALWds1DIg2XlC8ssNFMyoQ8IzJgFZ5aF2Sfaeiyz76BF3OqXhrKoxAfm/GUcShrbRTCNY6zT1XNcxWiWHRvsdC30C8JBILIUyqUAsGXpJXI7k3pGfd0Tv9OPVnxeb9j0YQJQ7lGWteTt21KyXKjJ3gzOOFExKmdemYv29SIzUIUt48PWma7RbMap21veLUX+uhzPTxZQ/6FywP7KCWvSHD6MKBUumzGcdAfWT8IXOl9cpLtlL9ATk5vWpQREm4Vizi106K3KuniFzTcTQ4qyqXaX/hFFicomiePjfzOSHnSaWfWwnKilUMB08qSrBKlzDPTMThWOrOEvwVBNcy0kKXvp2bcBZ6CZE54CyATZZzbcL8W18TEMlIlVjPSwSSLFlUmqTSmlGere3VGyU4/5VuhiIq8UC/gdQJ1VJHUcGonINke6yFR2jARP7elvQWlV2ySlq+g21QErMZTUMoC4vogw+LvbuxAKEiXoBMYJsoLsSkSI4pFWOZYKLq3WKgKjQsEkadYqAqSbviuKLu34skSS7lj8QXV7OcFnxd4piM0TTha9N1vpp8/+4i3yKe8phlNcp0MHnnynL6TL6okobSS45Gs6AuXavlOm5FxnziMBoPHTo8Xgm8l5d6dDS/SiWnl6/Ujc5g8PxBpYMRN8ui8gM2XmkZ162a8zE80g5E5YGqaAvd3h8n3GewvSS7i9GTvKrEpxJMHD3rOSeurslkUeWCyTh8ko0AReBYql2e51u7kmhIaY20NPUHGQufm5KPPbozOi4v6WQY53m1oxx6/OaIkB4ked7oFB2u+C5K/xM2ySk6mReqgmOykvq/X878rKikpIy9aInmdSFinUGi4G60T8G0XPYScP852Wc88IuF+JT5ga/B0gDi3C4sXoFM6QffhR0xsxlMK4Mm+JLaR2Pm/kigW3VssFDC2RXGBQF8+CoNprKA6w4Ts3tGeXKNjmb/PJ+l4jpzTPn2t6t5Ry+tuJww2eKItqkGptbFUXm73FRiPJDVfvAzns7845BC4KASoQ5rz/pcza6qqpN6YWeRMDOap1jx5zWTURlSmTybSt+0ze0ZHR8nr0hthojNi89xm8yxaY3d7wThCu6t+ouU71Qq4AQSAwCwIUG/EmyDxa+ih95tnEVG7bqIT1xv1V0et2nZscIVT+mICFxAAArMhgDiaDb/51Ea+cz44ggsQAAJAAAgAASAABIBAGIHAd0XhirgLBIAAEAACQAAIAAEgAARqIIB5Zw2wQAoEgAAQAAJAAAgAASDwbAQWNO+k98WSK/a8jWoLFsGzWmpKsVzp8Xoul5JQml+DL9eUlZC+gnguNxBWEJBFOMpyQY636JU0RzwgoAQCQKAagQXNO2mnW7760xPTq1WpolgEzyqZ0/u1pM/YHUdWnw5Obo7vn9oWbx4oVwCByHavoWnORZ7nHb5KtQKhhqoSqS9dotLL7EZ7UYZHU2aIVj9fRfP0DRBBRrz7QKEECACB9UMA37OvX5ulGrtjLOxvNMSdmWS77PU1CJrPGYGmuT05sp+n05yFdli+Du0SO2fZy2Xn9jKMObw2ntKGWW9ncMIbAhOgZ8c36U7SJWPr8IzHCfEejxUogQAQWF0EAvNO13la1ZODF6mv7d737w56Hd4ofnoao08ZbzDxPLw9uqXtX3l3uufwFKTniqZ7zucLp3JyO0mHdmNXDPIF8QBv99lLN57PRFXo6ej06ooGXNw8Pju4Cx2yXmi46Q73mbAc8L5FdtJS1Ub5pttPNtMPbqUv8hQcjPQ5M3cPnU5r1KdtlWmX/lzbBTBZkVu+RV8IHToNazpjsSQDtlB0G2N8PIWGE5t4fJ3uPM4Hex0EDnAUqmdCPE8uY1urjRQHSzde5du7n2lbSjWOJEDKGqXn1xK3VuiMX6rHB61d2illFaU9/Cx/6t70LL6S/Bo8uabQM3gG5QsQ70F4cBMIAIEVR+CHP/5c+uMUplEnXUmibtEtVlHZMCnlsuS+RJkYnbulwWB5OvbEM10Ti+cpUqZHi9kpU7LQRj8JK25idU1XKi9ZJAnyqZifJEhWyRMSUMfeap9XrfkxCklzZYDkWpAHvrQ1JYtsdamNvJc5JUGy+iLPXPVUJf6XRfMtMpN+rTJWlrekUsEii3bminmDiLhknISn3HAS5dRmvit4f5Gg7CHOt8oqJXXyutZqI8XBvM5Glh4202vkAtTe3XxBDGWhffLNoHCO4Sn3DALIUxmIdwVvFAMBILAWCGj5zuJBWLTLNedK6HocfLQnu/EBrx06BP1yvF84ATKhFDfEpm44OVTScUpzPryDNudlKEuQnL4hShd5ypTj8f758CI93sO9ZGoP4qPD7ArpMrG6UfQUGlQSJJDR4CKhJKokVtegI+L2efc+lOtM+KUNx4kvmwHa393ODpS3rbm7T01gFIvkNhr1/WP+PEGiQVzo87SFRQe74SJ6g2D/0NhU07HKblVvlC26vKTD2Yfd4+Y1L9d+oCPaj0TXTuzx8FQabgpd1sQJB5ou9Uz/KF1j13zJE1QHUKmNZEGKg8UL8/WUBcVznI1yRulizxBwCMT7bM2F2kAACCwbAW3eyXp5C5o0MSlcDz9R/8iFHqVoVrL65N2zbLwrjidX8yiTgfaIJrM8KCQLbe71KM5BDHv5JWCvunErb55GfoEsyKdzJb4gTSWPgwYdzTp7Jjxv8XgFCzSL5DYKsqq8Wc2TKfYq+awTgbPZHoD9oX35aa+7Uzyife62kL/nJ53EX/WlecsWBWkONotwUdAsDJW6NKHfdk9nREDTf+NaM7q7UNgKPZhKiXhXocENIAAE1gQB7Xt2SsWZFuVkymbYfpcuytNsP95/oZ80ynLNOr/H89QonW5udLCS0+U9HqP6o9QMrXq8sp4guaokSFZJri+XNo+7rdFt+g5fQmNn1uFVVabkQZQS1rYSv7iWGmJmsEjW0s7+Y1Ti6r6DaUzXpVyyaEwpz1b36oySnX7GuMIwteGEeu1zfpd0xb4mCjgY6WvfHV/cFe+KPiUvC6SdIqUpbY633uXzrNV/It7rwQ1qIAAEVhEBNd95fXqyd3VxMew4rW2CkH583OlSupDLKHvnhkyJUkpg1jE/nqdEadNJTvXRYPDY6Q3PDX2TMrxIhzTSPRkxpOrxykuCeD3TLqAn2CVZTkHQzbszSSU7lS9XF8Fz3znUHfsSVjQB7+8O0wZOW1O06FaULljEHjLjVXaw5rsZGS69etkip5AF+qCY7Ixrd7nhRDOLa7jB77zE+vGuqFT3i0UHO00dnr4dG+ykCxSzSOd1jnQGy2/X6DnFeEqbKs5iJuv/fBvzHwqZsHSqLMWR3AUh3gWsUQQEgMDaIaB9VyQZUnivXiJAGRCYBYHNczDVIvXGLPihLhBYJwQQBOvUWtAVCMwLATXfOS8B4AMEgEAeAX7DkT5546+q5LQW4AICQAAIAAEgsKkINCjfWbLtx++/21RrYRcQAAJAAAgAASAABIDAshDQvitalj6QCwSAABAAAkAACAABILCZCGDeuZntCquAABAAAkAACAABILBqCCxo3rmIF8YXxJOP4qHLOwWHxOULFyF91ZxB04ehUFDSqiylfPPaaPMsWopjZELXxZMXgdK62A6fX0TrgycQWCEE5jLvXG5PIUoXC33caeN2vvruSKPCfb41PUTbr2pLpn159YaZGa03xS0zj6WsI93toRk8K7GsRva7iFJOuJ2TPo+1KvM13oh02hrQ1PKQGnznTzp/26XzZkVPrmeM3YIzytmjKWPjnRSN5ukbJdqOKPaBQgkQAAKLRWAu887FqrjC3Jvm9sROXGnm2uqFBiMaL3o7A0vcf+ic+RvyZ1YyJZ1qmFBeBJjGSnebVZ/tPjzOE8pkGGM9TwaPz9hDe57KgJeIQKyHiJVRWEIgPo7iKe1MMqpnqMMzvukQxfFYgRIIAIH5IKDto0TPwd37/t1Bz26+zHuff6GdmOnsk2kK0JIMHjodew56q7hNOhftJ3s3T/erpiq8hQxf6aGRBUHVO1sXeWb88tJNKqSokm+RsuE6dfDpltPlky1T6an24+uUB5+JfcBn2Mtb47gdn5N99nmTbDokUTlFhs7fS48gsntsH7ZNJsVBl/4dKz05RpDsaiVHhhb5lH4L2C/Wax6fHdyFTohXmlhwhsKG26kzEN3h7dHtoXOdaZPk9MzvCu57naC1yFPwEJJxZu7Yx2lH8/su+UXZJQTm+SKf50vGUayH2NRgFciZ5VnDjUaj1s49dwnWTNc3cLPsfk5Ogxd8Kd9sjmXGr9SH+JQK2AWQndtoPH0O8U0cH0fxlPaosFFyaJU9N0DrGWrwZCMF5H3bcyWI4iA8uAkEgMD8EAjkO7c7XfPRZbP4cLjx5ceB6XxoJ7LpyA3fupAAAAZ8SURBVDY6WvrykheqaZmaenubokvGGyJKq9OhlK4W9YTpgz1lyHZ62XKzR6maV6a0T+tl6WKhZVmySBHDHbwzu0QQqM7Hhqajh8SWJpPZOZR8QqXZ4TmqeNHd9Cw+HpNEmlJhlfQYHimNO1nRNiU3UiDdmtRof6BZZ9Vhj+WGy2d5Cs5wwx7HV+Y2LKbV41mRTazm9OyY1OmmbucJUm0XeIoest3ZvbXp7DPzkeTrDadJWoU4ivEQARDJGeiEcJqE2za6NclDpGK6WP1D58HVJgbu0UsJWNK5TKnIoeJyuys8ZQYzN7HMNqq0Rs8Qxc8RScgHqyOKg/DgJhAAAnNEQMt3kohHmlZy9o5PJe7QSd6Xl3So9JBmoNdUzIPC5yM5uefUS6vzLMum2biHvbtxVSxPPuqdf/UoC2kvu8N2kmX1KWtB4Vk0Dhngsdaqc26FVsbT/GU+TZNX3uMnF/D8/sCd8vk4GlUvjc9XevFkRVJfz+Fa9dvn3ftQrjOx0Ws4xRnG4/3z4UU6m8neuuU91jmzTI8Ep44j6znq+9NdT5AMMpX6PG1h0edvuIhO4d4/NPax4lhlp98o83zBOEqwivNPHxDJGRzwLs3P+bmubrhU3Z0BSwdXVueNbfYvijLXcFlvo6vl35GaeMYo9oXUKplRuoh8oK9DFNdqHRADASAwEwKBeWeB78NP3G3ZhV9aCPq0x8lOZZ16Jn1c5WRNaQ6cdBbOIv1+xZ20Omdxc5NOqiUpT8PhdjrN5gm4CUmfMqA55c79l4AmcdIDDKRb1VOCtBblvkz46UPir5clc+gj8iweebO3AkJo6dzCd6p5MsVemEntuy8bR6RevIfIgJSdgdY7ppn7avPL1fk48qR5aUoZfq8mnrJaj9oUUhTXZhJRQekZaM3lMqJ2gMRHXiNGFGvIoBwIAIFFIBBaZ+eJEl28RpcONWNKeba6V2eU7PRzTRX6cQ9LaVNLxSvIdYavCtaRt+3Uj668RZFVmUyo7tazlDc1c6w5v5uunlMyIvsKh2YF+qfgvKKZZYglyljpmo0CT0oymVRRrVpaTq9atNJXUTNagafER3WG1Ct4ch646ukZALkoQ2jigBJxtySeLxVHs3mIBHKu4bj9yxCQQPtGOF9S9WbTdQA8raNXKZKALHPh3+MppdovWhbp82yUF+9azxBvgM9TRF5jiCjWkEE5EAACi0EgkO983OlSSoLF0qNzNsu0Kc+DYrLTroj53xWVNKahpr87TMgKPGczTZQuFsoWRUsfmcMSIMX1rFD2Jm98Hk5BOI0jydgdYkgVY6VPGRrDC5f5r3A8+denJ3tXbpmf7wVUcF9EPDPpLTuDdS7nIaPB4LHTG54beotQuiQ9Jbp6ZWUPab6rV1+iLvN0NC8SR7EeIqnNZRLIuddABoORObB1s3Cjz68GO2miWqh+8+5seJFOTCkQMvfxA1aj1JT1y32ePk2Nkvg4iqe0yyNZtxjqGerwFBtOXmdHFNfwAJACASAwFwTofPbSH8uWVjzlbSbVG3PRZoFM1lbxBWIC1nkEFuEhKk/1xjq1yQsbQeL8q/rLt3VCFLrOisAL++Ss6qI+EHiFCATynWU0KKB5EyT+/EB+dC5XwO9AAAh4CCCOPEgiC9wLn5HEIAMCQAAIAIFVRKBByc6SXj9+/93v//aff/3zv78xk6+T3M3Gb37zh9/99U//809//4//+ct/0Y2tra2np6dVNAs6AQEgAASAABAAAkAACKwYAvJ3Rf/363+8/cPffXv7e9P4DSn8tmH/bE3++r+/UsnPv/w3FTYaDZp30t8rZhHUAQJAAAgAASAABIAAEFhFBOR19snTZPLnXxucy5xQxvPbxE4un7417A8T+s9elOyc8H1cQAAIAAEgAASAABAAAkCgAgFl3mkm37595ap2wplMNHmGyf9TjpNynTTjxCJ7Bbq4DQSAABAAAkAACAABIJAiIM873V2ebirZTKQ54UJAAAgAASAABIAAEAACtRCQ3+9s2Lc36W+Rl5t0YuopgoNCIAAEgAAQAAJAAAgAAREBed6ZkOrfDGHSKaKJQiAABIAAEAACQAAIAAENAXXeOdl6w69xKilPjR3KgQAQAAJAAAgAASAABICAiIA270y+JxLroBAIAAEgAASAABAAAkAACNRFQJt3JnzUD4vqyinQy6+NzsQSlYEAEAACQAAIAAEgAARWG4H/B/UiIFnNrd6JAAAAAElFTkSuQmCC" /></p><p><br /></p><p><br /></p><h3 id="InstallansiblewithwinrmforWindowsserverautomation-Testingplaybook">Testing playbook</h3><p><br />[root@ansible01 ~]# more hosts.ini<br />[win:vars]<br />ansible_user='DOMAIN\jephe'<br />ansible_password=xxxxxxxxxxx<br />ansible_connection=winrm<br />ansible_winrm_server_cert_validation=ignore<br />#ansible_winrm_scheme=http<br />ansible_port=5985<br />#ansible_winrm_transport=kerberos<br />#ansible_winrm_transport=credssp<br />ansible_winrm_transport=ntlm</p><p>[win]<br />192.168.1.10<br /></p><p>root@ansible01 ~]# ansible -i hosts.ini win -m win_ping</p><p>192.168.1.10 | SUCCESS => {<br /> "changed": false,<br /> "ping": "pong"</p><p><span>}<br /></span></p><p>[root@ansible01 ~]# more win_play.yml<br />---</p><p>- name: test<br /> hosts: all<br /> become_method: runas</p><p> tasks:</p><p> - name: whoami</p><p><span> win_shell: mkdir c:\tmp\jewu2</span></p><p>[root@ansible01 ~]# ansible-playbook -i hosts.ini win_play.yml</p><p>PLAY
[test]
****************************************************************************************************************************************</p><p>TASK
[Gathering Facts]
*****************************************************************************************************************************<br />ok: [192.168.1.10]</p><p>TASK
[whoami]
**************************************************************************************************************************************<br />changed: [192.168.1.10]</p><p>PLAY
RECAP
*****************************************************************************************************************************************</p><p><span>192.168.1.10 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0</span><br />===============</p>
</div><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-43065141592192524922021-11-25T16:10:00.007+11:002021-11-25T16:11:16.335+11:00<h2 style="text-align: left;"> How to manually configure ntpd and chronyd on RHEL 6/7/8</h2><p> by Jephe Wu - <a href="http://linuxtechres.blogspot.com">http://linuxtechres.blogspot.com</a> </p><p><br /></p><p><br /></p><h3 style="text-align: left;">Add below lines into /etc/chrony.conf or /etc/ntp.conf<br /></h3><p>server x.x.x.x iburst</p><p>server y.y.y.y iburst </p><p><br /></p><h3 style="text-align: left;">Manually update time once</h3><p>systemctl stop ntpd</p><p>ntpdate x.x.x.x</p><p> </p><p>systemctl stop chronyd</p><p>chronyd -q 'server x.x.x.x iburst'<br /></p><p><br />[root@server1 ]# chronyd -q 'server 192.168.1.100 iburst'<br />2021-11-25T05:08:34Z chronyd version 3.4 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG)<br />2021-11-25T05:08:34Z Initial frequency -11.868 ppm<br />2021-11-25T05:08:38Z System clock wrong by 0.000087 seconds (step)<br />2021-11-25T05:08:38Z chronyd exiting<br /><br /></p><h3 style="text-align: left;">Show current ntp stauts</h3><p>ntpq -pn</p><p>chronyc [-n] sources<br /></p><p><br /></p><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-5245562541106550022021-11-23T22:36:00.006+11:002021-11-23T22:54:58.998+11:00<h2 style="text-align: left;">How to setup an ideal rsync task between two Linux servers</h2><p> by Jephe Wu - <a href="http://linuxtechres.blogspot.com">http://linuxtechres.blogspot.com</a></p><p> </p><h3 style="text-align: left;">Summary</h3><p>There's some issue for syncing server a(source) to server b (dest.) which caused server b partition full, in order to solve the problem, we need to adjust some rsync parameters for cronjob task.</p><p><br /></p><h3 style="text-align: left;">Original rsync task under root cronjob</h3><p>*/30 * * * * /usr/bin/rsync --numeric-ids -avr --exclude=.snapshot 192.168.1.10::share/* /share</p><p>Note: this has caused server b /share partition full due to it won't delete files on destination site.</p><p><br /></p><p>In order to make a full sync working again, we will need to manually run task below which will delete first to free up space, then sync files again.</p><p></p><p><b><i>/usr/bin/rsync --numeric-ids -avr --delete --delete-before --ignore-errors --exclude=.snapshot 192.168.1.10::share/* /share</i></b></p><p><br /></p><h3 style="text-align: left;">The rsync daemon config on server a is below:</h3><p><i>[root@servera share]# more /etc/rsyncd.conf <br /><br />reverse lookup = false<br /><br />[share]<br /> path = /share<br /> numeric ids = yes<br /> max connections = 10<br /> list = true</i><br /><br /><br />After full sync completed, we will change cronjob to below:</p><p><br /><i><b>*/30 * * * * /usr/bin/rsync --numeric-ids -avr --delete --delete-before --ignore-errors --exclude=.snapshot 192.168.1.10::share/* /share >> /var/log/rsync-cron.log</b></i><br /></p><p>Note: sometimes, you will encounter error message '<b>IO error encountered -- skipping file deletion</b>' for rsync command, you can use '--ignore-errors' option as above to avoid this issue.</p><p><br /></p><p><br /></p><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-51266880910297921822021-11-23T22:23:00.006+11:002023-10-12T15:18:31.961+11:00<h2 style="text-align: left;"> How to check if a remote server port is open or not</h2><p> by Jephe Wu - <a href="http://linuxtechres.blogspot.com">http://linuxtechres.blogspot.com</a></p><p><br /></p><p style="text-align: left;"><b>Objective</b>: test from a Linux client to decide if remote server port is open or not</p><h3 style="text-align: left;">Method 1: telnet</h3><p>e.g. telnet server1 389 - check if tcp/389 is open on server1 to client</p><p><br /></p><h3 style="text-align: left;">Method 2: nc </h3><p>e.g. nc -vz server1 389 - check if tcp/389 is open on server1 to client</p><p>or nc -w 5 -vz server1 389 to specify timeout value</p><p><br /></p><h3 style="text-align: left;">Method 3: openssl</h3><p>Sometimes, there's no telnet or nc available/installed on client, we can try openssl</p><p>e.g. openssl s_client -connect server1:389</p><p> </p><h3 style="text-align: left;">Method 4: curl </h3><p style="text-align: left;">server 1 has ip 1.2.3.4 <br /></p><p><br />[root@server1 unixadm]# curl -v telnet://1.2.3.4:10002<br />* About to connect() to 1.2.3.4 port 10002 (#0)<br />* Trying 1.2.3.4...<br />* Connected to 1.2.3.4 (1.2.3.4) port 10002 (#0)<br /><br /></p><h3 style="text-align: left;">Method 5: from Windows Powershell</h3><p>PS c:\users\jwu> Test-NetConnection -computername xxxx -port 443<br /></p><p><br /></p><p><b>Method 6: Linux bash shell</b></p><p>(timeout 1 bash -c "</dev/tcp/x.x.x.x/8080" && echo -n PORT OPEN || echo -n PORT CLOSED)</p><p><br /></p><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-9047234870457782952021-11-22T16:58:00.004+11:002021-11-23T22:55:58.738+11:00<h2 style="text-align: left;"> How to configure manual entries in /etc/resolv.conf instead of DNS1/DNS2 in ifcfg-ens192</h2><p> by Jephe Wu - <a href="http://linuxtechres.blogspot.com">http://linuxtechres.blogspot.com</a></p><p><br /></p><h3 style="text-align: left;">Summary </h3><p>There are two things in RHEL7 which will use DNS1/DNS2 in /etc/sysconfig/network-scripts/ifcfg-ens192 instead of manual configuration for /etc/resolv.conf for nameserver lines.</p><p>1) use NetworkManager in ifcfg-ens192 and also update dns in /etc/NetworkManager/NetworkManager.conf under main section by default</p><p>2) PEERDNS in ifcfg-ens192 will overwrite /etc/resolv.conf nameserver with DNS1/DNS2 anyway although IP is static not dhcp</p><p><br /></p><h3 style="text-align: left;">Steps</h3><p>You need to disable networkmanager and also PEERDNS</p><h4 style="text-align: left;"><br /></h4><h4 style="text-align: left;">1) disable networkmanager</h4><p><br />[root@server1 network-scripts]# grep -i nm_controlled ifcfg-ens192<br />NM_CONTROLLED=no<br /></p><h4 style="text-align: left;">2) or disable dns in NetworkManager.conf</h4><p>[root@server2 network-scripts]# grep dns /etc/NetworkManager/NetworkManager.conf<br />dns=none<br /></p><p><br /></p><h4 style="text-align: left;">3) also you need to disable PEERDNS</h4><p><br />[root@server1 network-scripts]# grep -i peerdns /etc/sysconfig/network-scripts/ifcfg-ens192<br />PEERDNS=no</p><p><br /></p><h4 style="text-align: left;">4) reload NetworkManager and restart network to make sure /etc/resolv.conf is not being emptied first before reboot</h4><p>systemctl reload NetworkManager</p><p>systemctl restart network</p><p><br /></p><h4 style="text-align: left;">5) reboot<br /></h4><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-24898532876594926982021-11-20T13:46:00.012+11:002022-04-02T14:54:18.259+11:00<h1 style="text-align: left;"> How to resize VM partition on Vmware </h1><p> by Jephe Wu - <a href="http://linuxtechres.blogspot.com">http://linuxtechres.blogspot.com</a> <br /></p><h3 id="AddinganewharddiskforVMinvmwareandincreaseexistingpartitionsizeinOVM-ExtendaLVMpartition" style="text-align: left;">Extend a LVM partition</h3><ol><li>from Vcenter, to edit configure, to add a new hard disk with required size<br /></li><li> <code>echo "- - -" > /sys/class/scsi_host/<b><span style="color: red;">host#</span></b>/scan</code> for each host* (replace # with actual numbers)</li><li>dmesg and cat /proc/partition to confirm new disk is added.</li></ol><p> 4. fdisk /dev/sdb to create a new partition and use t to change it to 8e LVM</p><p> 5 . pvcreate /dev/sdb1</p><p> 6. vgextend vg_root /dev/sdb1</p><p> 7. lvextend -l +100%FREE /dev/vg_root/lv_root</p><p>or 8. lvextend -L +20G /dev/vg_root/lv_root (if only increase 20G) <br /></p><p style="text-align: left;"><code></code></p><p> 9. resize2fs /dev/mapper/vg_root-lv_root </p><p>or xfs_growfs <a class="unresolved" href="https://wiki.nttict.com.au/display/ENG/Adding+a+new+hard+disk+for+VM+in+vmware+and+increase+existing+partition+size+in+OVM#">mountpoint</a> (if it's xfs partition)</p><p><br /></p><h3 style="text-align: left;">Modify existing sdb LVM PV disk size and use it in vg</h3><p>1. <code>echo "- - -" > /sys/class/scsi_host/<b><span style="color: red;">host#</span></b>/scan</code> for each host* (replace # with actual numbers)</p><p>or</p><pre>echo 1 > /sys/block/sdb/device/rescan</pre><p> </p><p>2. use pvscan or fdisk -l | grep -i sdb to confirm new disk size</p><p>3. blockdev --rereadpt /dev/sdb to resize LVM volume size</p><p>4. pvresize /dev/sdb to resize PV</p><p><br /></p><h3>Resize Procedure for /dev/sdb1 PV</h3><p style="text-align: left;"><a href="https://access.redhat.com/solutions/57183">https://access.redhat.com/solutions/57183</a><br /></p>
<p>1. Confirm the actual storage size with <code>fdisk -ul /dev/sdb</code>.
Observe the increased disk size. Depending on how the storage is
presented, a system reboot may be necessary for this to appear.</p>
<p>2. Resize the partition on the disk. To achieve this, observe the starting sector in <code>fdisk -ul /dev/sdb</code>, then remove the partition with <code>fdisk</code>
and re-create it with the same starting sector but the (default) last
sector of the drive as the ending sector. Then write the partition table
and confirm the change (and the correct starting sector) with <code>fdisk -ul /dev/sdb</code>.</p>
<p>3. Run <code>pvresize /dev/sdb1</code> to grow (resize) the PV onto the rest of the expanded partition. This will create free extents within the <code>Volume Group</code> which then can be used to grow a <code>Logical Volume</code>. Running <code>lvresize</code> command with <code>-r</code> as <code>lvresize -r</code> will grow the filesystem within the <code>Logical Volume</code> as well.</p>
<p>Another solution would be creating a new partition under the same
device starting where the first partition ended and using the rest of
the cylinders to create the same, then put this new partition under LVM
with the <code>pvcreate</code> command, extend the current <code>VG</code> (<code>vgextend vg-name pv-name</code>), then extend the current <code>LV</code> (<code>lvextend</code>) and finally resize the current filesystem (<code>resize2fs</code>).</p><p></p><p><br /></p><h3 style="text-align: left;">Create a new LVM partition with new disk</h3><p>pvcreate /dev/sdx1 </p><p>vgcreate vg01 /dev/sdx1<br /></p><p>lvcreate -l +100%FREE -n apps vg01<br />mkfs -t xfs /dev/mapper/vg01_apps</p><p><br /></p><pre></pre><h3 id="AddinganewharddiskforVMinvmwareandincreaseexistingpartitionsizeinOVM-Forrollback" style="text-align: left;">For rollback</h3><p>1) Unmount the mountpoint</p><p>umount -v /var/www</p><p>2) Check for filesystem error</p><p>e2fsck -f /dev/vg-repo/lv-repo</p><p>3) Reduce the logical volume</p><p>lvreduce --resize2fs -L -100G (-l 5119) /dev/vg-repo/lv-repo</p><p>Note: use vgdisplay to record down existing used logic extent number, it's 5119 in this case before increase<br /></p><p>4) Check for filesystem error</p><p>e2fsck -f /dev/vg-repo/lv-repo</p><p>5) Mount the filesystem back to the same mountpoint</p><p>mount /dev/vg-repo/lv-repo /var/www</p><p>6) Reduce the VG in order to release the PV /dev/sde1</p><p>vgreduce vg-repo /dev/sde1</p><p>7) Remove the PV</p><p>pvremove /dev/sde1</p><p>8) Remove the new created disk from vcenter in the backup plan?</p><br /><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-13461447765123802582019-06-20T21:54:00.005+10:002021-11-20T13:35:20.965+11:00How to change default boot entry in RHEL7by Jephe Wu<br />
<br />
https://access.redhat.com/solutions/1605183<br />
<br />
<h4>
Check default kernel configured </h4>
grubby --default-kernel<br />
<br />
<br />
<h4>
Check default kernel is kernel or kernel-uek</h4>
<br />
<pre style="background-color: whitesmoke; border-radius: 0px; border: 1px solid rgb(237, 237, 237); box-sizing: border-box; color: #333333; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; overflow-wrap: normal; overflow: auto; padding: 0.9375rem; white-space: pre-wrap; word-break: normal;"><code style="background-color: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: inherit; padding: 0px;">cat /etc/sysconfig/kernel</code></pre>
<br />
<h4>
Check entry numbering</h4> <br />
<pre style="background-color: whitesmoke; border-radius: 0px; border: 1px solid rgb(237, 237, 237); box-sizing: border-box; color: #333333; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; overflow-wrap: normal; overflow: auto; padding: 0.9375rem; white-space: pre-wrap; word-break: normal;"><code style="background-color: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: inherit; padding: 0px;">awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg</code></pre>
or<br />
grep ^menu /etc/grub2.cfg | awk -F\' '{print $2}'<br />
<h4>
setup default entry to reboot</h4>
use number below or menu output above <br />
<pre style="background-color: whitesmoke; border-radius: 0px; border: 1px solid rgb(237, 237, 237); box-sizing: border-box; color: #333333; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; overflow-wrap: normal; overflow: auto; padding: 0.9375rem; white-space: pre-wrap; word-break: normal;"><code style="background-color: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: inherit; padding: 0px;">grub2-set-default 1</code></pre>
<br />
Note: this will change /boot/grub2/grubenv<br />
<br />
change /etc/default/grub requires to rebuild /etc/grub2.cfg<br />
<br />
<br />
<span style="background-color: whitesmoke; color: #252525; font-family: "consolas" , "monaco" , "andale mono" , monospace; font-size: 14.4px; white-space: nowrap;">grub2-mkconfig -o /boot/grub2/grub.cfg</span><br />
<br />
<br />
<br />
<br />
<br /><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-71762354882984235572019-06-18T12:40:00.000+10:002019-06-25T15:23:35.729+10:00Installing Oracle database 19c on Oracle Linux 7<br />
by Jephe Wu<br />
<br />
<h2>
Preparation</h2>
<div>
Download 19c database rpm </div>
<div>
yum install tigervnc-server xterm</div>
<div>
yum install oracle-database-preinstall-19c.x86_64</div>
<div>
yum localinstall oracle-database-ee-19c-1.0-1.x86_64.rpm</div>
<div>
<br /></div>
<div>
yum install wget</div>
<div>
wget https://yum.oracle.com/repo/OracleLinux/OL6/9/base/x86_64/getPackage/xorg-x11-twm-1.0.3-5.1.el6.x86_64.rpm</div>
<div>
rpm -ivh xorg-x11-twm-1.0.3-5.1.el6.x86_64.rpm </div>
<div>
<br /></div>
<div>
su - oracle</div>
<div>
vncserver </div>
<div>
<br /></div>
<div>
type in oracle as password</div>
<div>
<br /></div>
<div>
ssh -X -i /home/local/ANT/wujephe/jephe-sydney.pem ec2-user@52.62.117.20 -L 5901:localhost:5901</div>
<div>
<br /></div>
<div>
Use Linux Remmina to connect to VNC localhost:1 with password 'oracle'.<br />
<br />
<h2>
Users and groups preparation</h2>
As preinstall rpm won't create asm* groups by itself, you might need to manually create them first.<br />
<br />
Check /etc/groups for group id usage to find out which are available then create accordingly.<br />
<pre class="pre codeblock hljs" style="background: rgb(238, 238, 238); border-radius: 6px; border: 1px solid rgb(170, 170, 170); box-sizing: border-box; font-size: 15.4px; line-height: 1.42857; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 5px; word-break: normal;"><code style="border-radius: 0px; box-sizing: border-box; color: #333333; font-family: "courier new", courier, monospace; padding: 0px;"># groupadd -g 54421 oinstall
# groupadd -g 54322 dba
# groupadd -g 54323 oper
# groupadd -g 54324 backupdba
# groupadd -g 54325 dgdba
# groupadd -g 54326 kmdba
# groupadd -g 54327 asmdba
# groupadd -g 54328 asmoper
# groupadd -g 54329 asmadmin
# groupadd -g 54330 racdba</code></pre>
<h2>
<pre class="screen" style="background: rgb(37, 37, 37); border-radius: 0px; border: 1px solid rgb(26, 26, 26); box-sizing: border-box; color: #f0f0f0; font-family: consolas, monaco, "andale mono", monospace; font-size: 13px; font-weight: 400; line-height: 1.42857; margin-bottom: 1.8em; overflow-wrap: normal; overflow: auto; padding: 0.9375rem; text-shadow: none; white-space: pre-wrap; word-break: normal;"># useradd --uid 54321 --gid oinstall --groups dba,oper,asmdba,racdba,backupdba,dgdba,kmdba oracle
# useradd --uid 54322 --gid oinstall --groups dba,asmadmin,asmdba,asmoper,racdba grid</pre>
</h2>
You might need to run usermod to change oracle user groups as it's being created by oracle-database-ee-19c-1.0-1.x86_64.rpm<br />
<br />
<i>usermod -G dba,oper,asmdba,racdba,backupdba,dgdba,kmdba oracle</i><br />
<br />
Otherwise, when installing database software, it might not able to find ASM disk group.<br />
<br />
Refer to <b style="background-color: white; font-family: tahoma, verdana, helvetica, sans-serif; font-size: 14.3px; text-align: right;"><a href="https://access.redhat.com/documentation/en-us/reference_architectures/2017/html/deploying_oracle_rac_database_12c_release_2_on_red_hat_enterprise_linux_7/ref_config_details#user_groups">https://access.redhat.com/documentation/en-us/reference_architectures/2017/html/deploying_oracle_rac_database_12c_release_2_on_red_hat_enterprise_linux_7/ref_config_details#user_groups</a></b><br />
<br />
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;">Note: for oracle and grid user, it's very important for them to belong to secondary group as follows</span><span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;"></span><br />
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;"><br /></span><span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; text-align: right;"><b>usermod -G dba,asmdba,backupdba,dgdba,kmdba,racdba oracle</b></span><br />
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; text-align: right;"><b>usermod -G asmadmin,asmdba,racdba grid</b></span><br />
<h2>
Directory preparation</h2>
login as root , run<br />
mkdir -p /u01/app/19.0.0/grid<br />
mkdir -p /u01/app/oracle<br />
chown -R grid:oinstall /u01<br />
chown oracle:oinstall /u01/app/oracle<br />
chmod -R 775 /u01/<br />
<br />
Note: grid infrastructure installation will ask for ORACLE_HOME directory which is for some logging within grid, just use default value prompted.<br />
<br />
<br />
<br />
For grid installation<br />
login as grid user<br />
$ cd /u01/app/19.0.0/grid<br />
$ unzip -q /u01/softwares/grid_home.zip<br />
$ ./gridSetup.sh # within vnc window<br />
<br />
<h2>
Install cvuqdisk rpm before starting grid installation</h2>
[root@localhost 19.0.0]# cd grid/cv/rpm/<br />
[root@localhost rpm]# ls<br />
cvuqdisk-1.0.10-1.rpm<br />
<br />
[root@localhost rpm]# rpm -ivh cvuqdisk-1.0.10-1.rpm<br />
Preparing... ################################# [100%]<br />
Using default group oinstall to install package<br />
Updating / installing...<br />
1:cvuqdisk-1.0.10-1 ################################# [100%]<br />
<h2>
Device consistency </h2>
<h4>
use UDEV rules</h4>
<b style="background-color: white; font-family: tahoma, verdana, helvetica, sans-serif; font-size: 14.3px; text-align: right;"><a href="https://oracle-base.com/articles/linux/udev-scsi-rules-configuration-in-oracle-linux">https://oracle-base.com/articles/linux/udev-scsi-rules-configuration-in-oracle-linux</a> </b><br />
<br />
[root@ip-172-31-6-220 rules.d]# more 99-oracleasm.rules<br />
<br />
KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="360014057643ce73dd3a4080b6832a913", SYMLINK+="asm-disk1", OWNER="grid", GROUP="oinstall", MODE="0660"<br />
<br />
[root@ip-172-31-6-220 rules.d]# ll /dev/sda1<br />
<br />
brw-rw----. 1 grid oinstall 8, 1 Jun 21 00:42 /dev/sda1<br />
<br />
[root@ip-172-31-6-220 rules.d]# ll /dev/asm-disk1<br />
<br />
lrwxrwxrwx. 1 root root 4 Jun 21 00:42 /dev/asm-disk1 -> sda1<br />
<br />
[root@ip-172-31-6-220 rules.d]# /usr/lib/udev/scsi_id -g -u -d /dev/sda1<br />
<br />
360014057643ce73dd3a4080b6832a913<br />
<br />
[root@ip-172-31-6-220 rules.d]# udevadm control --reload-rules<br />
<br />
[root@ip-172-31-6-220 rules.d]# udevadm trigger<br />
<h3>
use ASMFD</h3>
<br />
$ su root<br />
# export ORACLE_HOME=/u01/app/19.0.0/grid<br />
# export ORACLE_BASE=/tmp<br />
Use Oracle ASM command line tool (ASMCMD) to provision the disk devices for use with Oracle ASM Filter Driver.<br />
# cd /u01/app/19.0.0/grid/bin<br />
# ./asmcmd afd_label DATA1 /dev/sdb --init<br />
# ./asmcmd afd_label DATA2 /dev/sdc --init<br />
# ./asmcmd afd_label DATA3 /dev/sdd --init<br />
<br />
to unlabel:<br />
<br />
# /u01/app/19.0.0/grid/bin/asmcmd afd_unlabel /dev/sdb -f --init<br />
<br />
Verify the device has been marked for use with Oracle ASMFD.<br />
# ./asmcmd afd_lslbl /dev/sdb<br />
# ./asmcmd afd_lslbl /dev/sdc<br />
# ./asmcmd afd_lslbl /dev/sdd<br />
<br />
Log in as the grid user, and start the Oracle Grid Infrastructure installer by running the following command:<br />
$ /u01/app/19.0.0/grid/gridSetup.sh<br />
<br />
<b style="background-color: white; font-family: tahoma, verdana, helvetica, sans-serif; font-size: 14.3px; text-align: right;"><a href="https://docs.oracle.com/en/database/oracle/oracle-database/12.2/ostmg/administer-filter-driver.html#GUID-6F16B5EC-BE7D-44FA-A05B-A62CF33763D3">https://docs.oracle.com/en/database/oracle/oracle-database/12.2/ostmg/administer-filter-driver.html#GUID-6F16B5EC-BE7D-44FA-A05B-A62CF33763D3</a></b><br />
<br />
Note: above requires /dev/sdb to be owned by grid:oinstall based on my testing, otherwise, Grid will fail to open ASM disk, maybe put into /etc/rc.d/rc.local as follows<br />
<br />
chown grid:oinstall /dev/sdb<br />
<h2>
VNC preparation</h2>
login as grid and oracle user, run<br />
vncserver :1 and vncserver :2 to start vnc server<br />
<br />
<br />
<h2>
Installation for database</h2>
<div>
<pre class="pre codeblock hljs" style="background: rgb(238, 238, 238); border-radius: 6px; border: 1px solid rgb(170, 170, 170); box-sizing: border-box; font-size: 15.4px; line-height: 1.42857; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 5px; word-break: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; box-sizing: border-box; color: #333333; font-family: "Courier New", Courier, monospace; padding: 0px;">$ mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1
$ chgrp oinstall /u01/app/oracle/product/19.0.0/dbhome_1
$ cd /u01/app/oracle/product/19.0.0/dbhome_1
$ unzip -q /tmp/db_home.zip</code></pre>
</div>
<pre class="pre codeblock hljs" style="background: rgb(238, 238, 238); border-radius: 6px; border: 1px solid rgb(170, 170, 170); box-sizing: border-box; font-size: 15.4px; line-height: 1.42857; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; overflow: auto; padding: 5px; word-break: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; box-sizing: border-box; color: #333333; font-family: "Courier New", Courier, monospace; padding: 0px;">$ cd /u01/app/oracle/product/19.0.0/dbhome_1
$ ./runInstaller</code></pre>
</div>
<div>
<br /></div>
<div>
<h2>
References</h2>
<a href="https://dbaclass.com/article/move-spfile-file-system-asm-rac/">https://dbaclass.com/article/move-spfile-file-system-asm-rac/</a><br />
<a href="https://access.redhat.com/documentation/en-us/reference_architectures/2017/html-single/deploying_oracle_rac_database_12c_release_2_on_red_hat_enterprise_linux_7/index">https://access.redhat.com/documentation/en-us/reference_architectures/2017/html-single/deploying_oracle_rac_database_12c_release_2_on_red_hat_enterprise_linux_7/index</a><br />
<h2>
<b style="font-family: tahoma, verdana, helvetica, sans-serif; font-size: 14.3px; text-align: right;"><a href="https://oracle-base.com/articles/12c/oracle-db-12cr2-rac-installation-on-oracle-linux-7-using-virtualbox">https://oracle-base.com/articles/12c/oracle-db-12cr2-rac-installation-on-oracle-linux-7-using-virtualbox</a></b></h2>
<h2>
<br />Issues</h2>
<br />
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;">Error 49802 Initializing ADR when running gridSetup.sh</span><br />
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;"><br /></span>
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; text-align: right;">=> make sure /u01/app/19.0.0/grid and subdirectory are owned by grid:oinstall</span><br />
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; text-align: right;"><br /></span>
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; text-align: right;">chown grid:oinstall -R /u01/app/19.0.0/grid</span><br />
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;"><br /></span><span style="background-color: white; font-size: 14.3px; text-align: right;"><span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><b> </b></span></span><br />
<span style="background-color: white; font-size: 14.3px; text-align: right;"><span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><b>ORA-15107: missing or invalid ASM disk name</b></span></span><br />
<span style="background-color: white; font-size: 14.3px; text-align: right;"><span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><b>=> change /etc/udev/rules.d/99-oracleasm.rules from /dev/sd?1</b></span></span><br />
<span style="background-color: white; font-size: 14.3px; text-align: right;"><span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><b><br /></b></span></span>
<br />
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>[root@localhost rules.d]# more 99-oracleasm.rules</b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>KERNEL=="sd?", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB9ded913b-c5b04341", SYMLINK+="asm-disk1", OWNER="grid", GROUP="asmad</b></span></span></div>
<span style="background-color: white; font-size: 14.3px; text-align: right;"><b><span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"></span></b></span><br />
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>min", MODE="0660"</b></span></span></div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b><br /></b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>[grid@localhost ~]$ /u01/app/19.0.0/grid/bin/asmca -silent -oui_internal -configureASM -diskString '/dev/sd*' -diskGroupName DATA -diskList /dev/sdb1 -redundancy EXTERNAL -au_size 4</b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>SYS_PASSWORD_PROMPT</b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b><br /></b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>ASMSNMP_PASSWORD_PROMPT</b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b><br /></b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b><br /></b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>[FATAL] [DBT-30002] Disk group DATA creation failed.</b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>ORA-15018: diskgroup cannot be created</b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>ORA-15107: missing or invalid ASM disk name</b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b><br /></b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b><br /></b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b><br /></b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>[grid@localhost ~]$ /u01/app/19.0.0/grid/bin/asmca -silent -oui_internal -configureASM -diskString '/dev/sd*' -diskGroupName DATA -diskList /dev/sdb -redundancy EXTERNAL -au_size 4</b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>SYS_PASSWORD_PROMPT</b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b><br /></b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>ASMSNMP_PASSWORD_PROMPT</b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b><br /></b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b><br /></b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>ASM has been created and started successfully.</b></span></span></div>
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b><br /></b></span></span></div>
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b><span style="background-color: white; text-align: right;"><span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"></span></span>
</b></span></span>
<br />
<div style="text-align: right;">
<span style="font-family: "tahoma" , "verdana" , "helvetica" , sans-serif;"><span style="font-size: 14.3px;"><b>[DBT-30001] Disk groups created successfully. Check /u01/app/19.0.0/grid_base/cfgtoollogs/asmca/asmca-190625AM092007.log for details.</b></span></span></div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<br /></div>
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;"><br /></span>
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; text-align: right;"><span style="font-size: 14.3px;"><b><br /></b></span></span>
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;"><br /></span>
<br />
<div style="text-align: right;">
<br /></div>
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;"></span>
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;"></span>
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;"></span>
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;"><br /></span>
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;"><br /></span>
<span style="background-color: white; font-family: "tahoma" , "verdana" , "helvetica" , sans-serif; font-size: 14.3px; font-weight: 700; text-align: right;"><br /></span></div>
<div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-63991360903647833982019-06-07T13:54:00.000+10:002019-06-19T10:22:59.147+10:00Setting up iscsi sharing between RHEL7by Jephe Wu<br />
<br />
=== On target side<br />
<br />
1. Add a volume on AWS EC2 console and assign volume to the EC2 VM<br />
<br />
confirmed new volume in /proc/partitions<br />
<br />
fdisk /dev/xvdf<br />
<br />
to create one partition with linux type<br />
<br />
2. yum install targetcli<br />
systemctl enable target<br />
systemctl start target<br />
<br />
3. setup target lun<br />
<br />
[root@ip-172-31-4-10 ec2-user]# targetcli<br />
targetcli shell version 2.1.fb49<br />
Copyright 2011-2013 by Datera, Inc and others.<br />
For help on commands, type 'help'.<br />
/> iscsi/<br />
/iscsi> create<br />
Created target iqn.2003-01.org.linux-iscsi.ip-172-31-4-10.x8664:sn.82d2391e0b7c.<br />
Created TPG 1.<br />
Global pref auto_add_default_portal=true<br />
Created default portal listening on all IPs (0.0.0.0), port 3260.<br />
/iscsi> ls<br />
o- iscsi .............................................................................................................. [Targets: 1]<br />
o- iqn.2003-01.org.linux-iscsi.ip-172-31-4-10.x8664:sn.82d2391e0b7c .................................................... [TPGs: 1]<br />
o- tpg1 ................................................................................................. [no-gen-acls, no-auth]<br />
o- acls ............................................................................................................ [ACLs: 0]<br />
o- luns ............................................................................................................ [LUNs: 0]<br />
o- portals ...................................................................................................... [Portals: 1]<br />
o- 0.0.0.0:3260 ....................................................................................................... [OK]<br />
/iscsi> iqn.2003-01.org.linux-iscsi.ip-172-31-4-10.x8664:sn.82d2391e0b7c/tpg1<br />
<div>
<br /></div>
/iscsi/iqn.20...391e0b7c/tpg1> /<br />
/> /backstores/block create name=block_backend dev=/dev/xvdf<br />
Created block storage object block_backend using /dev/xvdf.<br />
/> iscsi/<br />
/iscsi> iqn.2003-01.org.linux-iscsi.ip-172-31-4-10.x8664:sn.82d2391e0b7c/tpg1<br />
/iscsi/iqn.20...391e0b7c/tpg1> luns/ create /backstores/block/block_backend<br />
Created LUN 0.<br />
/iscsi/iqn.20...391e0b7c/tpg1> ls<br />
o- tpg1 ..................................................................................................... [no-gen-acls, no-auth]<br />
o- acls ................................................................................................................ [ACLs: 0]<br />
o- luns ................................................................................................................ [LUNs: 1]<br />
| o- lun0 ................................................................... [block/block_backend (/dev/xvdf) (default_tg_pt_gp)]<br />
o- portals .......................................................................................................... [Portals: 1]<br />
o- 0.0.0.0:3260 ........................................................................................................... [OK]<br />
/iscsi/iqn.20...391e0b7c/tpg1> /<br />
<div>
<br /></div>
<div>
<div>
/iscsi> iqn.2003-01.org.linux-iscsi.ip-172-31-4-10.x8664:sn.82d2391e0b7c/tpg1</div>
</div>
<div>
<br /></div>
<div>
<div>
/iscsi/iqn.20...391e0b7c/tpg1> acls/</div>
<div>
/iscsi/iqn.20...b7c/tpg1/acls> create iqn.1994-05.com.redhat:413be97b32f2</div>
<div>
Created Node ACL for iqn.1994-05.com.redhat:413be97b32f2</div>
<div>
Created mapped LUN 0.</div>
</div>
<div>
<br /></div>
<div>
<div>
/iscsi/iqn.20...391e0b7c/tpg1> ls</div>
<div>
o- tpg1 ..................................................................................................... [no-gen-acls, no-auth]</div>
<div>
o- acls ................................................................................................................ [ACLs: 1]</div>
<div>
| o- iqn.1994-05.com.redhat:413be97b32f2 ........................................................................ [Mapped LUNs: 1]</div>
<div>
| o- mapped_lun0 ............................................................................... [lun0 block/block_backend (rw)]</div>
<div>
o- luns ................................................................................................................ [LUNs: 1]</div>
<div>
| o- lun0 ................................................................... [block/block_backend (/dev/xvdf) (default_tg_pt_gp)]</div>
<div>
o- portals .......................................................................................................... [Portals: 1]</div>
<div>
o- 0.0.0.0:3260 ........................................................................................................... [OK]</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
====on client side<br />
<br />
[root@ip-172-31-8-24 ec2-user]# yum install iscsi-initiator-utils</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<div>
[root@ip-172-31-0-31 iscsi]# iscsiadm -m discovery -t st -p 172.31.4.10 </div>
<div>
172.31.4.10:3260,1 iqn.2003-01.org.linux-iscsi.ip-172-31-4-10.x8664:sn.82d2391e0b7c</div>
</div>
<div>
<br /></div>
<div>
<div>
[root@ip-172-31-0-31 iscsi]# iscsiadm -m node -T iqn.2003-01.org.linux-iscsi.ip-172-31-4-10.x8664:sn.82d2391e0b7c -l</div>
<div>
Logging in to [iface: default, target: iqn.2003-01.org.linux-iscsi.ip-172-31-4-10.x8664:sn.82d2391e0b7c, portal: 172.31.4.10,3260] (multiple)</div>
<div>
Login to [iface: default, target: iqn.2003-01.org.linux-iscsi.ip-172-31-4-10.x8664:sn.82d2391e0b7c, portal: 172.31.4.10,3260] successful.</div>
</div>
<div>
<br /></div>
<div>
<div>
[root@ip-172-31-0-31 iscsi]# dmesg | grep sda</div>
<div>
[348576.211493] sd 4:0:0:0: [sda] 20971520 512-byte logical blocks: (10.7 GB/10.0 GiB)</div>
<div>
[348576.221556] sd 4:0:0:0: [sda] Write Protect is off</div>
<div>
[348576.226764] sd 4:0:0:0: [sda] Mode Sense: 43 00 00 08</div>
<div>
[348576.227815] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA</div>
<div>
[348576.256350] sda: sda1</div>
<div>
[348576.263152] sd 4:0:0:0: [sda] Attached SCSI disk</div>
</div>
<div>
<br /></div>
<div>
there's no need to enable any client service, as kernel will detect iscsi drive automatically below<br />
<br />
----<br />
[ 12.312069] Loading iSCSI transport class v2.0-870.<br />
[ 12.354416] iscsi: registered transport (tcp)<br />
[ 12.382519] scsi host2: iSCSI Initiator over TCP/IP<br />
[ 12.398666] scsi 2:0:0:0: Direct-Access LIO-ORG block_backend 4.0 PQ: 0 ANSI: 5<br />
[ 12.417146] scsi 2:0:0:0: alua: supports implicit and explicit TPGS<br />
[ 12.422931] scsi 2:0:0:0: alua: device naa.600140563a0ac28e2414b52a3c5f8f89 port group 0 rel port 1<br />
[ 12.431126] scsi 2:0:0:0: alua: Attached<br />
[ 12.438279] scsi 2:0:0:0: alua: transition timeout set to 60 seconds<br />
[ 12.445803] scsi 2:0:0:0: alua: port group 00 state A non-preferred supports TOlUSNA<br />
[ 12.458154] scsi 2:0:0:0: Attached scsi generic sg0 type 0<br />
[ 12.506779] sd 2:0:0:0: [sda] 20971520 512-byte logical blocks: (10.7 GB/10.0 GiB)<br />
[ 12.543041] sd 2:0:0:0: [sda] Write Protect is off<br />
[ 12.547556] sd 2:0:0:0: [sda] Mode Sense: 43 00 00 08<br />
[ 12.564423] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA<br />
[ 12.597412] sda: sda1<br />
[ 12.609015] sd 2:0:0:0: [sda] Attached SCSI disk</div>
<div>
----</div>
<div>
<h3>
References</h3>
<br />
iscsiadm -m session [-P1 | -P3]<br />
login all Luns exported on the target: iscsiadm -m discovery -t st -l<br />
node and discovery database directory: /var/lib/iscsi<br />
disconnect: iscsiadm -m node -T target_iqn_name -p ipaddress -u<br />
remove target from database so it won't connect upon reboot: iscsiadm -m node -T target_iqn_name -p ipaddress --op delete<br />
delete all bindings for iface0: iscsiadm -m node -I iface0 --op=delete<br />
logout all target: iscsiadm -m node -U all<br />
login all node: iscsiadm -m node -L all<br />
rescan lun: iscsiadm -m node -p 192.168.40.10 --rescan<br />
check /var/lib/iscsi interface directory:</div>
<div>
<br /></div>
<div>
<br /></div>
<br /><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-9426152146322966532019-06-03T14:15:00.003+10:002021-11-20T10:01:47.059+11:00How to install a minimal X11 GUI vnc environment on RHEL7/8 for Oracle installationby Jephe Wu<br />
<br />
<h3>
Summary</h3>
In RHEL7, since Redhat removed twm window manager and used mwm instead, however x11 is still configured to use /usr/bin/twm though, if Oracle DBA needs to install Oracle database on RHEL7 remotely with a minimal X11 environment, there's a way to make it so.<br />
<br />
<h3>
Steps</h3><p>
<br />
1. create symbolic link /usr/bin/mwm to /usr/bin/twm </p><p><br /></p><p>cd /usr/bin</p><p>ln -sf mwm twm </p><p>Note: if you still would like to use twm, you can install from RHEL6 below<br /></p><p>download twm window manager from RHEL6<br />
<br />
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/xorg-x11-twm-1.0.3-5.1.el6.x86_64.rpm<br />
<br />
2. install tigervnc-server and xterm<br />
yum install tigervnc-server xterm<br />
<br />
rpm -ivh xorg-x11-twm-1.0.3-5.1.el6.x86_64.rpm (optional for twm)<br />
<br />
3. run vncserver :1 on RHEL7 after ssh with required user (usually oracle)<br />
<br />
4. use vncviewer to connect to RHEL7 ip address at 5901 port</p><p>Note: or you can use ssh port forwarding to forward local port 5901 to remote server with ssh(putty)</p><p>Or ssh -L 5901:localhost:5901 remote_server_ip<br />
<br />
</p><h3>
Reference</h3>
<div>
http://houseofbrick.com/twm-window-manager-on-rhel-7/ </div>
https://docs.oracle.com/cd/E52668_01/E54669/html/ol7-vnc-config.html<br />
<br />
<br /><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-77380328955302006722017-02-06T10:51:00.000+11:002017-02-06T11:15:11.627+11:00How to setup minimum privileges for Oracle 12c on-prem or EC2 for DMS full load and CDC migrationJephe Wu - <a href="http://linuxtechres.blogspot.com/">http://linuxtechres.blogspot.com</a><br />
<br />
<br />
<div style="background-color: white; box-sizing: border-box; color: #444444; font-family: ArialMT, Arial; font-size: 14px; margin-bottom: 10px;">
1. create user and tablespace first</div>
<div style="background-color: white; box-sizing: border-box; margin-bottom: 10px;">
<span style="color: #444444; font-family: "arialmt" , "arial";"><span style="font-size: 14px;">create tablespace jephe</span></span></div>
<div style="background-color: white; box-sizing: border-box; margin-bottom: 10px;">
<span style="color: #444444; font-family: "arialmt" , "arial";"><span style="font-size: 14px;">create user jephe identified by jephe default tablespace jephe;</span></span></div>
<div style="background-color: white; box-sizing: border-box; margin-bottom: 10px;">
<span style="color: #444444; font-family: "arialmt" , "arial";"><span style="font-size: 14px;">grant connect,resource,create view to jephe;</span></span></div>
<div style="background-color: white; box-sizing: border-box; margin-bottom: 10px;">
<span style="color: #444444; font-family: "arialmt" , "arial";"><span style="font-size: 14px;">revoke unlimited tablespace from jephe;</span></span></div>
<div style="background-color: white; box-sizing: border-box; margin-bottom: 10px;">
<span style="color: #444444; font-family: "arialmt" , "arial";"><span style="font-size: 14px;">alter user jephe quota unlimited on jephe;</span></span></div>
<div style="background-color: white; box-sizing: border-box; margin-bottom: 10px;">
<span style="color: #444444; font-family: "arialmt" , "arial";"><span style="font-size: 14px;"><br /></span></span></div>
<div style="background-color: white; box-sizing: border-box; margin-bottom: 10px;">
<span style="color: #444444; font-family: "arialmt" , "arial";"><span style="font-size: 14px;">2. grant required privileges for user jephe</span></span></div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; overflow: auto; padding: 9.5px; word-break: break-all; word-wrap: break-word;">grant create session to jephe;
grant create view to jephe;
grant select any table to jephe;
grant select on all_views to jephe;
grant SELECT ANY TRANSACTION to jephe;
grant SELECT on V_$ARCHIVED_LOG to jephe;
grant SELECT on V_$LOG to jephe;
grant SELECT on V_$LOGFILE to jephe;
grant SELECT on V_$DATABASE to jephe;
grant SELECT on V_$THREAD to jephe;
grant SELECT on V_$PARAMETER to jephe;
grant SELECT on V_$NLS_PARAMETERS to jephe;
grant SELECT on V_$TIMEZONE_NAMES to jephe;
grant SELECT on V_$TRANSACTION to jephe;
grant SELECT on ALL_INDEXES to jephe;
grant SELECT on ALL_OBJECTS to jephe;
grant SELECT on ALL_TABLES to jephe;
grant SELECT on ALL_USERS to jephe;
grant SELECT on ALL_CATALOG to jephe;
grant SELECT on ALL_CONSTRAINTS to jephe;
grant SELECT on ALL_CONS_COLUMNS to jephe;
grant SELECT on ALL_TAB_COLS to jephe;
grant SELECT on ALL_IND_COLUMNS to jephe;
grant SELECT on ALL_LOG_GROUPS to jephe;
grant SELECT on SYS.DBA_REGISTRY to jephe;
grant SELECT on SYS.OBJ$ to jephe;
grant SELECT on DBA_TABLESPACES to jephe;
grant SELECT on ALL_TAB_PARTITIONS to jephe;
grant SELECT on ALL_ENCRYPTED_COLUMNS to jephe;</pre>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; overflow: auto; padding: 9.5px; word-break: break-all; word-wrap: break-word;"># the following is required for successful connection test
grant SELECT on V_$LOGMNR_LOGS to jephe;
grant SELECT on V_$LOGMNR_CONTENTS to jephe;</pre>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; overflow: auto; padding: 9.5px; word-break: break-all; word-wrap: break-word;"># the following is requried during CDC phase to add redo logs for logminer
grant execute on dbms_logmnr to jephe;
grant logmining to jephe;</pre>
<script type="text/javascript">
google_ad_client = "ca-pub-2326791955539700";
google_ad_slot = "7325280754";
google_ad_width = 336;
google_ad_height = 280;
</script>
<!-- linuxtechres_main_Blog1_336x280_as -->
<script src="//pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
<br />
<div style="background-color: white; box-sizing: border-box; color: #444444; font-family: ArialMT, Arial; font-size: 14px; margin-bottom: 10px;">
<br style="box-sizing: border-box;" /></div>
<h2 style="background-color: white; box-sizing: border-box; color: #444444; font-family: ArialMT, Arial; font-size: 20px; font-weight: 500; line-height: 1.1; margin-bottom: 10px; margin-top: 10px;">
<span style="box-sizing: border-box; font-weight: 700;"># how to check the existing privileges</span></h2>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; overflow: auto; padding: 9.5px; word-break: break-all; word-wrap: break-word;">select * from dba_role_privs where grantee = 'JEPHE'; 'minimum is empty'
select * from dba_sys_privs where grantee = 'JEPHE';
select * from dba_tab_privs where grantee = 'JEPHE';</pre>
<div style="background-color: white; box-sizing: border-box; color: #444444; font-family: ArialMT, Arial; font-size: 14px; margin-bottom: 10px;">
<br /></div>
<div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-82275676328129196262015-06-21T20:37:00.001+10:002015-07-02T20:16:52.244+10:00How to reduce AWS EBS root volume size<i>Jephe Wu - <a href="http://linuxtechres.blogspot.com/">http://linuxtechres.blogspot.com</a></i><br />
<br />
<b>Objective</b>: reduce the AWS EBS root volume size from 8G to 4G since file system only used less than 3G.<br />
<b>Environment:</b> <span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; font-weight: bold; line-height: 18.2000007629395px;">Amazon Linux AMI 2015.03 (HVM), SSD Volume Type</span><span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"> - ami-fd9cecc7, t2.macro instance type with 8G gp EBS volume as root volume (default creation steps with launch instance wizard)</span><br />
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"><br /></span>
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"><b>Diagram</b></span><br />
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"><br /></span>
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;">original instance: jephe-base, with 8G ebs root volume, need to shrink it to 5G </span><br />
<span style="color: #444444; font-family: Helvetica Neue, Roboto, Arial, Droid Sans, sans-serif;"><span style="background-color: white; font-size: 15px; line-height: 18.2000007629395px;">lab1 instance: used for the whole shrink process test</span></span><br />
<span style="color: #444444; font-family: Helvetica Neue, Roboto, Arial, Droid Sans, sans-serif;"><span style="background-color: white; font-size: 15px; line-height: 18.2000007629395px;">ebs volume 'source': created from snapshot of root volume from original instance.</span></span><br />
<span style="color: #444444; font-family: Helvetica Neue, Roboto, Arial, Droid Sans, sans-serif;"><span style="background-color: white; font-size: 15px; line-height: 18.2000007629395px;">ebs volume 'dest': manually created new volume with 5G </span></span><br />
<span style="color: #444444; font-family: Helvetica Neue, Roboto, Arial, Droid Sans, sans-serif;"><span style="background-color: white; font-size: 15px; line-height: 18.2000007629395px;"><br /></span></span>
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"><br /></span>
<script type="text/javascript">
google_ad_client = "ca-pub-2326791955539700";
google_ad_slot = "7325280754";
google_ad_width = 336;
google_ad_height = 280;
</script>
<!-- linuxtechres_main_Blog1_336x280_as -->
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br />
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"><b>Steps:</b></span><br />
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"><b>1. create another small instance named lab1</b></span><br />
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; font-weight: bold; line-height: 18.2000007629395px;">Amazon Linux AMI 2015.03 (HVM), SSD Volume Type</span><span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"> - ami-fd9cecc7 , t2.macro, 8G gp ebs volume.</span><br />
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"><br /></span>
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"><b>2. make snapshot backup and create volume from it</b></span><br />
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;">stop the original base instance, detach its 8G volume, make snapshot of it, then create test volume named 'source' from snapshot, so we can work on the source volume instead of original base volume </span><br />
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"><br /></span>
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"><b>3. create another new volume named 'dest' </b>with expected size (5g) and within same AZ as instance lab1</span><br />
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;">Note: the actual file system size of base volume must be less than 5G</span><br />
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"><br /></span>
<span style="background-color: white; color: #444444; font-family: 'Helvetica Neue', Roboto, Arial, 'Droid Sans', sans-serif; font-size: 15px; line-height: 18.2000007629395px;"><b>4. attach volume F and G to small instance lab1 </b>as /dev/xvdf and /dev/xvdg respectively</span><br />
so the Linux OS will see /dev/xvdf, /dev/xvdf1 and /dev/xvdg as follows<br />
<br />
<b>5. while lab1 instance is running, attach both volume source and dest to it as /dev/sdf and /dev/sdg.</b><br />
<br />
[ec2-user@ip-10-0-11-185 ~]$ more /proc/partitions<br />
major minor #blocks name<br />
<br />
202 0 8388608 xvda<br />
202 1 8386543 xvda1<br />
202 80 8388608 xvdf<br />
202 81 8386543 xvdf1<br />
202 96 5242880 xvdg<br />
<div>
<br /></div>
<div>
<b>6. fsck and resize2fs to minimum </b></div>
<div>
<br /></div>
<div>
<div>
[root@ip-10-0-11-185 mnt]# e2fsck -f /dev/xvdf1</div>
<div>
e2fsck 1.42.12 (29-Aug-2014)</div>
<div>
Pass 1: Checking inodes, blocks, and sizes</div>
<div>
Pass 2: Checking directory structure</div>
<div>
Pass 3: Checking directory connectivity</div>
<div>
Pass 4: Checking reference counts</div>
<div>
Pass 5: Checking group summary information</div>
<div>
/: 38013/524288 files (0.2% non-contiguous), 606002/2096635 blocks</div>
</div>
<div>
<br /></div>
[root@ip-10-0-11-185 mnt]# resize2fs -M -p /dev/xvdf1<br />
resize2fs 1.42.12 (29-Aug-2014)<br />
Resizing the filesystem on /dev/xvdf1 to 944604 (4k) blocks.<br />
Begin pass 2 (max = 139004)<br />
Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br />
Begin pass 3 (max = 64)<br />
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br />
Begin pass 4 (max = 4518)<br />
Updating inode references XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br />
The filesystem on /dev/xvdf1 is now 944604 (4k) blocks long.<br />
<br />
<div>
<div>
[root@ip-10-0-11-185 mnt]# resize2fs -M -p /dev/xvdf1</div>
<div>
resize2fs 1.42.12 (29-Aug-2014)</div>
<div>
Resizing the filesystem on /dev/xvdf1 to 940777 (4k) blocks.</div>
<div>
The filesystem on /dev/xvdf1 is now 940777 (4k) blocks long.</div>
<div>
<br /></div>
<div>
[root@ip-10-0-11-185 mnt]# resize2fs -M -p /dev/xvdf1</div>
<div>
resize2fs 1.42.12 (29-Aug-2014)</div>
<div>
Resizing the filesystem on /dev/xvdf1 to 940770 (4k) blocks.</div>
<div>
The filesystem on /dev/xvdf1 is now <b><span style="color: red;">940770</span></b> (4k) blocks long.</div>
</div>
<div>
<br /></div>
<div>
<b>7. calculate the actual file system size after resize2fs -M, round it up a bit to 300</b></div>
<div>
<div>
[root@ip-10-0-11-185 mnt]# echo "scale=5; 940770*4/(1024*16)" | bc</div>
<div>
<span style="color: red;"><b>229.68017</b></span></div>
</div>
<div>
<br /></div>
<div>
<b>8. make partition for /dev/xvdg by fdisk</b></div>
[root@ip-10-0-11-185 mnt]# fdisk /dev/xvdg<br />
Welcome to fdisk (util-linux 2.23.2).<br />
<br />
Changes will remain in memory only, until you decide to write them.<br />
Be careful before using the write command.<br />
<br />
Device does not contain a recognized partition table<br />
Building a new DOS disklabel with disk identifier 0xaa83e894.<br />
<br />
Command (m for help): p<br />
<br />
Disk /dev/xvdg: 5368 MB, 5368709120 bytes, 10485760 sectors<br />
Units = sectors of 1 * 512 = 512 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk label type: dos<br />
Disk identifier: 0xaa83e894<br />
<br />
Device Boot Start End Blocks Id System<br />
<br />
Command (m for help): n<br />
Partition type:<br />
p primary (0 primary, 0 extended, 4 free)<br />
e extended<br />
Select (default p): p<br />
Partition number (1-4, default 1):<br />
First sector (2048-10485759, default 2048):<br />
Using default value 2048<br />
Last sector, +sectors or +size{K,M,G} (2048-10485759, default 10485759):<br />
Using default value 10485759<br />
Partition 1 of type Linux and of size 5 GiB is set<br />
<br />
Command (m for help): wq<br />
The partition table has been altered!<br />
<br />
Calling ioctl() to re-read partition table.<br />
Syncing disks.<br />
[root@ip-10-0-11-185 mnt]# fdisk -l /dev/xvdg<br />
<br />
Disk /dev/xvdg: 5368 MB, 5368709120 bytes, 10485760 sectors<br />
Units = sectors of 1 * 512 = 512 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk label type: dos<br />
Disk identifier: 0xaa83e894<br />
<br />
Device Boot Start End Blocks Id System<br />
/dev/xvdg1 2048 10485759 5241856 83 Linux<br />
<div>
<br /></div>
<div>
<div>
[root@ip-10-0-11-185 mnt]# cat /proc/partitions </div>
<div>
major minor #blocks name</div>
<div>
<br /></div>
<div>
202 0 8388608 xvda</div>
<div>
202 1 8386543 xvda1</div>
<div>
202 80 8388608 xvdf</div>
<div>
202 81 8386543 xvdf1</div>
<div>
202 96 5242880 xvdg</div>
<div>
<b> 202 97 5241856 xvdg1</b></div>
</div>
<div>
<b><br /></b></div>
<div>
<b>9. use dd to copy file system </b></div>
<div>
[root@ip-10-0-11-185 mnt]# dd if=/dev/xvdf1 of=/dev/xvdg1 bs=16M count=<span style="color: red;"><b>230</b></span> </div>
<div>
<div>
230+0 records in</div>
<div>
230+0 records out</div>
<div>
3858759680 bytes (3.9 GB) copied, 113.625 s, 34.0 MB/s</div>
</div>
<div>
<br /></div>
<div>
Note: you can run <b>kill -USR1 <i>pidofdd </i></b>from another terminal to get the dd progress</div>
<div>
<br /></div>
<div>
<b>10. mount /dev/xvdg1 to /mnt/g and bind mount /dev to /mnt/g/dev </b></div>
<div>
<br /></div>
<div>
<div>
[root@ip-10-0-11-185 mnt]# mount /dev/xvdg1 g</div>
<div>
[root@ip-10-0-11-185 mnt]# cd g</div>
<div>
[root@ip-10-0-11-185 g]# ls</div>
<div>
bin boot dev etc home lib lib64 local lost+found media mnt opt proc root run sbin selinux srv sys tmp usr var</div>
</div>
<div>
<br /></div>
<div>
<div>
[root@ip-10-0-11-185 g]# mount --bind /dev /mnt/g/dev/</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b>11. install grub on /dev/xvdg</b></div>
<div>
<br /></div>
<div>
<div>
<b>[root@ip-10-0-11-185 g]# chroot .</b></div>
<div>
<div>
[root@ip-10-0-11-185 /]# ls</div>
<div>
bin boot dev etc home lib lib64 local lost+found media mnt opt proc root run sbin selinux srv sys tmp usr var</div>
<div>
[root@ip-10-0-11-185 /]# grub</div>
<div>
Probing devices to guess BIOS drives. This may take a long time.</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
GNU GRUB version 0.97 (640K lower / 3072K upper memory)</div>
<div>
<br /></div>
<div>
[ Minimal BASH-like line editing is supported. For the first word, TAB</div>
<div>
lists possible command completions. Anywhere else TAB lists the possible</div>
<div>
completions of a device/filename.]</div>
<div>
grub> <b>find /boot/grub/stage1</b></div>
<div>
find /boot/grub/stage1</div>
<div>
(hd0,0)</div>
<div>
(hd1,0)</div>
<div>
(hd2,0)</div>
<div>
grub> <b>root (hd2,0)</b></div>
<div>
root (hd2,0)</div>
<div>
Filesystem type is ext2fs, partition type 0x83</div>
<div>
grub> <b>setup (hd2)</b></div>
<div>
setup (hd2)</div>
<div>
Checking if "/boot/grub/stage1" exists... yes</div>
<div>
Checking if "/boot/grub/stage2" exists... yes</div>
<div>
Checking if "/boot/grub/e2fs_stage1_5" exists... yes</div>
<div>
Running "embed /boot/grub/e2fs_stage1_5 (hd2)"... 29 sectors are embedded.</div>
<div>
succeeded</div>
<div>
Running "install /boot/grub/stage1 (hd2) (hd2)1+29 p (hd2,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded</div>
<div>
Done.</div>
<div>
grub> quit</div>
<div>
quit</div>
</div>
</div>
<div>
<div>
[root@ip-10-0-11-185 /]# exit</div>
<div>
exit</div>
<div>
[root@ip-10-0-11-185 g]# cd /</div>
</div>
<div>
<br /></div>
<div>
<div>
[root@ip-10-0-11-185 /]# umount /mnt/g/dev</div>
<div>
[root@ip-10-0-11-185 /]# umount /mnt/g/</div>
</div>
<div>
<div>
[root@ip-10-0-11-185 /]# df -h</div>
<div>
Filesystem Size Used Avail Use% Mounted on</div>
<div>
/dev/xvda1 7.8G 919M 6.8G 12% /</div>
<div>
devtmpfs 490M 72K 490M 1% /dev</div>
<div>
tmpfs 499M 0 499M 0% /dev/shm</div>
</div>
<div>
<br /></div>
<div>
<div>
<script type="text/javascript">
google_ad_client = "ca-pub-2326791955539700";
google_ad_slot = "7325280754";
google_ad_width = 336;
google_ad_height = 280;
</script>
<!-- linuxtechres_main_Blog1_336x280_as -->
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br />
[root@ip-10-0-11-185 ec2-user]# e2fsck -f /dev/xvdg1</div>
<div>
e2fsck 1.42.12 (29-Aug-2014)</div>
<div>
Pass 1: Checking inodes, blocks, and sizes</div>
<div>
Pass 2: Checking directory structure</div>
<div>
Pass 3: Checking directory connectivity</div>
<div>
Pass 4: Checking reference counts</div>
<div>
Pass 5: Checking group summary information</div>
<div>
/: 38013/237568 files (0.3% non-contiguous), 587515/940770 blocks</div>
</div>
<div>
<br /></div>
<div>
Now stop instance lab1, detach all 3 volumes including os base volume for lab1, attach dest volume to lab1 <span style="color: red;"><b>with root device as /dev/xvda</b></span>. start up instance lab1 again to make sure it can start up successfully.</div>
<div>
<br /></div>
<div>
Now, stop test instance lab1, detach volume named 'dest' , stop original instance and detach its volume, attach volume 'dest' to original instance to start up.</div>
<div>
<br /></div>
<div>
Note: during ec2 instance startup, it will automatically resize file sytem to the maximum.<br />
<br />
Here is the df -h result after startup the 'dest' volume with original instance jephe-base.<br />
<br /></div>
<div>
[root@ip-172-31-13-17 ec2-user]# df -h<br />
Filesystem Size Used Avail Use% Mounted on<br />
/dev/xvda1 4.8G 2.2G 2.7G 46% /<br />
devtmpfs 490M 56K 490M 1% /dev<br />
tmpfs 499M 0 499M 0% /dev/shm<br />
<div>
<br /></div>
<br /></div>
<div>
<br /></div><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-14960835493333760672015-06-20T15:47:00.001+10:002017-02-06T10:10:52.825+11:00How to create AWS NAT and Bastion Hosts in VPC<i>Jephe Wu - <a href="http://linuxtechres.blogspot.com/">http://linuxtechres.blogspot.com</a></i><br />
<div>
<br /></div>
<div>
<b>Objective</b>: Use VPC wizard to create public and private subnets in different AZ and use NAT service for private subnets and access servers on private subnets through bastion host.</div>
<div>
<br /></div>
<div>
<b>Steps:</b></div>
<script type="text/javascript">
google_ad_client = "ca-pub-2326791955539700";
google_ad_slot = "7325280754";
google_ad_width = 336;
google_ad_height = 280;
</script>
<!-- linuxtechres_main_Blog1_336x280_as -->
<script src="//pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
<br />
<div>
<b><br /></b></div>
<div>
<b>1. Use VPC wizard to create required subnets.</b></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV2DF0W8hAn6McU1fQv0GvANNmwMKWKNr3NkuWvkzbOJJo9TtsU6mpL3QUrDPLVoNgA_JUmTc2EiUfpbTrdHFuyRLHZnb5nfNiVFZWdKwpQyBQ8QlViL0NdXZr0xZBqEmUyozhzFJN26qj/s1600/Selection_013.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="196" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV2DF0W8hAn6McU1fQv0GvANNmwMKWKNr3NkuWvkzbOJJo9TtsU6mpL3QUrDPLVoNgA_JUmTc2EiUfpbTrdHFuyRLHZnb5nfNiVFZWdKwpQyBQ8QlViL0NdXZr0xZBqEmUyozhzFJN26qj/s640/Selection_013.png" width="640" /></a></div>
<div>
<br /></div>
<div>
We will create the following VPC network and subnets:</div>
<div>
10.0.0.0/16 with subnets:</div>
<div>
<br /></div>
<div>
10.0.0.0/24 public subnet A in ap-southeast-2a with Elastic IP 1 hosting company web server and NAT box</div>
<div>
10.0.1.0/24 private subnet C in ap-southeast-2a hosting SQL server, access Internet through NAT box in public subnet A</div>
<div>
10.0.10.0/24 public subnet B in ap-southeast-2b with Elastic IP 2 hosting a bostion server which is Windows 2008 R2 base OS, jumphost for accessing SQL server in subnet C</div>
<div>
10.0.11.0/24 private subnet D in ap-southeast-2b hosting other servers or applications, accessing Internet through NAT box in public subnet A</div>
<div>
<br />
<br />
<div>
<b>Above wizard will only create subnet A and C and NAT box. </b></div>
<div>
After that, follow normal procedure to create Internet facing web server instance with elastic IP and automatic assigned or manually specified private IP e.g. 10.0.0.104/24<br />
<br />
Eventually, we need to create 2 more subnet in another AZ manually to make it like this:<br />
<br /></div>
</div>
<div>
<b>Network Diagram:</b></div>
<div>
----Internet --- public subnet A (with 10.0.0.0/24) --- private subnet C ( with 10.0.1.0/24) [ ap-southeast-2a ]</div>
<div>
----Internet ----pubic subnet B (with 10.0.10.0/24) ---- private subnet D (with 10.0.11.0/24) [ ap-southeast-2b ]</div>
<div>
</div>
<div>
<b><br /></b></div>
<div>
<b>2. Configure NAT box</b></div>
<div>
After finishing wizard, the NAT is up and running, you still need to configure the following to make it as masquerading NAT box for your entire VPC network 10.0.0.0/16, by default, it only allow the outbound Internet traffic.</div>
<div>
<br /></div>
<div>
<ul>
<li>check security group configuration of NAT box instance, by default, it doesn't allow the entire VPC 10.0.0.0/16 for incoming traffic which will block Internet access for all private subnets.</li>
</ul>
<div>
Also, check other settings such as disable src/destination check, the routing table for private subnet hosts routing table (must be pointing to NAT box ENI).</div>
</div>
<div>
<br /></div>
<div>
You can also ssh into NAT box from Internet to check iptables rules and ip forwarding:</div>
<div>
<br /></div>
<div>
<div>
[root@ip-10-0-0-104 ec2-user]# iptables -L -v -n -t nat | grep 10.0</div>
<div>
531 31715 MASQUERADE all -- * eth0 10.0.0.0/16 0.0.0.0/0 </div>
</div>
<div>
<br /></div>
<div>
<div>
[root@ip-10-0-0-104 ec2-user]# more /proc/sys/net/ipv4/ip_forward</div>
<div>
1</div>
</div>
<div>
<br /></div>
<div>
<div>
[root@ip-10-0-0-104 ec2-user]# grep nameserver /etc/resolv.conf </div>
<div>
nameserver 10.0.0.2<br />
<br />
2.1 <span style="background-color: white; color: red; font-family: ArialMT, Arial; font-size: 14px; font-weight: 700;">use NAT instance as port forwarding for RDS instance (e.g. to RDS Postgres)</span><br />
<div style="background-color: white; box-sizing: border-box; color: #444444; font-family: ArialMT, Arial; font-size: 14px; margin-bottom: 10px;">
Firstly make sure from Nat box e.g 10.0.20.254, you can telnet to e.g. 10.0.23.114 port 5432, then run commands below on NAT box</div>
<div style="background-color: white; box-sizing: border-box; color: #444444; font-family: ArialMT, Arial; font-size: 14px; margin-bottom: 10px;">
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 5432 -j DNAT --to 10.0.23.114:5432<br style="box-sizing: border-box;" />iptables -A FORWARD -p tcp -d 10.0.23.114 --dport 5432 -j ACCEPT (might be optional)</div>
<div style="background-color: white; box-sizing: border-box; color: #444444; font-family: ArialMT, Arial; font-size: 14px; margin-bottom: 10px;">
iptables -A POSTROUTING -t nat -p tcp -s 0.0.0.0/0 -d 0.0.0.0/0 --dport 5432 -j SNAT --to 10.0.20.254</div>
<div style="background-color: white; box-sizing: border-box; color: #444444; font-family: ArialMT, Arial; font-size: 14px; margin-bottom: 10px;">
Note: 10.0.23.114 is the RDS internal ip and 10.0.20.254 is NAT internal ip </div>
<div style="background-color: white; box-sizing: border-box; color: #444444; font-family: ArialMT, Arial; font-size: 14px; margin-bottom: 10px;">
Now add the external application ip into the NAT box security group to allow connection.</div>
</div>
</div>
<div>
<br /></div>
<div>
<b>3. Configure Bostion Windows Server in public subnet C</b></div>
<div>
<br /></div>
<div>
Create another 2 more subnets C and D in another AZ ap-southeast-2b, replace public subnet C routing table from ENI of NAT box to igw so that we can access it from Internet as jumphost.</div>
<div>
<br /></div>
<script type="text/javascript">
google_ad_client = "ca-pub-2326791955539700";
google_ad_slot = "7325280754";
google_ad_width = 336;
google_ad_height = 280;
</script>
<!-- linuxtechres_main_Blog1_336x280_as -->
<script src="//pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
<br />
<div>
<b>4. Create SQL server database host in private subnet B</b></div>
<div>
configure security group setting to only allow the internal IP of Bostion Windows server or the whole private subnet 10.0.0.0/16.</div>
<div>
<br /></div>
<div>
<b>Notes for security group:</b></div>
<div>
You can also specify another security group groupid in the customer IP part to quote the same security group settings. </div>
<div>
<br /></div>
<div>
<b><span style="color: red;">For either Linux or Windows server, if you remove your current connection source IP from security group while you are on the servers, the existing connection will be still okay, but if you exit ssh/rdp, the new connection won't be able to make. </span></b></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b><br /></b></div>
<div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-69142838762445841852015-05-30T23:29:00.001+10:002015-05-30T23:32:31.058+10:00Linux OpenSSH Advanced Video Tutorial<i>Jephe Wu - <a href="http://linuxtechres.blogspot.com/">http://linuxtechres.blogspot.com</a></i><br />
<br />
Objective: Value-add advanced Linux OpenSSH video tutorial made free to everyone.<br />
<br />
Video course 1: <a href="https://drive.google.com/file/d/0B13HKLexkq5yVDcyZTZFLWw2NzA/view?usp=sharing" target="_blank">OpenSSH chroot sftp part I</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yMkhKcnJjd1NhcFU/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br />
Video course 2: <a href="https://drive.google.com/file/d/0B13HKLexkq5yb2RtQkhpRGJSZWM/view?usp=sharing" target="_blank">OpenSSH chroot sftp part II</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yZm1TNmpwb25TNGs/view?usp=sharing" target="_blank">PDf tutorial</a><br />
<br />
Video course 3: <a href="https://drive.google.com/file/d/0B13HKLexkq5yakwtVTRqZzBJb1U/view?usp=sharing" target="_blank">OpenSSH chroot sftp Part III</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br />
Video course 4: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">SSH passwordless login</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br />
Video course 5: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">SSH transparent proxy</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br />
<script type="text/javascript">
google_ad_client = "ca-pub-2326791955539700";
google_ad_slot = "7325280754";
google_ad_width = 336;
google_ad_height = 280;
</script>
<!-- linuxtechres_main_Blog1_336x280_as -->
<script src="//pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
<br />
Video course 6: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">SSH local port forwarding</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br />
Video course 7: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">SSH remote port forwarding</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br />
Video course 8: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">SSH gateway ports local</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br />
Video course 9: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">SSH gateway ports remote</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br />
Video course 10: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">SSH socks proxy</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br />
Video course 11: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">SSH http proxy</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial </a><br />
<br />
<script type="text/javascript">
google_ad_client = "ca-pub-2326791955539700";
google_ad_slot = "7325280754";
google_ad_width = 336;
google_ad_height = 280;
</script>
<!-- linuxtechres_main_Blog1_336x280_as -->
<script src="//pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
<br />
Video course 12: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">SSH agent</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial </a><br />
<br />
Video course 13: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">OpenSSH screen</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br />
Video course 14: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">OpenSSH keepalive</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br />
Video course 15: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">OpenSSH troubleshooting I</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br />
Video course 16: <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">OpenSSH troubleshooting II</a> with <a href="https://drive.google.com/file/d/0B13HKLexkq5yd3VMVThQVEVfMW8/view?usp=sharing" target="_blank">PDF tutorial</a><br />
<br /><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-88276490877461797872015-05-13T23:18:00.001+10:002015-05-13T23:18:30.889+10:00How to Install Oracle VM Server 3.2 and 3.3 from USB Key<i>Jephe Wu - <a href="http://linuxtechres.blogspot.com/">http://linuxtechres.blogspot.com</a></i><br />
<br />
<br />
<b>Objective</b>: to install Oracle VM server 3.2.8 or 3.3.2 from USB key for those server without DVD/CDROM drive<br />
<br />
<b>Steps on Linux Mint 17 </b><br />
<div style="background-color: white; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.5625; margin: 30px 0px 0px; padding: 0px;">
Preparing USB key</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
Make partition by fdisk /dev/sdb1, make it as W95 FAT32 (b) type</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
fdisk /dev/sdb</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
L , b , wq</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
format it by running <strong>mkfs -t vfat /dev/sdb1</strong></div>
<h3 id="HowtoinstallOVMserver3.2.8fromUSBkey-useunetbootin" style="background-color: white; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.5625; margin: 30px 0px 0px; padding: 0px;">
use unetbootin </h3>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
install unetbootin software from Mint 17 software manager. </div>
<h3 id="HowtoinstallOVMserver3.2.8fromUSBkey-copyISOfileinto/dev/sdb1" style="background-color: white; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.5625; margin: 30px 0px 0px; padding: 0px;">
copy ISO file into /dev/sdb1</h3>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
mount /dev/sdb1 under Linux mint , copy OVS3.2.8 iso file to it directly, without creating any folder.</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-s2rwCWVcLWM/VVNOYtZbXZI/AAAAAAAAD5Q/7PpTQJkSAeQ/s1600/unetbootin-1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="233" src="http://3.bp.blogspot.com/-s2rwCWVcLWM/VVNOYtZbXZI/AAAAAAAAD5Q/7PpTQJkSAeQ/s320/unetbootin-1.jpg" width="320" /></a></div>
<h3 id="HowtoinstallOVMserver3.2.8fromUSBkey-bootfromUSBtoinstallOVMS3.2.8" style="background-color: white; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.5625; margin: 30px 0px 0px; padding: 0px;">
boot from USB to install OVMS 3.2.8</h3>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
choose installation method 'Hard drive', selection partiton /dev/sdb1 which contain installation image </div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
at partition type screen, deselect sdb</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
at 'boot loader configuration' screen, choose 'change drive order' to use sda, then use sda to install MBR</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br /></div>
<h1 id="HowtoinstallOVMserver3.2.8fromUSBkey-UnderWindows" style="background-color: white; border-bottom-color: rgb(46, 61, 84); font-family: Arial, sans-serif; font-size: 24px; font-weight: normal; line-height: 1.25; margin: 30px 0px 0px; padding: 0px;">
Steps on Windows</h1>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
Install unetbootin</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
format USB key as FAT format</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
use unetbootin to write iso file to it as above</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
copy iso file into USB key directly</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br /></div>
<h1 id="HowtoinstallOVMserver3.2.8fromUSBkey-FAQ" style="background-color: white; border-bottom-color: rgb(46, 61, 84); font-family: Arial, sans-serif; font-weight: normal; line-height: 1.25; margin: 30px 0px 0px; padding: 0px;">
<span style="font-size: small;">FAQ</span></h1>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
format it as ext2 or ext3 and use unetbootin to write iso file doesn't boot if you didn't install extlinux package from Mint software manager.</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<b>Notes</b></div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
The size of OVM 3.3 iso file size is now doubled compared to OVMS 3.2.9. 1GB USB key is now not able to fit.</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br /></div>
<br />
<br /><div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-43244701551888853222015-05-13T23:04:00.000+10:002015-05-13T23:07:51.993+10:00How to decide ethX layout after Oracle VM Server 3.2 Installation<i>Jephe Wu - <a href="http://linuxtechres.blogspot.com/">http://linuxtechres.blogspot.com</a></i><br />
<br />
<b>Objective</b>: to decide ethX layout remotely after Oracle VM Server 3.2 installation.<br />
<b>Environment</b>: Oracle VM server 3.2.9<br />
<br />
If you are in front of the physical server, you can decide ethX layout easily by running 'ethtool -p ethX' etc to blink each NIC light. e.g. <span style="color: red;"><b>ethtool -p eth0</b></span><br />
<br />
<b>How Oracle VM server to decide which NIC for which ethX</b><br />
based on pci bus address from low to high to assign eth0, eth1 etc<br />
<br />
<b>Theory behind</b><br />
<br />
<ul>
<li>Os will assign ethX sequence based on NIC PCI bus address sequence</li>
<li>4 NICs onboard are actually 2 dualports cards</li>
<li>For additional PCI card, the ports near the bottom pins are getting high pci bus number, from ethX is assigned from top to bottom.</li>
<li>Sometimes, pci bus address has primary-secondary relationships, </li>
</ul>
<br />
<b><br /></b>
<b>Check steps</b><br />
<b><br /></b>
<i>Get server model, pci NIC slot direction, PCI numbering sequence physically etc first</i><br />
<h5 id="EthXAssignmentLayoutafterOVMSInstallation-/sys/class/net" style="background-color: white; color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
<span style="color: black;">/sys/class/net </span></h5>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
[root@cpnrglobovms13 device]# more /sys/class/net/eth0/device/label<br />
Intel 82576 Ethernet Controller.</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<span style="color: black;">to decide pci bus address and ethX alighment</span></div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<span style="color: black;"><b>ll /sys/class/net</b></span></div>
<h5 id="EthXAssignmentLayoutafterOVMSInstallation-ListethXbusinformation-ethtool-iethX" style="background-color: white; color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
<span style="color: black;">List ethX bus information - ethtool -i ethX</span></h5>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
[root@ovms01 ~]# for i in `ifconfig -a | grep ^eth | awk '{print $1}' | xargs`; do echo -n "$i " && ethtool -i $i| grep -i bus ; done<br />
eth0 bus-info: 0000:01:00.0<br />
eth1 bus-info: 0000:01:00.1<br />
eth2 bus-info: 0000:02:00.0<br />
eth3 bus-info: 0000:02:00.1<br />
eth4 bus-info: 0000:04:00.0<br />
eth5 bus-info: 0000:04:00.1<br />
eth6 bus-info: 0000:07:00.0<br />
eth7 bus-info: 0000:07:00.1<br />
eth8 bus-info: 0000:08:00.0<br />
eth9 bus-info: 0000:08:00.1</div>
<h5 id="EthXAssignmentLayoutafterOVMSInstallation-lspcitogetethernetNICs-lspci|grep-ieth" style="background-color: white; color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
lspci to get ethernet NICs - lspci | grep -i eth</h5>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br />
[root@ovms01 ~]# lspci | grep -i eth<br />
01:00.0 Ethernet controller: Broadcom Corporation Device 165f<br />
01:00.1 Ethernet controller: Broadcom Corporation Device 165f<br />
02:00.0 Ethernet controller: Broadcom Corporation Device 165f<br />
02:00.1 Ethernet controller: Broadcom Corporation Device 165f<br />
04:00.0 Ethernet controller: Intel Corporation Device 154d (rev 01)<br />
04:00.1 Ethernet controller: Intel Corporation Device 154d (rev 01)<br />
07:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (Copper) (rev 06)<br />
07:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (Copper) (rev 06)<br />
08:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (Copper) (rev 06)<br />
08:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (Copper) (rev 06)</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br /></div>
<h5 id="EthXAssignmentLayoutafterOVMSInstallation-lspcibridgetosecondary-lspci-vvv|grepprimary" style="background-color: white; color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
lspci bridge to secondary - lspci -vvv | grep primary</h5>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<strong>05:00 -> 06:00 -> 07:00 and 08:00</strong></div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
[root@hmspglobovms01 device]# lspci -vvv | grep primary<br />
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0<br />
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0<br />
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0<br />
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0<br />
Bus: primary=00, secondary=05, subordinate=08, sec-latency=0<br />
Bus: primary=00, secondary=09, subordinate=09, sec-latency=0<br />
Bus: primary=00, secondary=0a, subordinate=0a, sec-latency=0<br />
Bus: primary=00, secondary=0b, subordinate=0f, sec-latency=0<br />
Bus: primary=00, secondary=10, subordinate=10, sec-latency=32<br />
<strong>Bus: primary=05, secondary=06, subordinate=08, sec-latency=0</strong><br />
<strong>Bus: primary=06, secondary=07, subordinate=07, sec-latency=0</strong><br />
<strong>Bus: primary=06, secondary=08, subordinate=08, sec-latency=0</strong><br />
Bus: primary=0b, secondary=0c, subordinate=0f, sec-latency=0<br />
Bus: primary=0c, secondary=0d, subordinate=0e, sec-latency=0<br />
Bus: primary=0c, secondary=0f, subordinate=0f, sec-latency=0<br />
Bus: primary=0d, secondary=0e, subordinate=0e, sec-latency=0</div>
<h5 id="EthXAssignmentLayoutafterOVMSInstallation-dmidecodetolistPCIslotinformation" style="background-color: white; color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
dmidecode to list PCI slot information </h5>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
[root@ovms01 ~]# dmidecode -t 9<br />
# dmidecode 2.10<br />
SMBIOS 2.7 present.<br />
# SMBIOS implementations newer than version 2.6 are not<br />
# fully supported by this version of dmidecode.</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br /></div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
Handle 0x0900, DMI type 9, 17 bytes<br />
System Slot Information<br />
Designation: PCI1<br />
Type: x8 <OUT OF SPEC><br />
Current Usage: In Use<br />
Length: Long<br />
Characteristics:<br />
3.3 V is provided<br />
PME signal is supported<br />
Bus Address: 0000:04:00.0</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br /></div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
Handle 0x0901, DMI type 9, 17 bytes<br />
System Slot Information<br />
Designation: PCI2<br />
Type: x16 <OUT OF SPEC><br />
Current Usage: In Use<br />
Length: Long<br />
Characteristics:<br />
3.3 V is provided<br />
PME signal is supported<br />
Bus Address: 0000:05:00.0</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br /></div>
<h5 id="EthXAssignmentLayoutafterOVMSInstallation-dmidecodetogetonboarddeviceinformation" style="background-color: white; color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
dmidecode to get onboard device information</h5>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
[root@ovms01 ~]# dmidecode -t 41 or dmidecode -t slot<br />
# dmidecode 2.10<br />
SMBIOS 2.7 present.<br />
# SMBIOS implementations newer than version 2.6 are not<br />
# fully supported by this version of dmidecode.</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
Handle 0x2900, DMI type 41, 11 bytes<br />
Onboard Device<br />
Reference Designation: Integrated NIC 1<br />
Type: Ethernet<br />
Status: Enabled<br />
Type Instance: 1<br />
Bus Address: 0000:01:00.0</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
Handle 0x2901, DMI type 41, 11 bytes<br />
Onboard Device<br />
Reference Designation: Integrated NIC 2<br />
Type: Ethernet<br />
Status: Enabled<br />
Type Instance: 2<br />
Bus Address: 0000:01:00.1</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
Handle 0x2902, DMI type 41, 11 bytes<br />
Onboard Device<br />
Reference Designation: Integrated NIC 3<br />
Type: Ethernet<br />
Status: Enabled<br />
Type Instance: 3<br />
Bus Address: 0000:02:00.0</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
Handle 0x2903, DMI type 41, 11 bytes<br />
Onboard Device<br />
Reference Designation: Integrated NIC 4<br />
Type: Ethernet<br />
Status: Enabled<br />
Type Instance: 4<br />
Bus Address: 0000:02:00.1</div>
<br />
<b>lspci to get ethernet NIC information</b><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">[root@ovms01 ~]# lspci | grep -i ethernet</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;"><br /></span>
<b>dmidecode to get PCI card information</b><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">[root@ovms01 ~]# dmidecode -t slot | grep -e Designation -e Bus</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;"><br /></span>
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;"><b>use ethtool to decide bus info</b></span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">[root@ovms10 ~]# for i in `ifconfig -a | grep ^eth | awk '{print $1}' | xargs`; do echo -n "$i " && ethtool -i $i| grep -i bus ; done </span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">eth0 bus-info: 0000:01:00.0</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">eth1 bus-info: 0000:01:00.1</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">eth2 bus-info: 0000:04:00.0</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">eth3 bus-info: 0000:04:00.1</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">eth4 bus-info: 0000:42:00.0</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">eth5 bus-info: 0000:42:00.1</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">eth6_rename bus-info: 0000:07:00.0</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">eth7_rename bus-info: 0000:07:00.1</span><br />
<h5 id="EthXAssignmentLayoutafterOVMSInstallation-dmesgtogetPCIslotcardsMACaddress" style="background-color: white; color: #3d3d3d; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 20px 0px 0px; padding: 0px;">
dmesg to get PCI slot cards MAC address</h5>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
[root@ovms01 ~]# dmesg | grep 'PCI Express'</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
pciehp: PCI Express Hot Plug Controller Driver version: 0.4<br />
ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version 3.4.8-k<br />
ixgbe 0000:08:00.0: (PCI Express:5.0GT/s:Width x8) 90:<a class="external-link" href="http://e2ba:19:a7:84/" rel="nofollow" style="color: #326ca6; text-decoration: none;">e2:ba:19:a6:8</a>0<br />
ixgbe 0000:08:00.1: (PCI Express:5.0GT/s:Width x8) 90:<a class="external-link" href="http://e2ba:19:a7:85/" rel="nofollow" style="color: #326ca6; text-decoration: none;">e2:ba:19:a6:8</a>1<br />
<span style="color: red;">ixgbe 0000:0e:00.0: (PCI Express:5.0GT/s:Width x8) 90:<a class="external-link" href="http://e2ba:19:a5:bc/" rel="nofollow" style="color: #326ca6; text-decoration: none;"><span style="color: red;">e2:ba:19:a5:ac</span></a></span><br />
<span style="color: red;">ixgbe 0000:0e:00.1: (PCI Express:5.0GT/s:Width x8) 90:<a class="external-link" href="http://e2ba:19:a5:bd/" rel="nofollow" style="color: #326ca6; text-decoration: none;"><span style="color: red;">e2:ba:19:a5:ad</span></a></span><br />
<span style="color: red;">ixgbe 0000:0f:00.0: (PCI Express:5.0GT/s:Width x8) 90:<a class="external-link" href="http://e2ba:19:58:10/" rel="nofollow" style="color: #326ca6; text-decoration: none;"><span style="color: red;">e2:ba:19:58:20</span></a></span><br />
<span style="color: red;">ixgbe 0000:0f:00.1: (PCI Express:5.0GT/s:Width x8) 90:<a class="external-link" href="http://e2ba:19:58:11/" rel="nofollow" style="color: #326ca6; text-decoration: none;"><span style="color: red;">e2:ba:19:58:21</span></a></span><br />
bnx2 0000:01:00.0: eth0: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem f2000000, IRQ 36, node addr <a class="external-link" href="http://d4ae:52:e6:83:b0/" rel="nofollow" style="color: #326ca6; text-decoration: none;">d4:ae:52:e6:83:a0</a><br />
bnx2 0000:01:00.1: eth1: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem f4000000, IRQ 48, node addr <a class="external-link" href="http://d4ae:52:e6:83:b2/" rel="nofollow" style="color: #326ca6; text-decoration: none;">d4:ae:52:e6:83:a2</a><br />
bnx2 0000:02:00.0: eth2: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem f6000000, IRQ 37, node addr <a class="external-link" href="http://d4ae:52:e6:83:b4/" rel="nofollow" style="color: #326ca6; text-decoration: none;">d4:ae:52:e6:83:a4</a><br />
bnx2 0000:02:00.1: eth3: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem f8000000, IRQ 49, node addr <a class="external-link" href="http://d4ae:52:e6:83:b6/" rel="nofollow" style="color: #326ca6; text-decoration: none;">d4:ae:52:e6:83:a6</a></div>
<br />
<br />
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<b>to get each PCI bus address MAC address:</b></div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
[root@ovms1 ~]# dmesg | grep 02:00.0 | grep 'PCI Express'</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<strong>Kickstart to swap eth2/eth3 and eth6/eth7 for better reading if necessary</strong></div>
<pre style="background-color: white; color: #333333; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">echo "fixing ethX device sequence"
ETH2=`dmesg | grep Express | grep "30:00.0" | awk '{print $NF}'`
ETH3=`dmesg | grep Express | grep "30:00.1" | awk '{print $NF}'`
ETH6=`dmesg | grep Express | grep "88:00.0" | awk '{print $NF}'`
ETH7=`dmesg | grep Express | grep "88:00.1" | awk '{print $NF}'`
cd /etc/sysconfig/network-scripts
sed -i -e "s/^HWADDR.*/HWADDR=$ETH6/g" ifcfg-eth2
sed -i -e "s/^HWADDR.*/HWADDR=$ETH7/g" ifcfg-eth3
sed -i -e "s/^HWADDR.*/HWADDR=$ETH2/g" ifcfg-eth6
sed -i -e "s/^HWADDR.*/HWADDR=$ETH3/g" ifcfg-eth7</pre>
<pre style="background-color: white; color: #333333; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;"></pre>
<pre style="background-color: white; color: #333333; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;"><b>Draw ethX layout at last step</b></pre>
<pre style="background-color: white; color: #333333; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">example below:</pre>
<pre style="background-color: white; color: #333333; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;"><div class="table-wrap" style="font-family: Arial, sans-serif; margin: 10px 0px 0px; overflow-x: auto; padding: 0px; white-space: normal;">
<table class="confluenceTable tablesorter" style="border-collapse: collapse; color: #333333; margin: 0px; overflow-x: auto;"><thead>
<tr class="sortableHeader"><th class="confluenceTh sortableHeader tablesorter-headerSortDown" data-column="0" style="background: url(data:image/png; border: 1px solid rgb(221, 221, 221); color: black; cursor: pointer; padding: 7px 15px 7px 10px; vertical-align: top;"><div class="tablesorter-header-inner" style="margin: 0px; padding: 0px;">
<div style="background-color: transparent; color: #333333; margin-top: 0.2px; padding: 0px;">
PCI1</div>
<div style="background-color: transparent; color: #333333; margin-top: 10px; padding: 0px;">
RAID Controller</div>
</div>
</th><th class="confluenceTh sortableHeader" data-column="1" style="background: 100% 50% no-repeat rgb(240, 240, 240); border: 1px solid rgb(221, 221, 221); color: black; cursor: pointer; padding: 7px 15px 7px 10px; vertical-align: top;"><div class="tablesorter-header-inner" style="margin: 0px; padding: 0px;">
<div style="background-color: transparent; color: #333333; margin-top: 0.2px; padding: 0px;">
PCI2</div>
<div style="background-color: transparent; color: #333333; margin-top: 10px; padding: 0px;">
00:42.00.1(eth5)(pin) 00:42.00.0(eth4)</div>
</div>
</th><th class="confluenceTh sortableHeader" data-column="2" style="background: 100% 50% no-repeat rgb(240, 240, 240); border: 1px solid rgb(221, 221, 221); color: black; cursor: pointer; padding: 7px 15px 7px 10px; vertical-align: top;"><div class="tablesorter-header-inner" style="margin: 0px; padding: 0px;">
<div style="background-color: transparent; color: #333333; margin-top: 0.2px; padding: 0px;">
PCI3</div>
<div style="background-color: transparent; color: #333333; margin-top: 10px; padding: 0px;">
00:04:00.0(eth2) 00:04:00.1(eth3)(pin)</div>
</div>
</th><th class="confluenceTh sortableHeader" data-column="3" style="background: 100% 50% no-repeat rgb(240, 240, 240); border: 1px solid rgb(221, 221, 221); color: black; cursor: pointer; padding: 7px 15px 7px 10px; vertical-align: top;"><div class="tablesorter-header-inner" style="margin: 0px; padding: 0px;">
</div>
</th></tr>
</thead><tbody class="">
<tr><td class="confluenceTd" style="border: 1px solid rgb(221, 221, 221); padding: 7px 10px; vertical-align: top;"><div style="background-color: transparent; padding: 0px;">
eth0</div>
<div style="background-color: transparent; margin-top: 10px; padding: 0px;">
00:01:00.0</div>
</td><td class="confluenceTd" style="border: 1px solid rgb(221, 221, 221); padding: 7px 10px; vertical-align: top;"><div style="background-color: transparent; padding: 0px;">
eth1</div>
<div style="background-color: transparent; margin-top: 10px; padding: 0px;">
00:01:00.1</div>
</td><td class="confluenceTd" style="border: 1px solid rgb(221, 221, 221); padding: 7px 10px; vertical-align: top;"><div style="background-color: transparent; padding: 0px;">
eth6 (X)</div>
<div style="background-color: transparent; margin-top: 10px; padding: 0px;">
00:07:00.0</div>
</td><td class="confluenceTd" style="border: 1px solid rgb(221, 221, 221); padding: 7px 10px; vertical-align: top;"><div style="background-color: transparent; padding: 0px;">
eth7 (X)</div>
<div style="background-color: transparent; margin-top: 10px; padding: 0px;">
00:07:00.1</div>
</td></tr>
</tbody></table>
</div>
<div style="font-family: Arial, sans-serif; margin-top: 10px; padding: 0px; white-space: normal;">
</div>
</pre>
<pre style="background-color: white; color: #333333; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;"><b>Ultimate way to associate ethX with PCI bus address</b></pre>
<pre style="background-color: white; color: #333333; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;"><table border="0" cellpadding="0" cellspacing="0" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 1479px;"><tbody style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px dashed !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 0px 0px 15px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 1464px;"><div class="container" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 15px 0px 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 0px 15px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap !important; width: auto !important;" title="Hint: double-click to select code">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[root</code><code class="java color1" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(128, 128, 128) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@ovms10</code> <code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">rules.d]# more </code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">99</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">-ethernet.rules</code></div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">KERNEL==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth*"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, ID==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"0000:01:00.0"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, name=</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth0"</code></div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">KERNEL==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth*"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, ID==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"0000:01:00.1"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, name=</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth1"</code></div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">KERNEL==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth*"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, ID==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"0000:04:00.0"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, name=</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth2"</code></div>
<div class="line number5 index4 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">KERNEL==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth*"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, ID==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"0000:04:00.1"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, name=</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth3"</code></div>
<div class="line number6 index5 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">KERNEL==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth*"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, ID==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"0000:42:00.0"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, name=</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth4"</code></div>
<div class="line number7 index6 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">KERNEL==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth*"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, ID==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"0000:42:00.1"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, name=</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth5"</code></div>
<div class="line number8 index7 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">KERNEL==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth*"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, ID==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"0000:07:00.0"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, name=</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth6"</code></div>
<div class="line number9 index8 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">KERNEL==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth*"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, ID==</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"0000:07:00.1"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, name=</code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"eth7"</code></div>
</div>
</td></tr>
</tbody></table>
</pre>
<pre style="background-color: white; color: #333333; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
</pre>
<pre style="background-color: white; color: #333333; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;"><div class="line number11 index10 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[root</code><code class="java color1" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(128, 128, 128) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@ovms10</code> <code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">rules.d]# ethtool -i eth0</code></div>
<div class="line number12 index11 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">driver: ixgbe</code></div>
<div class="line number13 index12 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">version: </code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">3.4</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">8</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">-k</code></div>
<div class="line number14 index13 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">firmware-version: </code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">4.2</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">-</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">8</code></div>
<div class="line number15 index14 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">bus-info: </code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">0000</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">:</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">01</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">:</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">00.0</code></div>
</pre>
<div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-14792998094924621982015-05-13T22:02:00.002+10:002015-05-13T22:02:59.155+10:00Calculate Oracle Database Size<div class="line number1 index0 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><i>Jephe Wu - <a href="http://linuxtechres.blogspot.com/">http://linuxtechres.blogspot.com</a></i></code></div>
<div class="line number1 index0 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><br /></code></div>
<div class="line number1 index0 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><b>Objective: </b> to calculate all kinds of database sizes.</code></div>
<div class="line number1 index0 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><b>Items:</b></code></div>
<div class="line number1 index0 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><br /></code></div>
<div class="line number1 index0 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><b>Size of datafiles in MB</b></code></div>
<div class="line number2 index1 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">select sum(bytes)/(</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">*</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">) from dba_data_files;</code></div>
<div class="line number3 index2 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
</div>
<div class="line number4 index3 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
</div>
<div class="line number5 index4 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><b>Size of tempfiles in MB</b></code></div>
<div class="line number6 index5 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">select sum(bytes)/(</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">*</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">) from dba_temp_files;</code></div>
<div class="line number7 index6 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
</div>
<div class="line number8 index7 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
</div>
<div class="line number9 index8 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><b>Size of redo logs in MB </b></code></div>
<div class="line number10 index9 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">Not accounting </code><code class="java keyword" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(51, 102, 153) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">for</code> <code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">mirrored redolog files:</code></div>
<div class="line number11 index10 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">select sum(bytes)/(</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">*</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">) from v$log;</code></div>
<div class="line number12 index11 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
</div>
<div class="line number13 index12 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
</div>
<div class="line number14 index13 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><b>To get the used-up space of your datafiles:</b></code></div>
<div class="line number15 index14 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">This will give you the total used-up space inside the database in MB.</code></div>
<div class="line number16 index15 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">select sum(bytes)/(</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">*</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">) from dba_segments;</code></div>
<div class="line number17 index16 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
</div>
<div class="line number18 index17 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
</div>
<div class="line number19 index18 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><b>Total Size of the database:</b></code></div>
<div class="line number20 index19 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">Also accounting </code><code class="java keyword" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(51, 102, 153) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: bold !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">for</code> <code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">controlfiles and mirrored redolog files.</code></div>
<div class="line number21 index20 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">select a.data_size+b.temp_size+c.redo_size+d.cont_size </code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"total_size"</code></div>
<div class="line number22 index21 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">from ( select sum(bytes) data_size</code></div>
<div class="line number23 index22 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> from dba_data_files ) a,</code></div>
<div class="line number24 index23 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> ( select nvl(sum(bytes),</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">0</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">) temp_size</code></div>
<div class="line number25 index24 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> from dba_temp_files ) b,</code></div>
<div class="line number26 index25 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> ( select sum(bytes) redo_size</code></div>
<div class="line number27 index26 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> from sys.v_$logfile lf, sys.v_$log l</code></div>
<div class="line number28 index27 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> where lf.group# = l.group#) c,</code></div>
<div class="line number29 index28 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> ( select sum(block_size*file_size_blks) cont_size</code></div>
<div class="line number30 index29 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> from v$controlfile ) d;</code></div>
<div class="line number31 index30 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
</div>
<div class="line number32 index31 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code></div>
<div class="line number33 index32 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code></div>
<div class="line number34 index33 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><b>Total Size and free size:</b></code></div>
<div class="line number35 index34 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">select round(sum(used.bytes) / </code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code> <code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">/ </code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code> <code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">) || </code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">' MB'</code> <code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"Database Size"</code></div>
<div class="line number36 index35 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, round(free.p / </code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code> <code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">/ </code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">) || </code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">' MB'</code> <code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"Free space"</code></div>
<div class="line number37 index36 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">from (select bytes from v$datafile</code></div>
<div class="line number38 index37 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">union all</code></div>
<div class="line number39 index38 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">select bytes from v$tempfile</code></div>
<div class="line number40 index39 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">union all</code></div>
<div class="line number41 index40 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">select bytes from v$log) used</code></div>
<div class="line number42 index41 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, (select sum(bytes) as p from dba_free_space) free</code></div>
<div class="line number43 index42 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">group by free.p;</code></div>
<div class="line number44 index43 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code></div>
<div class="line number45 index44 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><b>Individual tablespace size:</b></code></div>
<div class="line number46 index45 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">select tablespace_name as </code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"Tablespace Name"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">,sum(bytes)/(</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">*</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">) as </code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"Size"</code></div>
<div class="line number47 index46 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">from dba_data_files</code></div>
<div class="line number48 index47 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">group by tablespace_name</code></div>
<div class="line number49 index48 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">ORDER BY </code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">;</code></div>
<div class="line number50 index49 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code></div>
<div class="line number51 index50 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><b>Individual tablespace used size:</b></code></div>
<div class="line number52 index51 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">select tablespace_name as </code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"Tablespace Name"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">,sum(bytes)/(</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">*</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">) as </code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"Used Size"</code></div>
<div class="line number53 index52 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">from dba_segments</code></div>
<div class="line number54 index53 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">GROUP BY TABLESPACE_NAME</code></div>
<div class="line number55 index54 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">order by </code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">;</code></div>
<div class="line number56 index55 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code></div>
<div class="line number57 index56 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><b>Individual tablespace free space:</b></code></div>
<div class="line number58 index57 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">select tablespace_name as </code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"Tablespace Name"</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, sum(bytes)/(</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">*</code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1024</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">) as </code><code class="java string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 51, 102) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"Free Space"</code></div>
<div class="line number59 index58 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">from dba_free_space</code></div>
<div class="line number60 index59 alt1" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">group by tablespace_name</code></div>
<div class="line number61 index60 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">order by </code><code class="java value" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 153, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">1</code><code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">;</code></div>
<div class="line number61 index60 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><br /></code></div>
<div class="line number61 index60 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><b>References:</b></code></div>
<div class="line number61 index60 alt2" style="background: none rgb(255, 255, 255) !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 20px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em 0px 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: nowrap !important; width: auto !important;">
<code class="java plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 0, 0) !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div style="color: #333333; font-family: Arial, sans-serif; margin-top: 10px; padding: 0px; white-space: normal;">
<span style="color: black;">How to Calculate the Size of the Database (Doc ID 1360446.1)</span></div>
<div style="color: #333333; font-family: Arial, sans-serif; margin-top: 10px; padding: 0px; white-space: normal;">
<span style="color: black;"><a class="external-link" href="https://dbpost.wordpress.com/tag/dba_data_files/" rel="nofollow" style="color: #326ca6; text-decoration: none;">https://dbpost.wordpress.com/tag/dba_data_files/</a></span></div>
</code></div>
<div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-9959361080402348522015-05-12T22:38:00.002+10:002015-05-12T22:39:56.734+10:00Linux limits.conf and limits.d<i>Jephe Wu - <a href="http://linuxtechres.blogspot.com/">http://linuxtechres.blogspot.com</a></i><br />
<br />
<b>Objective</b>: find out how limits.conf and /etc/security/limits.d/ works<br />
<br />
<b>Questions:</b><br />
<br />
<b>1. what order are files under /etc/security/limits.d/ read?</b><br />
<br />
Firstly, read /etc/security/limits.conf file first, then individual files from /etc/security/limits.d directory are read. The order will be<br />
special characters,<br />
numbers in ascending order<br />
uppercase letters<br />
lowercase letters in alphabetical order<br />
<br />
If two files have same entry, then the entry read last will take effect.<br />
<br />
<b>2. applicable domain</b><br />
<br />
<ul>
<li>The limits.conf and limits.d <b>only applies for the applications that uses PAM service</b></li>
<li>And make sure the following line appears in /etc/pam.d/system-auth.</li>
</ul>
<br />
<pre style="background-color: white; background-repeat: repeat; border-color: rgb(238, 238, 238) rgb(238, 238, 238) rgb(238, 238, 238) rgb(204, 204, 204); border-radius: 0px; border-style: solid; border-width: 1px 1px 1px 2px; box-sizing: border-box; color: #333333; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 13px; line-height: 1.42857; margin: 10px 20px; overflow: auto; padding: 10px; width: auto; word-break: normal; word-wrap: normal;"><code style="background-color: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; margin: 0px; overflow-x: auto; padding: 0px; width: auto; word-wrap: normal;">session required pam_limits.so</code></pre>
<div>
</div>
<br />
<ul>
<li>Make sure there's no sufficient line for session part before pam_limits.so in /etc/pam.d/system-auth</li>
</ul>
<br />
<b>3. ssh and pam_limits</b><br />
limits.conf and limits.d/* are not working for ssh shell, because by default /etc/ssh/sshd_config doesn't use PAM. Change <span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;">UsePAM from no to yes to fix the issue.</span><br />
<span style="color: inherit; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;"><br /></span>
<span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;"><b>4. difference between open files setting in limits.conf and the fs.file-max in /proc/sys/fs/file-max</b></span><br />
<span style="background-color: white; color: #333333; font-family: Overpass, 'Open Sans', Helvetica, sans-serif; font-size: 14px; line-height: 21px;"> File descriptor has two types: per session limit (/etc/security/limits.conf or limits.d/*) and system-wide limit (cat /proc/sys/fs/file-max), and nofile setting in limits.conf cannot be set to unlimited.</span><br />
<span style="background-color: white; color: #333333; font-family: Overpass, 'Open Sans', Helvetica, sans-serif; font-size: 14px; line-height: 21px;"><br /></span>
<span style="background-color: white; color: #333333; font-family: Overpass, 'Open Sans', Helvetica, sans-serif; font-size: 14px; line-height: 21px;"><b>5. all configuration files for setting up user nofile</b></span><br />
<span style="background-color: white; font-family: Overpass, 'Open Sans', Helvetica, sans-serif; font-size: 14px; line-height: 21px;">a. </span><span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;"># grep nofile /etc/security/limits.conf</span><br />
<span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;">b.</span><span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;"># grep -r nofile /etc/security/limits.d/</span><br />
<span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;">c.</span><span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;"># grep ^UsePAM /etc/ssh/sshd_config</span><br />
<span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;">d.</span><span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;"># grep -r ulimit /etc/bashrc /etc/profile /etc/profile.d/</span><br />
<span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;">e.</span><span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;"># grep ulimit ~user/.bashrc ~user/.bash_profile</span><br />
<span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;"><br /></span>
<span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;"><b>6. soft limit vs hard limit</b></span><br />
<span style="font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: inherit; line-height: 1.42857;">Normal user or unprivileged process can alter soft limit, range from 0 up to hard limit, also can lower its hard limit irreversibly.</span><br />
<br />
<span style="color: #333333; font-family: Overpass, Open Sans, Helvetica, sans-serif;"><span style="background-color: white; font-size: 14px; line-height: 21px;">Hard limit can only be changed by root user</span></span><br />
<span style="color: #333333; font-family: Overpass, Open Sans, Helvetica, sans-serif;"><span style="background-color: white; font-size: 14px; line-height: 21px;"><br /></span></span>
<span style="color: #333333; font-family: Overpass, Open Sans, Helvetica, sans-serif;"><span style="background-color: white; font-size: 14px; line-height: 21px;"><b>How to set soft limit for a application process?</b></span></span><br />
<ul style="background-color: white; box-sizing: border-box; color: #333333; font-family: Overpass, 'Open Sans', Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 0px; margin-top: 0px; padding-left: 1.5rem;">
<li style="box-sizing: border-box;">Use "ulimit -Sn <value style="box-sizing: border-box;">" command to change the soft limits in runtime.</value></li>
<li style="box-sizing: border-box;">Directly update the proc files of respective process PID.</li>
<li style="box-sizing: border-box;"><br /></li>
</ul>
<div>
<span style="color: #333333; font-family: Overpass, Open Sans, Helvetica, sans-serif;"><span style="font-size: 14px; line-height: 21px;"></span></span><br />
<div>
<span style="color: #333333; font-family: Overpass, Open Sans, Helvetica, sans-serif;"><span style="font-size: 14px; line-height: 21px;">[root@jephe 1521]# more limits </span></span></div>
<span style="color: #333333; font-family: Overpass, Open Sans, Helvetica, sans-serif;"><span style="font-size: 14px; line-height: 21px;">
<div>
Limit Soft Limit Hard Limit Units </div>
<div>
Max cpu time unlimited unlimited seconds </div>
<div>
Max file size unlimited unlimited bytes </div>
<div>
Max data size unlimited unlimited bytes </div>
<div>
Max stack size 10485760 unlimited bytes </div>
<div>
Max core file size 0 unlimited bytes </div>
<div>
Max resident set unlimited unlimited bytes </div>
<div>
Max processes 14841 14841 processes </div>
<div>
<b>Max open files 1024 4096 files </b></div>
<div>
Max locked memory 65536 65536 bytes </div>
<div>
Max address space unlimited unlimited bytes </div>
<div>
Max file locks unlimited unlimited locks </div>
<div>
Max pending signals 14841 14841 signals </div>
<div>
Max msgqueue size 819200 819200 bytes </div>
<div>
Max nice priority 0 0 </div>
<div>
Max realtime priority 0 0 </div>
<div>
Max realtime timeout unlimited unlimited us </div>
</span></span></div>
<div>
<span style="color: #333333; font-family: Overpass, Open Sans, Helvetica, sans-serif;"><span style="font-size: 14px; line-height: 21px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: Overpass, Open Sans, Helvetica, sans-serif;"><span style="font-size: 14px; line-height: 21px;"><br /></span></span></div>
<div>
<span style="background-color: white; color: #333333; font-family: Overpass, 'Open Sans', Helvetica, sans-serif; font-size: 14px; line-height: 21px;">But soft limit 14 can be increased up to hard limit 19 as follows,e.g. we are increasing from 14 to 18</span></div>
<div>
<span style="background-color: white; color: #333333; font-family: Overpass, 'Open Sans', Helvetica, sans-serif; font-size: 14px; line-height: 21px;"><br /></span></div>
<div>
<span style="background-color: white; color: #333333; font-family: Overpass, 'Open Sans', Helvetica, sans-serif; font-size: 14px; line-height: 21px;"><b>echo -n "Max open files=18:19" > /proc/1521/limits</b></span></div>
<div>
<span style="background-color: white; color: #333333; font-family: Overpass, 'Open Sans', Helvetica, sans-serif; font-size: 14px; line-height: 21px;"><br /></span></div>
<div>
<span style="background-color: white; color: #333333; font-family: Overpass, 'Open Sans', Helvetica, sans-serif; font-size: 14px; line-height: 21px;"><br /></span></div>
<div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-58454434202115162842015-04-21T23:07:00.002+10:002015-04-27T20:08:09.788+10:00How to add/update partition table without reboot <i>Jephe Wu - <a href="http://linuxtechres.blogspot.com/">http://linuxtechres.blogspot.com</a></i><br />
<br />
<b>Objective</b>: update partition table without Linux OS reboot<br />
<b>Environment:</b> RHEL 6.X<br />
<b>Tools</b>: partprobe, partx -a , kpartx -a, blockdev --rereadpt /dev/sdX, sfdisk -R /dev/sdX, hdparm -z /dev/sdX<br />
<br />
<b>Concepts</b>: create/update partition for a block device while Linux is running<br />
<br />
<b>Explanation: </b><br />
<br />
<b>partprobe</b><br />
<br />
<span style="background-color: white; color: rgba(0, 0, 0, 0.8); font-family: 'Roboto Slab', 'Times New Roman', serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;">In RHEL 6, it will only trigger the OS to update the partitions on a disk that none of its partitions are in use (e.g. mounted). If any partition on a disk is in use, <b>partprobe </b>will not trigger the OS to update partitions in the system because it is considered unsafe in some situations.</span><br />
<br />
<span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;"><b>Partx</b></span><br />
<span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;"># partx -v -a /dev/sdb</span><br />
<span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;"># partx -l /dev/sdb</span><br />
<span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;"><br /></span>
<span style="font-family: Arial;"><span style="font-size: 15px; line-height: 16.3636360168457px; white-space: pre-wrap;"><b>kpartx</b></span></span><br />
<span style="font-family: Arial;"><span style="font-size: 15px; line-height: 16.3636360168457px; white-space: pre-wrap;"><br /></span></span>
<span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;">kpartx -a /file/path/system.img</span><br />
<span style="font-family: Arial; font-size: 15px; white-space: pre-wrap;"><br /></span>
<span style="font-family: Arial; font-size: 15px; white-space: pre-wrap;">mount /dev/loop0p1 /mnt/somewhere</span><br />
<span style="background-color: white; color: rgba(0, 0, 0, 0.8); font-family: 'Roboto Slab', 'Times New Roman', serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;">Some raw images contains multiple partitions (e.g. full HD image). In this case, it's necessary to specify a starting offset for each partition</span><br />
<span style="color: #ba0000; font-family: Roboto Slab, Times New Roman, serif;"><span style="font-size: 14px; line-height: 19px; white-space: pre-wrap;"><br /></span></span><span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;">Some raw images contains multiple partitions (e.g. full HD image). In this case, it's necessary to specify a starting offset for each partition. offset is the bytes which is the starting sectors*512.</span><br />
<div>
<span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;"><br /></span></div>
<div>
<span style="line-height: 1.2;"><span style="font-family: Arial;"><span style="font-size: 15px; white-space: pre-wrap;">[root@ovm01 xen]# file system.img</span></span> </span></div>
<div>
<span style="font-family: Arial; font-size: 15px; white-space: pre-wrap;">system.img: x86 boot sector, GRand Unified Bootloader (0.94); partition 1: ID=0x83, active, starthead 0, <b>startsector 2048</b>, 208896 sectors; partition 2: ID=0x83, starthead 0,<b> startsector 210944,</b> 20760576 sectors; partition 3: ID=0x82, starthead 63, startsector 20971520, 4194304 sectors, code offset 0x48</span></div>
<div>
<span style="font-family: Arial; font-size: 15px; white-space: pre-wrap;"><br /></span></div>
<div>
<span style="font-family: Arial; font-size: 15px; line-height: 1.2; vertical-align: baseline; white-space: pre-wrap;"># mount -t vfat -o loop,<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; white-space: normal;">offset=$((2048*512))</span>,ro,noexec </span><a href="http://img.dd/" style="font-family: Arial; font-size: 15px; line-height: 1.2; text-decoration: none;"><span style="text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">img.dd</span></a><span style="font-family: Arial; font-size: 15px; line-height: 1.2; vertical-align: baseline; white-space: pre-wrap;"> /mnt/tmp_1</span><br />
<span style="font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;"># mount -t vfat -o loop,offset=$((210944*512),ro,noexec </span><a href="http://img.dd/" style="text-decoration: none;"><span style="font-family: Arial; font-size: 15px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">img.dd</span></a><span style="font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;"> /mnt/tmp_2</span><span style="font-family: Arial;"><span style="font-size: 15px; white-space: pre-wrap;"><br /></span></span><br />
<div>
<div>
<span style="font-family: Arial;"><span style="font-size: 15px; white-space: pre-wrap;"><br /></span></span><span style="background-color: white; color: rgba(0, 0, 0, 0.8); font-family: 'Roboto Slab', 'Times New Roman', serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;"><br /></span>
<span id="docs-internal-guid-2e52c77f-d6f6-414c-ef02-5b2393fccbe1"></span><br />
<span style="font-family: Arial; font-size: 15px; line-height: 1.2; vertical-align: baseline; white-space: pre-wrap;"># kpartx -v -a </span><a href="http://rawimage.dd/" style="font-family: Arial; font-size: 15px; line-height: 1.2; text-decoration: none;"><span style="text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">rawimage.dd</span></a><br />
<span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;">creates these mappings</span><br />
<div>
<span style="font-family: Arial;"><span style="font-size: 15px; line-height: 16.3636360168457px; white-space: pre-wrap;"><br /></span></span><span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;">/dev/mapper/loop0p1</span><br />
<span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;">/dev/mapper/loop0p2</span><br />
<span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;">/dev/mapper/loop0p5</span></div>
<div>
<span style="font-family: Arial;"><span style="font-size: 15px; line-height: 16.3636360168457px; white-space: pre-wrap;"><br /></span></span><span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;">The partitions can be mounted with these commands:</span><br />
<span style="font-family: Arial; font-size: 15px; line-height: 1.2; white-space: pre-wrap;"># mount /dev/mapper/loop0p1 /media/suspectHD_01/ -o ro</span><br />
<span style="font-family: Arial; font-size: 15px; white-space: pre-wrap;"># mount /dev/mapper/loop0p5 /media/suspectHD_02/ -o ro</span></div>
</div>
</div>
</div>
<div>
<span style="font-family: Arial; font-size: 15px; white-space: pre-wrap;"><br /></span></div>
<div>
<span style="font-family: Arial; font-size: 15px; white-space: pre-wrap;"><b>References commands</b></span></div>
<div>
<span style="font-family: Arial; font-size: 15px; white-space: pre-wrap;"><br /></span></div>
<div>
<ul style="background-color: white; border: 0px; color: #222222; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px 0px 1em 30px; padding: 0px;">
<li style="border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;"><code style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;">partx -va /dev/sdX</code></li>
<li style="border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;"><code style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;">kpartx -va /dev/sdX</code></li>
<li style="border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;"><code style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;">hdparm -z /dev/sdX</code></li>
<li style="border: 0px; margin: 0px 0px 0.5em; padding: 0px; word-wrap: break-word;"><code style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;">sfdisk -R /dev/sdX</code></li>
</ul>
</div>
<div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-76947725491771594592015-04-19T10:31:00.000+10:002015-04-20T21:54:40.203+10:00How to increase Oracle ASM disk group size<i>Jephe Wu - <a href="http://linuxtechres.blogspot.com/">http://linuxtechres.blogspot.com</a></i><br />
<br />
<b>Objective</b>: increase existing ASM disk group size<br />
<b>Environment</b>: RHEL 6.4 64bit, Oracle 11.2.0.4, iscsi, multipath, udev and ASM, EMC storage<br />
<b>Concept</b>: increase disk group size by increasing ASM disk size itself or adding some more ASM disk<br />
<br />
<b>Part I: Add additional Lun as ASM disk</b><br />
<br />
<b>Steps:</b><br />
1. create a new Lun in EMC storage<br />
2. use the following methods to find out the newly created disk name ,e.g. /dev/sdae etc<br />
<br />
dmesg<br />
more /proc/partitions (the new lines at the bottom)<br />
ls -l /sys/block<br />
ls -l /dev/disk/by-uuid/<br />
<br />
3. find out the WWID<br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">scsi_id --whitelisted --replace-whitespace –-device=/dev/sdae</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">multipath -ll </span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;"><br /></span><span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">4. vi /etc/multipath.conf to use alias for newly added ASM lun, e.g. db1</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">then run multipathd reload to reload the configuration</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;"><br /></span>
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">4. find out the lunid and wwid for each Lun so we know which volume is which</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;"><br /></span>
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">It's best to get lunid from storage administrator so that we can confirm which volume is which, otherwise, try to run the following command to find out. </span>If sg_inq command is not available, yum install sg3_utils first<br />
<br />
<em style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">for x in /dev/dm-* ; do export lunid=$( <b>/usr/bin/sg_inq --page=0x83 ${x}</b> | grep "^ 00" | cut -d" " -f17 | awk '{ print strtonum( "0x" $1 ) };' ) ; export wwid=$( <b>/sbin/scsi_id --whitelisted --replace-whitespace --device=${x} </b>) ; echo <em>${lunid} == </em>${x} == ${wwid}; done</em><br />
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
5. As the root user, identify the Device Mapper Universally Unique IDentifier (DM_UUID)<br />
for each device mapper volume. The example below shows the DM_UID for the<br />
partitions of the volumes labeled db1,db2,fra, and redo. </div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br />
# for i in db1p1 ; do printf "%s %s\n" "$i" "$(udevadm<br />
info --query=all --name=/dev/mapper/$i | grep -i dm_uuid)"; done<br />
<br />
db1p1 E: DM_UUID=part1-mpath-3600c0ff000d7e7a899d8515101000000</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
6. Create a file labeled 99-oracle-asmdevices.rules within /etc/udev/rules.d/</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br />
7. Within 99-oracle-asmdevices.rules file, create rules for each device similar to the<br />
example below:<br />
<strong>KERNEL=="dm-*",ENV{DM_UUID}=="part1-mpath-3600c0ff000dabfe5f4d8515101000000",OWNER="oracle",GROUP="oinstall",MODE="0660"</strong></div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br /></div>
<ul type="disc">
<li class="MsoNormal" style="background: white; color: #333333; line-height: 15.75pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;"><span style="font-family: "Helvetica","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">If one has made a change and
don't want to reboot the system then can utilize </span><span style="background: #F7F7F7; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";">udevadm trigger</span><span style="font-family: "Helvetica","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";"> instead.
Specify </span><span style="background: #F7F7F7; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";">--type</span><span style="font-family: "Helvetica","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";"> and</span><span style="background: #F7F7F7; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";">--action</span><span style="font-family: "Helvetica","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";"> or it will effectively
work like </span><span style="background: #F7F7F7; font-family: Consolas; font-size: 9.5pt; mso-fareast-font-family: "Times New Roman";">start_udev</span><span style="font-family: "Helvetica","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">.<o:p></o:p></span></li>
</ul>
<div style="background: white; border-left: solid #CCCCCC 1.5pt; border: solid #EEEEEE 1.0pt; margin-left: 15.0pt; margin-right: 15.0pt; mso-border-alt: solid #EEEEEE .75pt; mso-border-left-alt: solid #CCCCCC 1.5pt; mso-element: para-border-div; padding: 8.0pt 8.0pt 8.0pt 8.0pt;">
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0cm;">
<span style="color: #333333; font-family: Consolas; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> # /sbin/udevadm trigger
--type=subsystems --action=add<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0cm;">
<span style="color: #333333; font-family: Consolas; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> # /sbin/udevadm trigger
--type=devices --action=add<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0cm;">
<span style="color: #333333; font-family: Consolas; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> # /sbin/udevadm trigger
--type=subsystems --action=change</span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 0.0001pt; padding: 0cm;">
<span style="color: #333333; font-family: Consolas; font-size: 10pt;"> </span><span style="color: #333333; font-family: Consolas; font-size: 10pt; line-height: 115%;">#
/sbin/udevadm trigger --type=devices --action=change</span></div>
</div>
<ul type="disc">
<li class="MsoNormal" style="background: white; color: #333333; line-height: 15.75pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;"><span style="font-family: "Helvetica","sans-serif"; font-size: 10.5pt; mso-fareast-font-family: "Times New Roman";">One can even trigger only
specific devices like below;<o:p></o:p></span></li>
</ul>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
</div>
<div style="background: white; border-left: solid #CCCCCC 1.5pt; border: solid #EEEEEE 1.0pt; margin-left: 15.0pt; margin-right: 15.0pt; mso-border-alt: solid #EEEEEE .75pt; mso-border-left-alt: solid #CCCCCC 1.5pt; mso-element: para-border-div; padding: 8.0pt 8.0pt 8.0pt 8.0pt;">
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; margin-bottom: 9pt; padding: 0cm;">
<span style="color: #333333; font-family: Consolas; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> # echo change >
/sys/block/sda/sda1/uevent<o:p></o:p></span></div>
</div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br /></div>
<em style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;"><br /></em><span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">8. make partition for new Lun, only run on one of RAC node if any</span><br />
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<em># parted /dev/mapper/db1 mklabel gpt mkpart primary "1 -1"</em><br />
<em>Information: You may need to update /etc/fstab.</em></div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br />
Once the partition is created, a newly created device mapper device is created as db1p1.<br />
<em># ls -l /dev/mapper/db1p1 </em><br />
<em>lrwxrwxrwx. 1 root root 8 Apr 16 15:15 /dev/mapper/db1p1 -> ../dm-11</em></div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<br />
NOTE: A newly created partition requires the alias name followed by p1 such as db1p1 seen<br />
above. If p1 is missing, please run the following command to add the partition mappings to<br />
the device mapper disks.<br />
<em># kpartx -a /dev/mapper/db1</em><br />
<em><br /></em>
<em>9. if there's multiple paths on one system, you might need to run partprobe to update all available path for created partitions, and also run kpartx -a /dev/mapper/db1 on another RAC node</em></div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
10. add partitioned new disk into disk group by CLI or asmca through vnc/xterm or ssh -X</div>
<pre style="background-color: #f9f9fb; border: 1px solid rgb(217, 217, 226); box-sizing: border-box; font-family: menlo, monaco, 'Courier New', Courier, mono, serif; font-size: 13px; line-height: 1.615; margin-bottom: 1em; overflow: auto; padding: 5px; word-wrap: normal !important;">ALTER DISKGROUP data_finance ADD DISK
'/dev/mapper/db1p1';</pre>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<em><br /></em></div>
<div style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;">
<b>Part II: increase existing Lun size</b></div>
<div style="background-color: white; margin-top: 10px; padding: 0px;">
<div style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">
<b>Steps:</b></div>
<div style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">
<b><br /></b></div>
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">1. increase size of one of LUNs on storage </span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">2. make OS recognize the new size </span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">To re-scan logical units on a system that uses multipathing, execute the aforementioned command for each sd device (i.e. sda, sdb, and so on) that represents a path for the multipathed logical unit. To determine which devices are paths for a multipath logical unit, use multipath -ll; then, find the entry that matches the logical unit being changed. It is advisable that you refer to the WWID of each entry to make it easier to find which one matches the logical unit being changed.</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">echo 1 > /sys/block/sdax/device/rescan</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">echo 1 > /sys/block/sday/device/rescan</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">echo 1 > /sys/block/sdaz/device/rescan</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">echo 1 > /sys/block/sdba/device/rescan</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span>
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">Instead you can use /usr/bin/rescan-scsi-bus.sh script for rescanning all SAN LUNs. The sg3_utils package provides the rescan-scsi-bus.sh script, which can automatically update the logical unit configuration of the host as needed (after a device has been added to the system). The rescan-scsi-bus.sh script can also perform an issue_lip on supported devices. For more information about how to use this script, refer to rescan-scsi-bus.sh --help.</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span>
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">Now, run multipath -F followed by multipath -v2 mpathX to reload the mutipath configuration.</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span>
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">If the LUNs are configured over iSCSI protocol, the following command can be used to get the new LUN size:</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;"># iscsiadm -m session -R</span></span><br />
<br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">3. If it's multipath device, run kpartx -a /dev/mapper/mpathX if necessary</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">4. multipathd -k"resize map <multipath_device>"</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">5. reload multipath configuration : multipathd reload or multipathd restart, then run miltipath -ll to see new size.</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">Note: if you enabled 'queue if no path' option, then do not use multipathd -k'resize map mpatha'</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">6. resize /dev/mapper/mpathX by running resize2fs if necessary</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">7. check and resize ASM disk group</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">select name, total_mb, usable_file_mb from v$asm_diskgroup;</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;">alter diskgroup DATADG resize all;</span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span>
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;"><b>References:</b></span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;"><a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/DM_Multipath/index.html#online_device_resize">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/DM_Multipath/index.html#online_device_resize</a></span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;"><a href="http://www.novell.com/support/kb/doc.php?id=7009660">http://www.novell.com/support/kb/doc.php?id=7009660</a></span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;"><a href="https://access.redhat.com/solutions/127103">https://access.redhat.com/solutions/127103</a></span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;"><a href="http://www.jk-47.com/2012/08/extending-an-existing-lun-w-oracle-asm/">http://www.jk-47.com/2012/08/extending-an-existing-lun-w-oracle-asm/</a></span></span><br />
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 20px;"><a href="https://orainternals.wordpress.com/2012/08/29/do-you-need-asmlib/">https://orainternals.wordpress.com/2012/08/29/do-you-need-asmlib/</a></span></span></div>
<div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4269723281975845210.post-75167117137708805712014-12-15T06:53:00.002+11:002014-12-15T07:47:48.319+11:00How to recover deleted file under Linux<i>Jephe Wu - <a href="http://linuxtechres.blogspot.com/">http://linuxtechres.blogspot.com</a></i><br />
<br />
<b>Objective</b>: undelete httpd access log file while httpd process is still running<br />
<b>Environment</b>: CentOS 6.5 64bit<br />
<br />
<b>Cases Study:</b><br />
Sometime, you deleted a big httpd log file while httpd is still running. As long as httpd process doesn't exit, you still can recover removed deleted httpd log file.<br />
<br />
<b>Apply to: Recover deleted file, data recovery under Linux, restore deleted file, undo deletion</b><br />
<br />
<b>Steps:</b><br />
<script type="text/javascript">
google_ad_client = "ca-pub-2326791955539700";
google_ad_slot = "7325280754";
google_ad_width = 336;
google_ad_height = 280;
</script>
<!-- linuxtechres_main_Blog1_336x280_as -->
<script src="//pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
<br />
<br />
<b>1. For testing purpose, list access_log file content first for confirmation</b><br />
<br />
[root@www httpd]# pwd<br />
/var/log/httpd<br />
[root@www httpd]# more access_log<br />
192.168.1.15 - - [24/Jul/2014:09:02:25 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
192.168.1.15 - - [25/Jul/2014:02:29:59 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
192.168.1.5 - - [04/Aug/2014:19:54:29 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
192.168.1.5 - - [04/Aug/2014:19:54:29 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
192.168.1.5 - - [04/Aug/2014:19:54:58 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
192.168.1.5 - - [04/Aug/2014:19:55:26 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
192.168.1.5 - - [04/Aug/2014:19:56:11 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
<br />
<b>2. purposely delete /var/log/httpd/access_log, then check lsof</b><br />
<br />
[root@www httpd]# cp access_log /tmp<br />
[root@www httpd]# rm -f access_log<br />
[root@www httpd]# lsof | grep -i deleted<br />
<span style="color: red;"><b>httpd 1146 root 11w REG 253,0 1282 261208 /var/log/httpd/access_log (deleted)</b></span><br />
httpd 1177 apache 11w REG 253,0 1282 261208 /var/log/httpd/access_log (deleted)<br />
httpd 1178 apache 11w REG 253,0 1282 261208 /var/log/httpd/access_log (deleted)<br />
httpd 1179 apache 11w REG 253,0 1282 261208 /var/log/httpd/access_log (deleted)<br />
httpd 1180 apache 11w REG 253,0 1282 261208 /var/log/httpd/access_log (deleted)<br />
httpd 1181 apache 11w REG 253,0 1282 261208 /var/log/httpd/access_log (deleted)<br />
httpd 1182 apache 11w REG 253,0 1282 261208 /var/log/httpd/access_log (deleted)<br />
httpd 1183 apache 11w REG 253,0 1282 261208 /var/log/httpd/access_log (deleted)<br />
httpd 1184 apache 11w REG 253,0 1282 261208 /var/log/httpd/access_log (deleted)<br />
<br />
Note: above httpd process <b>1146 </b>is running under root which is parent process of httpd.<br />
<br />
<b>3. find out the FD of parent process of httpd then retrieve deleted access log file</b><br />
<br />
[root@www fd]# cd /proc/1146/fd<br />
[root@www fd]# ll<br />
total 0<br />
lr-x------ 1 root root 64 Dec 4 06:40 0 -> /dev/null<br />
l-wx------ 1 root root 64 Dec 4 06:40 1 -> /dev/null<br />
l-wx------ 1 root root 64 Dec 4 06:40 10 -> /var/log/httpd/ssl_error_log<br />
<span style="color: red;"><b>l-wx------ 1 root root 64 Dec 4 06:40 11 -> /var/log/httpd/access_log (deleted)</b></span><br />
l-wx------ 1 root root 64 Dec 4 06:40 12 -> /var/log/httpd/ssl_access_log<br />
l-wx------ 1 root root 64 Dec 4 06:40 13 -> /var/log/httpd/ssl_request_log<br />
l-wx------ 1 root root 64 Dec 4 06:40 2 -> /var/log/httpd/error_log<br />
lr-x------ 1 root root 64 Dec 4 06:40 3 -> /dev/urandom<br />
lrwx------ 1 root root 64 Dec 4 06:40 4 -> socket:[9492]<br />
lrwx------ 1 root root 64 Dec 4 06:40 5 -> socket:[9493]<br />
lrwx------ 1 root root 64 Dec 4 06:40 6 -> socket:[9496]<br />
lrwx------ 1 root root 64 Dec 4 06:40 7 -> socket:[9497]<br />
lr-x------ 1 root root 64 Dec 4 06:40 8 -> pipe:[9509]<br />
l-wx------ 1 root root 64 Dec 4 06:40 9 -> pipe:[9509]<br />
<br />
<span style="color: red;"><b>[root@www fd]# cp 11 /var/log/httpd/access_log.deleted</b></span><br />
<br />
[root@www fd]# cat /var/log/httpd/access_log.deleted<br />
192.168.1.15 - - [24/Jul/2014:09:02:25 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
192.168.1.15 - - [25/Jul/2014:02:29:59 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
192.168.1.5 - - [04/Aug/2014:19:54:29 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
192.168.1.5 - - [04/Aug/2014:19:54:29 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
192.168.1.5 - - [04/Aug/2014:19:54:58 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
192.168.1.5 - - [04/Aug/2014:19:55:26 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
192.168.1.5 - - [04/Aug/2014:19:56:11 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"<br />
<br />
<br />
<b>4. compare both files by diff and md5sum</b><br />
<script type="text/javascript">
google_ad_client = "ca-pub-2326791955539700";
google_ad_slot = "7325280754";
google_ad_width = 336;
google_ad_height = 280;
</script>
<!-- linuxtechres_main_Blog1_336x280_as -->
<script src="//pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
<br />
[root@www fd]# diff /tmp/access_log /var/log/httpd/access_log.deleted<br />
<br />
[root@www fd]# md5sum /tmp/access_log /var/log/httpd/access_log.deleted<br />
9aa2e8c58ecfb689d3ada71bb6ec5815 /tmp/access_log<br />
9aa2e8c58ecfb689d3ada71bb6ec5815 /var/log/httpd/access_log.deleted<br />
<br />
Note: in my test environment, there's no active web access traffic so both log files are the same.<br />
<br />
<b>5. free up disk space</b><br />
When httpd is running and access log file is deleted, the disk space won't be freed up, df -h and du reported disk free space do not match, you can use <b>lsof -i deleted</b> to find out if there's a big file was deleted to decide which process you need to restart to retrieve back the free space, in this case, I need to restart httpd process to free up space after restore back access log file.<div class="blogger-post-footer"><script type="text/javascript"><!--
google_ad_client = "pub-8593805755548677";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>Unknownnoreply@blogger.com0