Add a New Disk in Linux- Partition and Format Rumi, May 9, 2018 Partition the new disk using fdisk command Following command will list all detected hard disks: # fdisk -l | grep '^Disk' Output: Disk /dev/sda: 251.0 GB, 251000193024 bytes Disk /dev/sdb: 251.0 GB, 251000193024 bytes A device name refers to the entire hard disk. For more information see Linux partition naming convention and IDE drive mappings. To partition the disk – /dev/sdb, enter: # fdisk /dev/sdb The basic fdisk commands you need are: m – print help p – print the partition table n – create a new partition d – delete a partition q – quit without saving changes w – write the new partition table and exit Format the new disk using mkfs.ext3 command To format Linux partitions using ext2fs on the new disk: # mkfs.ext3 /dev/sdb1 Or # mkfs.ext4 /dev/sdb1 Mount the new disk using mount command First create a mount point /disk1 and use mount command to mount /dev/sdb1, enter: # mkdir /disk1 # mount /dev/sdb1 /disk1 # df -H Update /etc/fstab file Open /etc/fstab file, enter: # vi /etc/fstab Append as follows: /dev/sdb1 /disk1 ext3 defaults 1 2 or /dev/sdb1 /disk1 ext4 defaults 1 2 Save and close the file. Label the partition You can label the partition using e2label. For example, if you want to label the new partition /backup, enter # e2label /dev/sdb1 /backup You can use label name instead of partition name to mount disk using /etc/fstab: LABEL=/backup /disk1 ext3 defaults 1 2 Related Administrations Configurations (Linux) FdiskMkfsMount
Set Up Nginx Load Balancing with SSL Termination March 23, 2018 Nginx can be configured as a load balancer to distribute incoming traffic around several backend servers. SSL termination is the process that occurs on the load balancer which handles the SSL encryption/decryption so that traffic between the load balancer and backend servers is in HTTP. The backends must be secured… Read More
Howto Install PHP GD (PHP Graphics) support in Ubuntu / Debian October 5, 2009 PHP is not limited to creating just HTML output. It can also be used to create and manipulate image files in a variety of different image formats, including GIF, PNG, JPEG, WBMP, and XPM. Even more convenient, PHP can output image streams directly to a browser. You need to install… Read More
Vesta- How to set up master-slave DNS cluster January 28, 2019January 28, 2019 If you are looking for the options to avoid any DNS-related downtime or the way to manage dns across all server you have, you might consider to set up dns cluster. Create user dns-cluster on a server which will be used as dns slave On the second server (slave) with… Read More