프로그램 사용/docker2019. 2. 28. 15:51

현재 컨테이너의 상세 정보를 확인하는 용도

(컨테이너에 할당된 볼륨의 경로라던가)


[링크 : https://www.joinc.co.kr/w/man/12/docker/Guide/DataWithContainer]

[링크 : https://docs.docker.com/engine/reference/commandline/inspect/]

[링크 : http://pyrasis.com/book/DockerForTheReallyImpatient/Chapter20/14]

'프로그램 사용 > docker' 카테고리의 다른 글

docker cassandra selinux  (0) 2019.03.20
centos docker compose iptable error  (2) 2019.03.20
docker 복원하기  (2) 2019.02.27
docker 개념 다시 조사..  (0) 2019.02.01
docker 설명..  (0) 2019.02.01
Posted by 구차니
하드웨어/RAID2019. 2. 28. 14:11

심심해서 어떻게 날리면 재미있을까? 라고 고민하다가

켠채로 RAID 볼륨 날리는걸로 결정 ㅋㅋㅋ


두근두근 하면서 눌렀고

초기화 되는 중에 후다닥 콘솔 열어서 명령어 쳐보니

실행이 되다가 어느정도 날아가고 나서는 실행이 되지 않게 된다.

(init이나 shutdown reboot 모두 명령어라 안 먹어서 끌수도 없다 ㅋㅋ)

# dmesg

[112092.188419] megasas:span 0 rowDataSize 2

[112092.188420] megasas:span 0 rowDataSize 2

[112092.188422] megasas:span 0 rowDataSize 2

[178173.500160] XFS (sda1): Unmounting Filesystem

[178173.500621] XFS (sda1): metadata I/O error: block 0x7de89 ("xlog_iodone") error 19 numblks 64

[178173.500627] XFS (sda1): xfs_do_force_shutdown(0x2) called from line 1180 of file fs/xfs/xfs_log.c.  Return address = 0xffffffffa036fb1e

[178173.500637] XFS (sda1): Log I/O Error Detected.  Shutting down filesystem

[178173.500639] XFS (sda1): Please umount the filesystem and rectify the problem(s)

[178173.500667] XFS (sda1): Unable to update superblock counters. Freespace may not be correct on next mount.

[178173.500675] XFS (sda1): xfs_log_force: error -5 returned. 


pwd나 cd는 bash 내장 명령어니까 메모리에 올라가 있어서 작동은 하지만

반대로 생각하면 파일 시스템의 디렉토리 테이블(inode)는 어느정도 메모리에 올려져 있다는 건가?

[root@localhost ~]# dmesg

-bash: /usr/bin/dmesg: Input/output error

[root@localhost ~]# pwd

/root

[root@localhost ~]# cd ..

[root@localhost /]# pwd

/

[root@localhost /]# ll

-bash: /usr/bin/ls: Input/output error 


초기화 되고 나서 보니 이제 모두 Ready~

'하드웨어 > RAID' 카테고리의 다른 글

RAID6 라서 오래 걸리나.. 백그라운드 초기화라 오래 걸리나?  (0) 2019.03.06
raid5 vs raid6 vs raid10  (0) 2019.03.04
PERC foreign RAID import  (0) 2019.02.26
foreign, degraded  (0) 2019.02.25
raid 복구?  (0) 2019.02.25
Posted by 구차니
프로그램 사용/docker2019. 2. 27. 22:20

container의 내용을 저장하고 복구하는 방법


commit 으로 저장하고

save로 파일로 저장하고

load로 파일에서 불러와 복원한다


라는데 db도 되려나?


[링크 : https://blog.naver.com/chandong83/221006388637]

'프로그램 사용 > docker' 카테고리의 다른 글

centos docker compose iptable error  (2) 2019.03.20
docker inspect  (0) 2019.02.28
docker 개념 다시 조사..  (0) 2019.02.01
docker 설명..  (0) 2019.02.01
docker run = create + start  (0) 2019.02.01
Posted by 구차니
프로그램 사용/squid2019. 2. 27. 20:36

퇴근길에 검색하다가 우연히 발견한 문서

squid에서 HIER/NONE 이라고 뜨는 녀석은 캐싱이 안되는데

기본값으로 원래 서버로 요청을 돌려주도록 되어 있다고 한다.


parent가 누굴 지칭하는지 모르겠지만 global hit rate에는 영향을 못 미치면서 latency만 늘어난다라...


#  TAG: nonhierarchical_direct

# By default, Squid will send any non-hierarchical requests

# (matching hierarchy_stoplist or not cachable request type) direct

# to origin servers.

#

# If you set this to off, then Squid will prefer to send these

# requests to parents.

#

# Note that in most configurations, by turning this off you will only

# add latency to these request without any improvement in global hit

# ratio.

#

# If you are inside an firewall then see never_direct instead of

# this directive.

#

#Default:

# nonhierarchical_direct on 

[링크 : http://www.squid-cache.org/mail-archive/squid-users/200203/att-0514/squid.conf]


+

캐시 hierarchy 라는게 있어서 찾아보기..

[링크 : https://wiki.squid-cache.org/Features/CacheHierarchy]


+

헐?

[링크 : http://www.squid-cache.org/Doc/config/offline_mode/]

[링크 : https://stackoverflow.com/.../how-can-squid-be-configured-to-cache-all-downloaded-files]

'프로그램 사용 > squid' 카테고리의 다른 글

squid url_rewrite_program  (0) 2019.03.14
squid log code  (0) 2019.03.01
squid용 인증서 관련 (인증서 변환하기)  (0) 2019.02.25
HSTS-HTTP Strict Transport Security / squid  (0) 2019.02.25
squid as transparent proxy  (0) 2019.02.19
Posted by 구차니
Linux/centos2019. 2. 27. 17:42

centos 에서 nfs 마운트 하려는데 에러나면

# mount -t nfs 0.0.0.0:/ temp

mount: wrong fs type, bad option, bad superblock on 0.0.0.0:/,

       missing codepage or helper program, or other error

       (for several filesystems (e.g. nfs, cifs) you might

       need a /sbin/mount.<type> helper program)


       In some cases useful info is found in syslog - try

       dmesg | tail or so. 


nfs 패키지를 깔아줘야 한다. (망할!)

# yum install nfs-utils nfs-utils-lib


[링크 : https://moongblog.tistory.com/9]

'Linux > centos' 카테고리의 다른 글

httpd + php + selinux..  (0) 2019.03.20
'abrt-cli status' timed out  (0) 2019.03.01
centos timezone 변경  (2) 2019.02.23
svn on centos  (0) 2019.02.22
smb on centos  (0) 2019.02.13
Posted by 구차니
프로그램 사용/apache2019. 2. 27. 12:54

virtualhost 라는 기능으로 구현이 가능한데..

웹 서버에서 하는건가? haproxy나 squid로 안되는걸려나? ㅠㅠ


[링크 : https://mynewparadigm.tistory.com/entry/1개의-ip로-2개의-도메인을-연결하는-방법]

[링크 : https://blog.readiz.com/29]

[링크 : https://hudi.kr/node-js-node-js-에서-vhost-사용/]


+

기본적으로 이 기능은 L4 에서 작동하는 것으로

apache / nginx / node.js 등에서 설정이 가능하다.

[링크 : https://stackoverflow.com/...-host-multiple-node-js-sites-on-the-same-ip-server-with-different-domain]

[링크 : https://www.joinc.co.kr/w/man/12/Nginx/virtualhost]

[링크 : https://gist.github.com/jakebellacera/590803]

[링크 : https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/]

'프로그램 사용 > apache' 카테고리의 다른 글

lets enceypt apache  (0) 2024.04.22
apache2 HSTS 활성화 하기  (0) 2024.04.18
mod_rewrite 테스트..  (4) 2017.04.12
mod_rewrite 로그설정  (0) 2017.04.12
라즈베리 파이 mod_rewrite 활성화  (0) 2017.04.11
Posted by 구차니

reverse proxy 돌리면..

공유기 안에서도 정상적으로 로그를 받을 수 있을려나?


[링크 : https://serverfault.com/questions/326837/iptables-nat-port-fowarding-and-apache-log-ips]

Posted by 구차니

앞에 주황색으로 LCD가 바뀌어서는 PDR1016 이라고 출력되는데

iDRAC 접속해봐도 RAID 설정관련해서는 안보이는데..

(하드에 설정이 되니 하드가 사라지면 해당 볼륨이 설정되었다는 것 조차도 컨트롤러는 까먹는 듯?)


시스템 로그에서는 드라이브가 빠진것만 나오는데..


Lifecycle Log 로 보면 에러 코드와 함께 뜬다.

근데 딱히 comment 달아준다고 해서 해결되는건 아닌거 같고..


Hardware - Front Panel 가니

에러를 숨길순 있는데 에러가 아니라고 설정하는건 좀 더 찾아 봐야 할 듯..


[링크 : https://www.dell.com/support/article/kr/ko/krdhs1/sln292269]

[링크 : https://www.dell.com/.../R420-reports-PDR1016-Drive-2-Remove/td-p/4568889]

[링크 : https://www.dell.com/.../integrated-dell-remote-access-cntrllr-7-v1.50.50/idrac7ug1.50.50-v1...s]



+

링크는 까먹었는데.. 아무튼 BIOS 에서 로그 리셋하라는 말이 있어서

찾다보니... Clear Log 발견(Log는 LifeCycle이랑 구분되는 데이터 인 듯)


아무튼.. Clear 하고 나니 Front Panel 출력에 에러가 사라지긴 했다.

찜찜한데 해결되었으니 되었다~ 해야 하나? ㅠㅠ


'하드웨어 > Server Case & board' 카테고리의 다른 글

idrac 재시작 하기  (0) 2019.03.12
R730 pci-express riser & back plane  (2) 2019.02.28
dell cable management  (0) 2019.02.25
idrac update via FTP  (0) 2019.02.14
Dell EMC iDRAC Service Module 3.2.0.1 (For Linux)  (0) 2019.02.14
Posted by 구차니
하드웨어/RAID2019. 2. 26. 10:17

R630 H730 Mini 에서

R730 H730 Mini로 RAID5 구성된 볼륨을 이동해서 RAID 볼륨 올리는 것 테스트


원래 볼륨은 R630에 있는데 전원 내린 이후에(안그러면 하나 뽑을때 마다 RAID 파괴되었습니다 소리 나올테니)

R730은 켜진채로 하나씩 옮겨 꼽고 iDRAC을 통해

foreign 으로 잡힌걸 import 해주니 바로 잡혀진다.


결론 : RAID 설정 자체는 컨트롤러가 아닌 HDD에 저장되는 듯 하다


은근히 잘 안보이는 곳에 짱박혀서 찾기도 힘드네 -_-


커널 메시지야 평범 하구만

[3082118.805795] scsi 0:2:1:0: Direct-Access     DELL     PERC H730 Mini   4.25 PQ: 0 ANSI: 5

[3082118.816186] sd 0:2:1:0: [sdb] 7029129216 512-byte logical blocks: (3.59 TB/3.27 TiB)

[3082118.816247] sd 0:2:1:0: [sdb] Write Protect is off

[3082118.816252] sd 0:2:1:0: [sdb] Mode Sense: 1f 00 00 08

[3082118.816283] sd 0:2:1:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA

[3082118.816855] sd 0:2:1:0: Attached scsi generic sg2 type 0

[3082118.817422] megaraid_sas 0000:03:00.0: scanning for scsi0...

[3082118.830111] sd 0:2:1:0: [sdb] Attached SCSI disk


'하드웨어 > RAID' 카테고리의 다른 글

raid5 vs raid6 vs raid10  (0) 2019.03.04
(Linux)OS 작동중에 하드를 뽑으면 어떻게 될까?  (0) 2019.02.28
foreign, degraded  (0) 2019.02.25
raid 복구?  (0) 2019.02.25
DELL PERC9 T10 PI?  (0) 2019.02.25
Posted by 구차니
Programming/node.js2019. 2. 26. 07:47

많이 쓰는 에디터는 다 존재하는데

굳이 패키지 쓸 이유가 있나 싶다.. 걍 CDN에서 받아 쓰는게 나을텐데..


[링크 : https://www.npmjs.com/package/ckeditor]

[링크 : https://www.npmjs.com/package/tinymce]

'Programming > node.js' 카테고리의 다른 글

ckeditor 와 php, node.js 연동  (0) 2019.03.11
floala 에디터 + node.js  (0) 2019.03.08
node.js 파비콘 설정하기  (0) 2019.02.22
node.js apache 스타일 로그  (0) 2019.02.22
express ejs  (0) 2019.02.20
Posted by 구차니