Last Updated: 12 Mar 2025

   |   

Author: 54.38.85.37

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
server-tech:centos:adding-formatting-a-new-drive [Mar 12, 2025 08:49 AM]
54.38.85.37 old revision restored (Jun 23, 2024 02:23 AM)
server-tech:centos:adding-formatting-a-new-drive [Mar 12, 2025 09:55 PM] (current)
114.119.143.166 old revision restored (Mar 20, 2024 12:26 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 37: Line 36:
  
 ''# 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 53: Line 50:
  
 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.