Posts

CEPH bluestore using ceph-ansible

Just to test the ceph bluestore i have created 2 virtual machine in virtualbox with hostname: admin & osd1. Attached the 2 10G hdd for the OSD's in both the nodes. Below are the commands that i used to deploy it using the ceph-ansible: git clone https://github.com/ceph/ceph-ansible cd ceph-ansible cp group_vars/osds.yml.sample group_vars/osds.yml cp group_vars/all.yml.sample group_vars/all.yml cp group_vars/mons.yml.sample group_vars/mons.yml cp site.yml.sample site.yml vi group_vars/osds.yml     devices:    - /dev/sdb     - /dev/sdc bluestore : true vi group_vars/all.yml ceph_stable: true ceph_mirror: http://download.ceph.com/ ceph_stable_key: https://download.ceph.com/keys/release.asc ceph_stable_release: kraken ceph_stable_repo: "{{ ceph_mirror }}/rpm-{{ ceph_stable_release }}" monitor_interface: enp0s3 monitor_address: 192.xx.xx.xx osd_objectstore: bluestore ceph_conf_overrides:    global:    en

Solved : Unable to lock the administration directory (/var/lib/dpkg/)

Delete the lock file using below command: sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock now you can install package using apt-get command.

Install Scala in CentOS 6

Installation of Scala Steps : wget http : / / downloads .typesafe .com / scala / 2.11.1 / scala - 2.11.1.tgz tar xvf scala - 2.11.1.tgz sudo mv scala - 2.11.1 / usr / lib sudo ln - f - s / usr / lib / scala - 2.11.1 / usr / lib / scala Configuration of Scala in CentOS Add to PATH, edit /etc/profile.d/scala.sh  export PATH=$PATH:/usr/lib/scala/bin source /etc/profile.d/scala.sh     $ scala -version  Scala code runner version 2.11.1 -- Copyright 2002-2013, LAMP/EPFL  Note : for future ref: substitute the latest release by visiting http://www.scala-lang.org/download/all.html , click on the latest release and scroll down to “Other resources”. There you’ll find the Max OS X, Unix, Cygwin version .tgz file. Right click and copy the url to your clipboard and use it in your wget [right-click-paste].

Start wildfly service with standalone-full.xml

Wildfly provides a service.bat in %WILDFLY_HOME%\bin\service. Calling the batch file with the install parameter installs Wildfly as a service on Windows. Once it is installed on windows, you can change the settings so that wildfly starts all the modules and services instead of default minimal setup. For this, change standalone.bat file and add this line : set "SERVER_OPTS=--server-config=standalone-full.xml" This will enable startup of all modules & services of wildfly from now on.

Scan FC LUN's in RHEL/CentOS

1.First find out how many disks are visible in “fdisk -l” . # fdisk -l 2>/dev/null | egrep '^Disk' | egrep -v 'dm-' | wc -l 2.Find out how many host bus adapter configured in the Linux box.you can use “systool -fc_host -v” to verify available FC in the system. # ls /sys/class/fc_host host0 host1 In this case,you need to scan host0 & host1 HBA. 3.If the system virtual memory is too low ,then do not proceed further.If you have enough free virtual memory,then you can proceed with below command to scan new LUNS. # echo "1" > /sys/class/fc_host/host0/issue_lip # echo "1" > /sys/class/fc_host/host1/issue_lip Note:   You need to monitor the “issue_lip” in /var/log/messages to determine when the scan will complete.This operation is an asynchronous operation. 4.Verify if the new LUN is visible or not by counting the available disks. # fdisk -l 2>/dev/null | egrep '^Disk' | egrep -v 'dm-' | wc -l If any new

List all files & Folders In Windows/Unix

On Windows CMD Prompt: dir /s /b /o:gn On UNIX : find . -print | sed 's;[^/]*/;|___;g;s;___|; |;g'

How to enable federated engine in MySQL

[root@srvcob etc]# mysql -h localhost -u root -p Enter password: Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.1.52 Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show engines; +------------+---------+------------------------------------------------------------+--------------+------+------------+ | Engine     | Support | Comment                                                    | Transactions | XA   | Savepoints | +------------+---------+------------------------------------------------------------+--------------+------+------------+ | MRG_MYISAM | YES     | Collection of identical MyISAM tables