Brother Sister Love


Posted in Uncategorized | Leave a comment

7 Stretches For Lower Back Pain Relief

totalbackstretch2 totalbackstretch11 quadslyingdownstretch hipflexorstretch spinalstretch Single_knee_to_chest_stretch hamstringfloorstretch2

Posted in Excercise | Tagged | Leave a comment

Move Docker from File Based Storage to Dedicated Device

Make sure you have existing raw storage device ready (

Step 1: Backup your docker images, individually

docker save imagename > backup_name.tar

Step 2: Stop docker service (service docker stop)

Step 3: Delete existing docker directory (rm -rf /var/lib/docker/*)

Step 4: Make new docker directory (mkdir -p /var/lib/docker/devicemapper/devicemapper)

Step 5: Create symbolic link to point to that device (ln -s /dev/sdb /var/lib/docker/devicemapper/devicemapper/data)

Step 6: Start docker and load your images (docker load < backup_name.tar)

Posted in Docker | Tagged , | Leave a comment

Vmware Linux Guest Add a New Hard Disk Without Rebooting Guest


Step 1: Add disk in vmware settings (scsi, sata whatever you like)

Step 2: Tell Linux guest OS to detect this. If you just reboot the guest, it will detect automatically. If you don’t want to reboot, issue following commands

echo "- - -" > /sys/class/scsi_host/host#/scan
fdisk -l
tail -f /var/log/message

Step 3. Format new disk.

# fdisk /dev/sdb
# mkfs.ext3 /dev/sdb3

Step 4: Create a Mount Point And Update /etc/fstab

# mkdir /disk3
Open /etc/fstab file, enter:
# vi /etc/fstab
Append as follows:

/dev/sdc3               /disk3           ext3    defaults        1 2
Posted in VMWare | Tagged , , | Leave a comment

Found wrong packed record at mysql error

for recover this, various options, below worked for me.

Create an exact copy of the existing table, partitioned if existing is partitioned.

replace the corrupt partition with old files, both MYD and MYI.

issue a “select * from newtable”

it will fix the table, now, transfer it to destination table.

Posted in Mysql | Tagged , | Leave a comment

Load XML to MS Sql Server

Create schema first using xsd2db tool, google it.

Then load using


SELECT @XmlFile = BulkColumn
insert into dbname.dbo.event(name,id,triggerdescription,comment,event_id)
Events.value(‘(name)[1]’, ‘varchar(MAX)’),
Events.value(‘(id)[1]’, ‘tinyint’),
Events.value(‘(triggerdescription)[1]’, ‘varchar(MAX)’),
Events.value(‘(comment)[1]’, ‘varchar(MAX)’),
Events.value(‘(id)[1]’, ‘tinyint’)
@XmlFile.nodes(‘/eventspecification/events/event’) AS XTbl(Events)

Posted in Uncategorized | Tagged , | Leave a comment

Shrink Disk on Linux Guest in vmware

vmware-toolbox-cmd disk shrink /

Posted in Uncategorized | Tagged , | Leave a comment

Sync Directory Structure only on Centos

sync -e “ssh -p 2255″ -av -f”+ */” -f”- *” <source directory> [email protected]<IP>:<Destination Directory>

Posted in Uncategorized | Tagged , | Leave a comment

iptables logging

Posted in Uncategorized | Tagged , | Leave a comment

Compare files in 2 folders by size and name

rsync --dry-run --update -vHaz <Directory1> <Directory2>
Posted in Uncategorized | Tagged | Leave a comment
« Older
Visit Us On FacebookVisit Us On Linkedin