mai 072010
 

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

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(vajalik)

(vajalik)

This site uses Akismet to reduce spam. Learn how your comment data is processed.