Posts

Showing posts from June, 2014

Unable to create filesystem "getting error mkfs.ext3: inode_size (128) * inodes_count (0) too big for "

mkfs.ext3: inode_size (128) * inodes_count (0) too big for After you ran sudo fdisk /dev/sdb1 , and deleted the existing partitions by hitting the d key and creating a new one by hitting n, did you choose 'p' (primary) or 'e' (extended). If you chose 'e', re-run the command and choose 'p' instead. That should solve your problem.

How to rebuild RPM database

Follow these steps Take the backup of /var/lib/rpm Directory 1) tar zcvf /var/lib/rpm.backup.tar.gz /var/lib/rpm Verify Integrity 2) cd /var/lib/rpm 3) rm –f __db* 4) /usr/lib/rpm/rpmdb_verify Packages Dump & Load Package 5) mv Packages packages.backup 6) /usr/lib/rpm/rpmdb_dump Packages.backup | /usr/lib/rpm/rpmdb_load Packages 7) /usr/lib/rpm/rpmdb_verify Packages 8) rpm –qa Final Step to rebuild database 9) rpm –vv –rebuilddb

SCAN LUN's

for HOST in `ls /sys/class/scsi_host/`; do echo "- - -" > /sys/class/scsi_host/$HOST/scan; done;

Set default browser as firefox

http://support.mozilla.com/en-US/kb/How%20to%20make%20Firefox%20the%20default%20browser

Count number of CPU's in server

Run lscpu command #lscpu Architecture:          x86_64 CPU op-mode(s):        32-bit, 64-bit Byte Order:            Little Endian CPU(s):                16 On-line CPU(s) list:   0-15 Thread(s) per core:    2 Core(s) per socket:    4 Socket(s):             2 NUMA node(s):          2 Vendor ID:             GenuineIntel CPU family:            6 Model:                 26 Stepping:         ...