• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archives for April 2018

How to move or rename a datafile in the same ASM diskgroup (Using ASM alias)

by admin

ASM files can be renamed like any other files in a standard filesystem. For ASM, rename is performed through some type of statements (ADD ALIAS, RENAME ALIAS, ADD DIRECTORY) to manipulate filenames, alias, and directories. Renaming datafiles is sometimes needed when database file names still contain old database name after a database on ASM is […]

Filed Under: ASM, oracle

How To Check a Disk for Bad Blocks or Disk Errors on CentOS / RHEL

by admin

Hard disks can fail unexpectedly and it is always best to keep recent backups of all important data. Please keep in mind that even if a current or oncoming failure is detected, there may not be enough time to backup the data. Below are several methods that can be used to identify bad blocks or […]

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

Run Docker as a non-root user

by admin

The Docker containers by default run with the root privilege and so does the application that runs inside the container. This is another major concern from the security perspective because hackers can gain root access to the Docker host by hacking the application running inside the container. Method 1 – Add user to Docker group […]

Filed Under: DevOps, Docker

How to Configure Btrfs as the Storage Engine in Docker

by admin

Docker is an open platform management tool for Linux Containers. It provides a means for developers and system administrators to build and package applications into lightweight containers. Docker uses devicemapper devices as the default storage engine. To use Btrfs as the storage engine, perform the following steps. Note that Red Hat Enterprise Linux (RHEL) removes […]

Filed Under: DevOps, Docker

How to check failed or bad login attempts in Linux

by admin

Invalid login attempts can be tracked using command lastb provided the file /var/log/wtmp is present. Some of the possible causes for incorrect or bad login attempts are given below: due to typo wrong password has been entered during login. password has changed of user used in cron to connect via ssh. If any hacker is […]

Filed Under: Linux

How to create Docker Image from a Container and Dockerfile

by admin

Docker is an open platform management tool for Linux Containers. It provides a means for developers and system administrators to build and package applications into lightweight containers. Docker consists of the following components: Docker Engine – A portable, lightweight runtime and packaging tool Docker Hub – A cloud service for sharing applications and automating workflows […]

Filed Under: DevOps, Docker

Beginners Guide to The Docker World

by admin

Docker: Introduction Docker is an open platform management tool for Linux Containers. It provides a means for developers and system administrators to build and package applications into lightweight containers. Docker consists of the following components: Docker Engine – A portable, lightweight runtime and packaging tool Docker Hub – A cloud service for sharing applications and […]

Filed Under: DevOps, Docker

Beginners Guide to Udev in Linux

by admin

Udev is the device manager for the Linux kernel. Udev dynamically creates or removes device node files at boot time in the /dev directory for all types of devices. Udev is now part of systemd as you can see by viewing the “udev” file names included with the systemd RPM package. # rpm -ql systemd […]

Filed Under: CentOS/RHEL 7, Linux, OEL 7

How to Check and Analyze Memory Usage in Solaris

by admin

Troubleshooting performance issues is an important skill every system admin must have. This post is intended to give hints, where to look for in checking and troubleshooting memory usage. In principle, investigation of memory usage is split in checking usage of kernel memory and user memory. Please be aware that in case of a memory-usage […]

Filed Under: Solaris, Solaris 11

Manual Changes Made To /etc/hosts Or /etc/sysconfig/network-scripts/ifcfg-* Are Lost

by admin

The Problem You directly edit the /etc/hosts file, the /etc/resolv.conf file, or the /etc/sysconfig/network-scripts/ifcfg-* files. After a few minutes or a reboot, your changes are lost and the files revert to a previous form. The Solution The Red Hat Enterprise Linux (RHEL) distributions include the NetworkManager RPM package. This provides a daemon which monitors the […]

Filed Under: CentOS/RHEL 6, Linux, OEL 6

« Previous Page
Next Page »

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright