Linux

Howto: Recover a file when you don’t know inode number in Linux

Delete a file called abc.sh: rm abc.sh Type the following command: # debugfs -w /dev/mapper/root At debugfs: prompt type lsdel command: debugfs: lsdel Sample outputs: Inode Owner Mode Size Blocks Time deleted 2113537 0 120777 3 1/ 1 Tue May 1 06:21:22 2016 1 deleted inodes found. Get block data, enter: debugfs: logdump -i <2113537> …

Howto: Recover a file when you don’t know inode number in Linux Read More »

Reclaim Space in a VM on Thin or Thick VMDKs

Fedora/CentOs/RedHat [root@rac1 ~]$ yum install zerofree updates/metalink | 12 kB 00:00 updates | 4.5 kB 00:00 updates/primary_db | 4.3 MB 00:21 Setting up Install Process Resolving Dependencies Running transaction check Package zerofree.i686 0:1.0.1-8.fc15 will be installed Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: zerofree i686 1.0.1-8.fc15 fedora 20 k …

Reclaim Space in a VM on Thin or Thick VMDKs Read More »

How to Rescan new LUN’s added in Linux, HP-UX, Aix, Solaris ?

HP-UX 1. Rescan the devices: ioscan -fnC <disk|tape> 2. Generate device files:  insf -e 3. Verify the new devices:  ioscan -funC <disk|tape> AIX 1. Rescan the devices ):  cfgmgr -vl fcsx Where x is FC adapter number 2. Verify the new devices:  lsdev -Cc <disk|tape> Linux The rescan in Linux is HBA-specific. For QLogic: echo …

How to Rescan new LUN’s added in Linux, HP-UX, Aix, Solaris ? Read More »

Where are yum downloaded packages saved in linux?

The packages will be saved in /var/cache/yum/<repo-name>/packages/ You have to edit the /etc/yum.conf from : keepcache=0 to : keepcache=1 keepcache=0  { Remove packages after successful instillation } keepcache=1  { Keep packages after successful instillation } [root@sip3 base]# cat /etc/yum.conf [main] cachedir=/var/cache/yum keepcache=1 debuglevel=2 logfile=/var/log/yum.log distroverpkg=redhat-release tolerant=1 exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 bugtracker_url=http://bugs.centos.org/yum5bug # Note: yum-RHN-plugin doesn’t …

Where are yum downloaded packages saved in linux? Read More »

Scroll to Top