From 7ad6bc955fcda52898f0a4784814d1f29d08cf20 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Tue, 28 Apr 2020 22:55:01 +0100 Subject: [PATCH] show a notice when mixed rootfs & mounted disks is detected (#9471) A user can incorrectly mounts a newly fresh disk. MinIO will detect that it is writing with a rootfs disk and will mark it down. However, it is hard for the user to understand what's going on. This commit will just print a notice so it will be easy to spot such use case. --- cmd/xl-sets.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/xl-sets.go b/cmd/xl-sets.go index e955198b9..05ee14e25 100644 --- a/cmd/xl-sets.go +++ b/cmd/xl-sets.go @@ -1459,6 +1459,8 @@ func markRootDisksAsDown(storageDisks []StorageAPI) { if infos[i].RootDisk { // We should not heal on root disk. i.e in a situation where the minio-administrator has unmounted a // defective drive we should not heal a path on the root disk. + logger.Info("Disk `%s` is a root disk. Please ensure the disk is mounted properly, refusing to use root disk.", + storageDisks[i].String()) storageDisks[i] = nil } }