LUN-i lisamine serverit restartimata
Skännime uusi LUN-e:
# echo 1 > /sys/class/fc_host/hostX/issue_lip
# echo "0 0 0" >/sys/class/scsi_host/hostX/scan
# powermt config
veendume, et uued kettad nähtaval:
# powermt display dev=all
partitsioneerime uue ketta:
cat < < EOF | fdisk /dev/emcpowerX
n
p
1
1
w
EOF
anname oracle kasutajale ketta kasutuseks õigused ja lisame ka udev reeglitesse:
for i in emcpoweri sdah sdai sdaj sdak
do
chown oracle:oinstall /dev/${i}1
echo "${i}1:oracle:oinstall:0660" >> /etc/udev/permissions.d/10-oracle-devices.permissions
done
vaatame, milliseid kettaid ASM kasutab:
# service oracleasm listdisks
ASM1
loome uue ketta ASM-ile:
# service oracleasm createdisk ASM2 /dev/emcpowerX
Marking disk "/dev/emcpowerX" as an ASM disk: [ OK ]
veendume, et uus ketas võeti omaks:
# service oracleasm listdisks
ASM1
ASM2