SysAdmin

Simple script to scan LUNs, create pv, vg, lv, mounting it and creating new entries in fstab in RHEL. (Note:- Probably need slight modification as pe

#!/bin/bash MPATH=0 for i in `ls /sys/class/scsi_host/host*/scan`; do echo “- – -” > $i; done sleep 5 multipath -ll echo -n “enter mpath:” read MPATH pvcreate /dev/mapper/${MPATH} vgcreate -s 32 $VG /dev/mapper/${MPATH} lvcreate -l 100%VG -n $LV $VG mkfs.ext4 /dev/mapper/${VG}-${LV} echo -n “Enter mount point directory full path:” read MOUNTPOINT if [ ! -d $MOUNTPOINT

Simple script to scan LUNs, create pv, vg, lv, mounting it and creating new entries in fstab in RHEL. (Note:- Probably need slight modification as pe Read More »

[How to] set a password for mysql root user

This is how to set a password for mysql root user. Run the following command to set a password `/usr/bin/mysqladmin -u root password ‘new-password’` Once the password is applied, Test it by accessing mysql as root from localhost. You will get something like this, “` root@JobNix:~# mysql ERROR 1045 (28000): Access denied for user ‘root’@’localhost’

[How to] set a password for mysql root user Read More »

FTPbox – A Private DropBox Application

Ever thought “How to own a Private DropBox” ? [![ftpbox](https://res.cloudinary.com/jobnix/image/upload/v1415999129/ftpbox_bldzxf.png)](https://res.cloudinary.com/jobnix/image/upload/v1415999129/ftpbox_bldzxf.png) Well, If you have an ftp account on your web hosting, You can turn it to your private Dropbox with [FTPbox ](http://ftpbox.org/)application. FTPbox is an open-source application that allows you to synchronize your files to your own host, via FTP. This way, you can access

FTPbox – A Private DropBox Application Read More »

Git – How to transfer or move repository between accounts

Some times you may need to move your git repository to another account, even between providers such as, github.com, butbucket.org, gitlab.com or even to your own git server. Pre-Requirements Write access to Both the repositories. Say my-old-repo and my-new-repo . Steps git clone –bare [email protected]:oldaccount/my-old-repo.git cd my-old-repo.git git push –mirror [email protected]:newaccount/my-new-repo.git cd .. rm -rf

Git – How to transfer or move repository between accounts Read More »

Scroll to Top