Refer to 1. https://www.server-world.info/en/note?os=CentOS_7&p=add_hd
2. https://www.tecmint.com/add-new-disk-to-an-existing-linux/
Step 1. Open a terminal and change to root
Step 2. Goto /dev to see which one is going to be added
# cd /dev
# ls -l sd*
Step 3: Fdisk it and change partition id to 0x8E (Linux LVM)
# fdisk /dev/sdb
Step 4. show new drive partition status
# sfdisk -l /dev/sdb
Step 5. format a new hard drive with ext4
# mkfs.ext4 /dev/sdb1
Step 6. mount a new hard drive
# mkdir /data; mount /dev/sdb1 /data
Step 7. Modified /etc/fstab, added
/dev/sdb1 /data ext4 defaults 0 0
沒有留言:
張貼留言