Sunday, 7 January 2018

Samba server without password


--------------------Server[192.168.10.108]------------------------------------

[root@station108 ~]# yum install samba*

[root@station108 ~]# yum whatprovides */smb.conf

[root@station108 ~]# vim /etc/samba/smb.conf

[myfiles]
path=/sambaa
host allow=192.168.10.0/255.255.255.0
browseable=yes
writable=yes
guest ok=yes

[root@station108 ~]# mkdir /sambaa

[root@station108 ~]# chmod 777 /sambaa

--------------------Client[192.168.10.109]--------------------------------------

[root@station109 ~]# yum install cifs-utils samba-client

[root@station109 ~]# systemctl restart smb

[root@station109 ~]# systemctl enable smb

[root@station109 ~]# mkdir /mnt/samba

[root@station109 ~]# mount -o guest  //192.168.10.108/myfiles  /mnt/samba

Wednesday, 3 January 2018

RAID 0 configuration in RHEL7

RAID stands for redundant array of independent disks or redundant array of inexpensive disks.

RAID  is the combination of physical drives which is accessed by the operating system as one single drive.

In the schema of RAID, data is divided and replicated among multiple physical drives.

There are many different ways to organize data in RAID array. These ways are called as "RAID Levels".

Some most used RAID levels are :-

RAID 0
RAID 1
RAID 5
RAID 6
RAID 10 = RAID 1+0

------------------------------------------------------------------------------------------------------------------
Here we will focus upon RAID level 0

                                                                RAID 0 {stripping}




It requires at least two raid partition and the data is distributed across all the physical devices or partitions.

It provides or offers increased performance means accessing of data is fast but it doesn't provide fault tolerance means if one disk in the array fails then the entire array doesn't work.

--> to check partition table

# fdisk  -l        


we have two physical devices here  /dev/vdb  &   /dev/vdc





# mdadm --create /dev/md0 --level=0 --raid-devices=2  /dev/vdb1 /dev/vdc1



# mdadm  --detail  /dev/md0



# lsblk



# mkfs.ext4   /dev/md0



# mkdir  /raid

# mount   /dev/md0   /raid

# mount