-1

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.

lobi
  • 1,133

1 Answers1

1

FSTAB(5)
Instead of giving the device explicitly, one may indicate the filesystem that is to be mounted by its UUID or LABEL (cf. e2label(8) or xfs_admin(8)), writing LABEL= or UUID=, e.g., LABEL=Boot' orUUID=3e6be9de-8139-11d1-9106-a43f08d823a6'.

Otherwise, trust in udev to populate /dev/disk, but this will only tell you how things are right now, not how they were.

84104
  • 13,181
  • 6
  • 49
  • 80