Monday, October 22, 2012

Delete none functioning iscsi target



Delete none functioning iscsi target

Command:

If possible, shutdown those services that usually using the partition mounted via iscsi.

#Logoff iscsi - command below:

iscsiadm -m node -u

#Delete the target - assuming target is 192.168.1.6
iscsiadm -m node -p 192.198.1.6 --op=delete

#Login Iscsi
iscsiadm -m node -l

Tuesday, October 9, 2012

SELinux REMINDERS

I set a Linux WEB with remote mysql server that I need to enable SELinux for PCI Requirement.


created a separate Document ROOT for the web files.

/web/files

#Command below will set the context and becomes accessible via web
semanage fcontext -a -f "" -t httpd_sys_content_t '/web/files(/.*)?'
restorecon -RFvv /web/files


#Allow HTTPD scripts and modules to connect to the network using TCP.
setsebool -P httpd_can_network_connect 1


#Allow HTTPD scripts and modules to connect to databases over the network.
setsebool -P httpd_can_network_connect_db 1