Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An automated method of finding the drives #7

Open
mflannery opened this issue Jul 24, 2020 · 0 comments
Open

An automated method of finding the drives #7

mflannery opened this issue Jul 24, 2020 · 0 comments

Comments

@mflannery
Copy link

The following could be added to the Configure Local Storage Operator section to automate finding the drives.

for i in $(oc get nodes -l cluster.ocs.openshift.io/openshift-storage= | tail -3 | cut -d' ' -f1); do oc debug node/$i -- chroot /host lsblk -o NAME,SIZE,MOUNTPOINT && oc debug node/$i -- chroot /host find /dev/disk/by-path/ -printf '%p -> %l\n' | sort; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant