Posts

Showing posts with the label File Server

File Size ??? 6 Ways to Find Largest Top Files and Directory in Linux

Image
File Size --:????????????????? 6 Ways to Find Largest Top Files and Directory in Linux Finding the size of large file and directories in Linux servers is one of the most important tasks that every system administrator came across in his daily tasks. So, every system administrator must know about multiple ways to find out the size of larger disks and files consuming the hard disks. Sometimes, it becomes more important, when your system's disk are getting filled so rapidly and you have to discover which files or directories are are ingesting up, all of your disk area on a Linux. In this case, we should be able to find a particular directory location where the data is being filled up. As there is no such shortcut command which is available to discover the largest documents or directories on a Linux or UNIX file system but there is some possibility by using some command line utilities that can help us reaching to the source location. So, this article will help you to...

Add Secondary Drives to CentOS / RHEL

Add Secondary Drives to CentOS / RHEL Adding a secondary drive to CentOS/RHEL (verbose version) 1) Get a list of current drives attached: [root@centos ~]# fdisk -l Disk /dev/vda: 4294 MB, 4294967296 bytes 16 heads, 63 sectors/track, 8322 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0003b59f Device Boot Start End Blocks Id System /dev/vda1 3 6242 3144704 83 Linux Partition 1 does not end on cylinder boundary. /dev/vda2 6242 8323 1048576 82 Linux swap / Solaris Partition 2 does not end on cylinder boundary. 2) Add the secondary drive in your VDC and connect it to the target server: 3) On your server, you should now see the secondary drive: [root@centos ~]# fdisk -l /dev/vdb Disk /dev/vdb: 4294 MB, 4294967296 bytes 16 heads, 63 sectors/track, 8322 cylinders Units ...

Setup File Server on CentOS7

Image
Setup File Server on CentOS7 Samba is an opensource and most popular package that provides file and print service using SMB/CIFS protocol. This step by step article explains how to setup file server on centos 7 using samba . Before starting please make sure you have assigned static IP for the server and have internet connectivity for installing packages. Package installation and pre config Step 1 »   Install necessary samba package and dependencies using below command . [root@krizna ~]# yum install -y samba samba-client samba-common and enable the smb and nmb service . [root@krizna ~]# systemctl enable smb.service [root@krizna ~]# systemctl enable nmb.service Step 2 »   Choose or Create a directory for shares and allow in SELINUX . [root@krizna ~]# mkdir /shares [root@krizna ~]# chcon -R -t samba_share_t /shares and check the selinux policy status using ls -Z. [root@krizna ~]# ls -Z / ...... drwxr-xr-x. root root unconfined_u:object_r:samba_share_t:s0 shares Step...