2011-11-27

[OSX] Mac에서 검은색 배경화면 지정하기

이게 정석인지는 모르겠지만..

Mac에서 검은색 배경화면을 지정하기 위해서
첨부한 이미지를 다운 받아서 아래 위치에 저장한다.

/Library/Desktop Pictures/Solid Colors/Solid Black.png

시스템 환경설정 -> Desktop & Screen Saver -> Desktop 에서
Solid Colors에서 검은색 이미지를 선택한다.

2011-11-22

CentOS bonding 방법



아래 링크의 내용을 그대로 긁어왔다.


Bonding이란? (Teaming 이라고도 함)
여러 NIC 포트를 하나로 묶어 대역폭을 넓히고 장애에 대비한 방법입니다.



1. GATEDEV에 bond0 항목 추가
[root@test01 ~]# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=test01
GATEDEV=bond0    <= 추가


2. ifcfg-bond0 생성 및 설정
[root@test01 network-scripts]# cp ifcfg-eth0 ifcfg-bond0
[root@test01 network-scripts]# vi ifcfg-bond0
# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=bond0
BOOTPROTO=none
-NBOOT=yes
USERCTL=no
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=192.168.0.222
GATEWAY=192.168.0.1


3. ifcfg-ethx 수정
[root@test01 network-scripts]# vi ifcfg-eth0
# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=none
-NBOOT=yes
USERCTL=no
TYPE=Ethernet
MASTER=bond0
SLAVE=yes


4. bond0 모듈 추가
[root@test01 network-scripts]# more /etc/modprobe.conf
alias eth0 bnx2
alias eth1 bnx2
alias eth2 bnx2
alias eth3 bnx2
alias scsi_hostadapter megaraid_sas
alias bond0 bonding   <= 추가
options bonding mode=1 miimon=100   <= 추가


<Options>

Mode : 본딩방식을 정하는 옵션
0 - RR 방식 로드밸런스. 인터페이스의 라운드로빈. (대역폭 상승 + Failover)
1 - Active-Standby (NIC 의 Failover 만을 위한 모드)
      한개는 Standby로 기존 것이 문제 생길경우 active로 전환
2 - XOR 방식 / 수신시에는 MAC 어드레스로 매핑, 송신시 1번 NIC 사용
3 - Broadcast 방식 / 모든 Slave NIC 으로 통신 failover 제공
4 - 802.3ad Dynamic Link aggregation
5 - 송신패킷만 로드밸런싱 / 동일 스위치에 물려있어야 함
6 - 송수신패킷 로드밸런싱 / 동일 스위치에 물려있어야 함

Miimon : 링크 감시설정 모드 / ms 단위, 디폴트값이 0(사용안함)
               즉, 0으로 설정하면 Failover가 비활성화


5. bonding 모듈 적재
[root@test01 network-scripts]# modprobe bonding


6. Network 서비스 재시작 or Reboot
[root@test01 network-scripts]# service network restart


7. bonding 설정 확인
[root@test01 network-scripts]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.4.0-1 (October 7, 2008)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Speed: 100 Mbps
Duplex: full
Link Failure Count: 2
Permanent HW addr: 1x:xx:xx:xx:a8:49
Slave Interface: eth1
MII Status: up
Speed: 100 Mbps
Duplex: full
Link Failure Count: 2
Permanent HW addr: 1x:xx:xx:xx:a8:4b


8. Network 정보 확인(Mac Address 가 모두 동일하게 나옴)
[root@test01 network-scripts]# ifconfig
bond0     Link encap:Ethernet  HWaddr 1x:xx:xx:xx:A8:49 
          inet addr:192.168.0.222  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::16fe:b5ff:fed4:a849/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:16062 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1767 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1259307 (1.2 MiB)  TX bytes:235045 (229.5 KiB)
eth0      Link encap:Ethernet  HWaddr 1x:xx:x:xx:A8:49 
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:9015 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1703 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:747490 (729.9 KiB)  TX bytes:228009 (222.6 KiB)
          Interrupt:82 Memory:d6000000-d6012800
eth1      Link encap:Ethernet  HWaddr 1x:xx:xx:xx:A8:49 
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:7047 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:511817 (499.8 KiB)  TX bytes:7036 (6.8 KiB)
          Interrupt:90 Memory:d8000000-d8012800
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 b)  TX bytes:560 (560.0 b)