Skip to main content

Posts

Showing posts from 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.