Adding a New Disk Drive

CentOS 7

*** Show partition table
#fdisk –l

*** Enter operation mode for partitions

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').
Command (m for help): n

Command action
   l   logical (5 or over)
   p   primary partition (1-4)   <----- < P >


Partition number (1-4): 3

First cylinder (2611-3916, default 2611): "enter"
Using default value 2611
Last cylinder, +cylinders or +size{K,M,G} (2611-3916, default 3916): "enter"
Using default value 3916


Command (m for help): t
Partition number (1-5): 3

Hex code (type L to list codes): 8e
Changed system type of partition 3 to 8e (Linux LVM)

Command (m for help): w
The partition table has been altered!

 *** Format partition
 #mkfs.ext4 /dev/sdb1

*** Mount path for new partition
#vi /etc/fstab

*** Modify fstab
/dev/sdb1       /var/log          ext3   defaults        0       1



--------------------------------  The End -----------------------------



Made with Slides.com