Using Centos. Situation: I have multiple drives off of two RAID controllers. I also have multiple entries in the fstab, such as /dev/sdb, /dev/sdc, etc. What I need to know is how I can identify which drives or set of drives (in the case of RAID) correspond to an entry in the /etc/fstab file.
In other words, I want to be able to look at /etc/fstab, see an entry as /dev/sda, and find that specific disk drive' slot/bay/port/whatever on the actual server.
Seems like this should be a very very simple thing to do, but even my manager who is a sys admin can't really answer this, nor can I find any concrete answers on stackexchange.
Really appreciate the help, and I am happy to elaborate if needed.
EDIT: I imagine this might be able to be done using the hardware RAID controller, however since there are situations where one would have a bunch of single drives, I would instead prefer to know how I identify by using a standard and widely available linux tool, like gparted or something.
Otherwise, trust in
udev
to populate/dev/disk
, but this will only tell you how things are right now, not how they were.