Pages

Tuesday, December 13, 2016

Increasing the space of active img file


Increasing the space of active img file








To increase the space of live img file of xen VM image
 .By this method there will be no loss of data and no 
re format is required .




Here in VM image sixe of /dev/xvdb will increase from 49 GB to 58GB


Now
[root@VMIMAGE1 data]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 9.4G 3.2G 6.2G 35% /
/dev/xvda1 99M 13M 82M 13% /boot
tmpfs 1.0G 0 1.0G 0% /dev/shm
/dev/xvdb 49G 35G 11G 77% /data






1. Stop the VM image



    root@VMSERVER: xm destroy <ID>




2.Increase the size of img file using qemu-img


-rw-r--r-- 1 root root 52428800000 Dec 14 06:08 data.img


     root @VMSERVER : qemu-img resize data.img +10G e






Image resized.
-rw-r--r-- 1 root root 63166218240 Dec 14 06:44 data.img


3.Resize it using resize2fs




    root @VMSERVER : resize2fs -f data.img


resize2fs 1.43-WIP (20-Jun-2013)
Resizing the filesystem on data.img to 15421440 (4k) blocks.
The filesystem on data.img is now 15421440 blocks long.



4.Reboot the VM image .


5.check the size of the drive


df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 9.4G 3.2G 6.2G 35% /
/dev/xvda1 99M 13M 82M 13% /boot
tmpfs 1.0G 0 1.0G 0% /dev/shm
/dev/xvdb 58G 35G 21G 64% /data
[oracle@VMIMAGE ~]$ cd /data/
[oracle@ VMIMAGE data]$ ls -l
total 2104844

drwxr-xr-x 3 oracle oinstall 4096 Feb 27 2014 10g

Monday, December 12, 2016

Reformatting the one of the drive in the hard disk , which has boot loader



Reformatting the one of the drive in the hard disk , which has boot loader








To fix below error : “/dev/sda1 is apparently in use by the system; will not make a filesystem here!”


[root@ecmtest2 /]# mkfs.ext3 /dev/sda1
mke2fs 1.43-WIP (20-Jun-2013)
/dev/sda1 is apparently in use by the system; will not make a filesystem here!






System is not allowing to format one drive part of same hard disk which has Boot loader


Hard disk : /dev/sda
File mount / :
/dev/sda4 on / type ext4
/dev/sda3 on /boot type ext4 (rw)
/dev/sda1 on vfat : that should be changed to ext3


1. Get Disk Mapper by fdisk command



    fdisk -l /dev/sda1


/dev/sda1 1 121602 976762583+ ee GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/mapper/OVM_SYS_REPO_PART_35000c50092db5a04: 993.9 GB, 993933656064 bytes


Here mapper ID : OVM_SYS_REPO_PART_35000c50092db5a04

2.remove the mapper



     dmsetup remove OVM_SYS_REPO_PART_35000c50092db5a04e


3.Run the format command again





    mkfs.ext4 /dev/sda1



4.Edit the /etc/fstab 

Thursday, November 17, 2016

Usefull Chrome extensions and Apps











1. Chrome Clipper


Allows to save note clippings and use later .









































2. Chrome RDP




To connect windows machines via RDP






3. Dolphin connect . To sync with mobile and Browser










4. Google Cast


To cast video to chromeCast









5. TamperMonkey


For userscript specific to websites.

Best use case is to download video from youtube






For Youtube video download :

Script1









































6. Google Input tools


To type in different languages 






7.VNC® Viewer for Google Chrome™

VNC viewer in chrome .





8.Cisco Webex App:


https://chrome.google.com/webstore/detail/cisco-webex/fceempjejlfaadkgdacpfhheknndlcjl