Last Updated: 03 May 2024

   |   

Author: 216.244.66.236

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
server-tech:centos:adding-formatting-a-new-drive [Nov 23, 2022 08:25 PM]
217.113.194.94 old revision restored (Oct 2, 2022 05:54 PM)
server-tech:centos:adding-formatting-a-new-drive [Apr 22, 2024 09:24 PM]
114.119.145.88 old revision restored (Feb 28, 2024 04:25 PM)
Line 19: Line 19:
  
 If you don't see the disk from the first bus, you may need to scan the others: If you don't see the disk from the first bus, you may need to scan the others:
 +
 +''# echo "- - -" > /sys/class/scsi_host/host1/scan''
  
 ''# echo "- - -" > /sys/class/scsi_host/host2/scan'' ''# echo "- - -" > /sys/class/scsi_host/host2/scan''
-''# echo "- - -" > /sys/class/scsi_host/host3/scan'' 
  
 Eventually the disk should show up in /var/log/messages. Let's assume it is ''/dev/sdb'' Eventually the disk should show up in /var/log/messages. Let's assume it is ''/dev/sdb''
Line 36: Line 37:
  
 ''# lvcreate -l 100%VG -n data mysql'' ''# lvcreate -l 100%VG -n data mysql''
 +
 +== Formatting & Mounting the Disk ==
  
 6. Make the XFS filesystem: 6. Make the XFS filesystem:
Line 50: Line 53:
  
 9. If you want the drive to mount at boot, add an entry in ''/etc/fstab'' 9. If you want the drive to mount at boot, add an entry in ''/etc/fstab''
 +
 +You're done. If you want to see if your new drive is online, check ''df -h'' and you should see it.