2014年10月21日 星期二
AIX 的 fcs dar dac
fcsX -> 光纖卡
darX -> Storage , 像是 DS5100 , DS4800 之類
dacX -> Storage 的 Controller . 像是 DS5100 有兩個 Controller 就會長出兩個 dac
hdiskX -> PV
rmdev -dl fcs0 -R 從 fcs 開始一路往下砍
fcs 可以看到好幾個 dar , 每個 dar 又有各自的 dac (當然要 zoning 有串在一起能看得到 ) 然後 dac 底下再有不同的 hdisk
從 fcs 或 dar 砍掉重抓的話 要先把 vg varyoff . 不可以 export 因為 export 之後就沒有 vg 的記錄了
varyoff 之後砍 fac / dar 重抓 . hdiskX 的數字會變(如果前面有空號的話). 但因為 PVID 沒有變所以 PV <-> VG 的關係還是在。
舊的 Storage 即使每個 Controller 會有兩個 fiber port , 在做 Zone 的時候也不會把這兩個port串在一起
舊式的接法是
ControllerA1
ControllerA2
ContrallerB1
ContrallerB2
Server1_fcs0
Srever1_fcs1
Server2_fcs0
Server2_fcs1
舊的接法是
SAN_SW_A : {ContrallerA1 , Server1_fcs0 }
SAN_SW_A : { ControllerA2 , Server2_fcs0 }
SAN_SW_B : { ContrallerB1 , Server1_fcs1 }
SAN_SW_B : { ControllerB2 , Server2_fcs1 }
兩個 Contraller 分開接到兩個 San Switch 上面 然後 Controller 的兩個 fiber port 不會給同一台 server 。是切給不同 server 分散流量用的。
新的接法會變成
SAN_SW_A : {ContrallerA1 , ContrallerB1 , Server1_fcs0 }
SAN_SW_A : { ControllerA1 , ContrallerB1 , Server2_fcs0 }
SAN_SW_B : { ContrallerA2 ,ContrallerB2 , Server1_fcs1 }
SAN_SW_B : { ContrallerA2 ,ControllerB2 , Server2_fcs1 }
ContrallerA , ContrallerB 會串在同一個 SAN switch 上
2014年10月15日 星期三
DSM 5.0 開 httpd directory listing
在 DSM 4.0 以前
vi /usr/syno/apache/conf/httpd.conf-user
加入
<Directory "/var/services/web/Folder">
Options Indexes MultiViews
</Directory>
然後
/usr/syno/etc/rc.d/S97apache-user.sh restart
參考 http://itanotomomi.pixnet.net/blog/post/12661105-%E9%96%8B%E5%95%9Fsynology-nas(ds212j-dsm-3.2)%E7%9A%84%E7%9B%AE%E9%8C%84%E7%80%8F%E8%A6%BD
在 DSM 5.0
.htaccess 不能用 即使開了 AllowOverride 也是
其實是要改這邊
/etc/httpd/conf/extra/httpd-userdir.conf-user
-AllowOverride AuthConfig FileInfo Indexes Limit
+AllowOverride Options AuthConfig FileInfo Indexes Limit
然後在該目錄底下放一個 .htaccess
Options +Indexes
改 httpd.conf-user 好像沒有用
/usr/syno/etc/rc.d/S97apache-user.sh 不見了 但是用 'httpd -k stop|start|restart' 好像也沒有用
要用
/usr/syno/sbin/synoservicecfg --restart httpd-user
改完發現 index listing 出來的 charset 是 ISO-8859-1
可以參考
http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html
改 .htaccess 加入 IndexOptions
Options +Indexes
IndexOptions +Charset=UTF-8 +NameWidth=*
參考
http://forum.synology.com/enu/viewtopic.php?f=14&t=83419&start=15
http://forum.synology.com/enu/viewtopic.php?f=20&t=84452
http://forum.synology.com/enu/viewtopic.php?f=232&t=79801
2014年10月8日 星期三
websphere 直接讀檔出現 404
Servers -> Server -> Web Container Settings -> Web Container -> Custom Properties.
com.ibm.ws.webcontainer.TolerateSymbolicLinks = true
http://frightanic.com/software-development/solution-to-error-404-srve0190e-on-websphere-6-1/
----
com.ibm.ws.webcontainer.mapFiltersToAsterisk=true
com.ibm.ws.webcontainer.removetrailingservletpathslash=true
com.ibm.ws.webcontainer.invokeFiltersCompatibility=true
oracle DDL Trigger
CREATE TABLE AUDIT_DDL (
d date,
OSUSER varchar2(255),
CURRENT_USER varchar2(255),
HOST varchar2(255),
TERMINAL varchar2(255),
owner varchar2(30),
type varchar2(30),
name varchar2(30),
sysevent varchar2(30));
create or replace trigger audit_ddl_trg after ddl on schema
begin
if (ora_sysevent='TRUNCATE')
then
null; -- I do not care about truncate
else
insert into audit_ddl(d, osuser,current_user,host,terminal,owner,type,name,sysevent)
values(
sysdate,
sys_context('USERENV','OS_USER') ,
sys_context('USERENV','CURRENT_USER') ,
sys_context('USERENV','HOST') ,
sys_context('USERENV','TERMINAL') ,
ora_dict_obj_owner,
ora_dict_obj_type,
ora_dict_obj_name,
ora_sysevent
);
end if;
end;
/
http://www.dba-oracle.com/t_ddl_triggers.htmhttp://www.runningoracle.com/product_info.php?products_id=91
訂閱:
文章 (Atom)