I'm confused about which UUID to use to identify a software RAID in fstab. lsblk -fs shows: md127p1 ext4 c43af789-82aa-49e9-a8ed-acd52b1cdd58 /y --- md127 ext4 39c20575-4257-4fd7-b5c8-8a15757e9e8e --- sdb1 linux_r hostname:0 af77830e-8cfd-9012-62ce-e57105c3bf6c --- sdb --- sdc1 linux_r hostname:0 af77830e-8cfd-9012-62ce-e57105c3bf6c --- sdc linux_r hostname:0 af77830e-8cfd-9012-62ce-e57105c3bf6c mdadm --detail gives for both md127p1 and md127 UUID : af77830e:8cfd9012:62cee571:05c3bf6c I want to add some disks to the server, not to the raid and I wanted to avoid trouble with the names. Any help would be appreciated. Barry
Assuming your raid group is /dev/md127, you can run: ls -l /dev/disk/by-uuid or blkid /dev/md127 and use the ID both will show for /dev/md127
Thanks. On Sat, Mar 7, 2015 at 4:26 PM, Miguel Medalha <miguelmedalha at sapo.pt> wrote:> Assuming your raid group is /dev/md127, you can run: > > ls -l /dev/disk/by-uuid > > or > > blkid /dev/md127 > > and use the ID both will show for /dev/md127 > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >