Showing posts from December, 2016

RAID - Collection of Information that I'm trying to learn.

=_= RAID =_=

1. How to confirm if your linux server has Hardware RAID installed in it?

Execute the command provided below.

/sbin/lspci -vv | grep -i raid

If it results an empty screen, you can confirm that there is no RAID hardware controller installed in the server.

2. How to confirm if there is Software RAID installed in the server?

Execute the command provided below.

cat /proc/mdstat

If it returns the below message, you can confirm that there is no software RAID installed in the server.

Personalities :
unused devices: <none>

General File System check for linux

You can either use

fsck -fy  /dev/sda1

f - force

y - yes

/dev/sda1 - partition that I need to run file system check. This can be an LVM or a direct drive also.

e2fsck also does the same but not found in all linux distributions because e2fsck stands for file system check in ext family, while fsck is the general one which can be used on other file system types.

To show the storage engines used by each tables in a database

1. Login to Mysql as root user.

2. Use db_name;

3. Execute the query "show table status ; ". It'll show the engine used by each tables in the database you have selected.

Apache is not running in linux due to semaphore error.


ipcs -s | grep apache | perl -e 'while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'