Files
oracle/vdh/add_lun_online.sh

5 lines
253 B
Bash
Raw Permalink Normal View History

2026-03-12 21:23:47 +01:00
#!/bin/bash
### still have to add the code to check the script is executed as root
ls -1 /sys/class/fc_transport/ | tr -d [[:alpha:]] | awk -v lun_id=$1 'BEGIN {FS=":"} {system("echo \""$2 " " $3 " " lun_id "\" > /sys/class/scsi_host/host"$1"/scan")}'