minio / directpv

Kubernetes CSI driver for Direct Attached Storage :minidisc:
https://directpv.io
GNU Affero General Public License v3.0
596 stars 88 forks source link

You should attach drives to nodes, not format/mount them. #904

Closed parseltongued closed 6 months ago

parseltongued commented 6 months ago
          You should attach drives to nodes, not format/mount them.

Originally posted by @balamurugana in https://github.com/minio/directpv/issues/903#issuecomment-2065704896

I've attached new drives directly to nodes as shown (hard disk 2): Picture

This new drive (hard disk 2) automatically shows up in lsblk as sdb, the drive is not formatted. Picture2

i've read the following: https://github.com/minio/directpv/blob/master/docs/drive-management.md https://min.io/docs/directpv/support/troubleshooting/ DirectPV ignores drives that meet any of the below conditions:

The size of the drive is less than 512MiB.The drive is hidden.
The drive is read-only.The drive is parititioned.
The drive is held by other devices.
The drive is mounted or in use by DirectPV already.
The drive is in-use swap partition.
The drive is a CDROM.

The new drive met these criteria.

Also followed the steps to create new project in OKD cluster management console and assign system:serviceaccount:directpv:directpv-min-io to user.

Is there any logs to find out what's the problem?

parseltongued commented 6 months ago

solved as I've reinstalled without legacy mode.

balamurugana commented 6 months ago

Run command kubectl directpv discover --all and share the output.

parseltongued commented 6 months ago

solved as I've reinstalled without legacy mode.

Upon further investigation, the issue isn't with the legacy flag, the driver can only work correctly in vanilla yaml, installing from mirrored- registry or adding --openshift does not work.