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:              5 CPU MHz:               1596.000 BogoMIPS:              5866.71 Virtualization:        VT-x L1d cache:             32K L1i cache:             32K L2 cache:              256K L3 cache:              8192K NUMA node0 CPU(s):     0-3,8-11 NUMA node1 CPU(s):     4-7,12-15 You will get the below details 2 socket 1 soket 4 cores 2 socket means 8 cores  and 2 thread in each core 2 (Thread) * 4(core)  = 8 8 * 2(Socket)  =   16 CPU Now also run cat /proc/cpuinfo command