Trace: mknod_aix

mknod AIX

Usage: bash mknod.sh num_suffix prefix

counter=$1
prefix=$2
for i in $(cat hdisks.txt)
do
        major=$(ls -l /dev/$i |awk '{print $5}')
        minor=$(ls -l /dev/$i |awk '{print $6}')
        mknod /dev/$prefix"0"$counter c ${major%?} $minor
        chmod 660 /dev/$prefix"0"$counter
        chown grid.asmadmin /dev/$prefix"0"$counter
        counter=$((counter + 1))
done
ls -l /dev/$prefix*
mknod_aix.txt · Last modified: 2019/09/18 10:13
Public Domain Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain