프로그램 사용/LVM2019. 3. 5. 11:33

어라.. RAID-6 볼륨이 원래 4.36TB 인데

lvm 으로 해서 4.74TB가 잡혀서 어디서 왔나 했더니..

SSD랑 HDD랑 같은 pool로 잡혀서 그런식으로 걸쳐 있는 듯?


pool 부터 다시 잡아야 하나.. 아니면 런타임에 pool을 변경이 가능하려나?


ssm 이라는 녀석 설치!

# yum install system-storage-manager 

[링크 : https://www.linuxsysadmin.biz/lvm-gui-centos-7/]


# ssm list

-------------------------------------------------------------

Device        Free       Used      Total  Pool    Mount point

-------------------------------------------------------------

/dev/sda                       465.25 GB          PARTITIONED

/dev/sda1                        1.00 GB          /boot

/dev/sda2  4.00 MB  464.24 GB  464.25 GB  centos

/dev/sdb                         4.36 TB

/dev/sdb1  0.00 KB    4.36 TB    4.36 TB  centos

-------------------------------------------------------------

------------------------------------------------

Pool    Type  Devices     Free     Used    Total

------------------------------------------------

centos  lvm   2        4.00 MB  4.82 TB  4.82 TB

------------------------------------------------

--------------------------------------------------------------------------------------

Volume             Pool    Volume size  FS     FS size       Free  Type    Mount point

--------------------------------------------------------------------------------------

/dev/centos/root   centos     50.00 GB  ext4  50.00 GB   43.00 GB  linear  /

/dev/centos/swap   centos     31.44 GB                             linear

/dev/centos/samba  centos      4.74 TB  ext4   4.74 TB    4.46 TB  linear  /home/samba

/dev/sda1                      1.00 GB  ext4   1.00 GB  787.87 MB  part    /boot

--------------------------------------------------------------------------------------


개념부터 봐야겠다..

[링크 : https://kit2013.tistory.com/199]



+

 # df -h

Filesystem                Size  Used Avail Use% Mounted on

/dev/mapper/centos-root    50G  4.3G   43G  10% /

devtmpfs                   32G     0   32G   0% /dev

tmpfs                      32G     0   32G   0% /dev/shm

tmpfs                      32G   11M   32G   1% /run

tmpfs                      32G     0   32G   0% /sys/fs/cgroup

/dev/sda1                 976M  150M  760M  17% /boot

/dev/mapper/centos-samba  4.8T   89M  4.5T   1% /home/samba

tmpfs                     6.3G     0  6.3G   0% /run/user/0

tmpfs                     6.3G  4.0K  6.3G   1% /run/user/42

tmpfs                     6.3G   44K  6.3G   1% /run/user/1000 

# lvdisplay

  --- Logical volume ---

  LV Path                /dev/centos/samba

  LV Name                samba

  VG Name                centos

  LV UUID                9Aa0oO-Ndwh-5IfX-O5vW-KZ8Z-tAFF-RBcKLq

  LV Write Access        read/write

  LV Creation host, time localhost, 2019-03-05 10:32:46 +0900

  LV Status              available

  # open                 1

  LV Size                <4.74 TiB

  Current LE             1242061

  Segments               2

  Allocation             inherit

  Read ahead sectors     auto

  - currently set to     256

  Block device           253:2


  --- Logical volume ---

  LV Path                /dev/centos/swap

  LV Name                swap

  VG Name                centos

  LV UUID                uYmqZR-s3FZ-w56s-97cm-eaYn-Vj6Y-SEvcWS

  LV Write Access        read/write

  LV Creation host, time localhost, 2019-03-05 10:32:50 +0900

  LV Status              available

  # open                 2

  LV Size                <31.44 GiB

  Current LE             8048

  Segments               1

  Allocation             inherit

  Read ahead sectors     auto

  - currently set to     256

  Block device           253:1


  --- Logical volume ---

  LV Path                /dev/centos/root

  LV Name                root

  VG Name                centos

  LV UUID                8PH4I2-Amfo-YuDh-J9h5-Hwhq-jSjZ-MrEUNK

  LV Write Access        read/write

  LV Creation host, time localhost, 2019-03-05 10:32:50 +0900

  LV Status              available

  # open                 1

  LV Size                50.00 GiB

  Current LE             12800

  Segments               1

  Allocation             inherit

  Read ahead sectors     auto

  - currently set to     256

  Block device           253:0


# pvdisplay

  --- Physical volume ---

  PV Name               /dev/sda2

  VG Name               centos

  PV Size               <464.25 GiB / not usable 3.00 MiB

  Allocatable           yes

  PE Size               4.00 MiB

  Total PE              118847

  Free PE               1

  Allocated PE          118846

  PV UUID               bxRHju-AXnI-7xwe-MEo5-LNWq-A0tw-VngA83


  --- Physical volume ---

  PV Name               /dev/sdb1

  VG Name               centos

  PV Size               4.36 TiB / not usable 2.00 MiB

  Allocatable           yes (but full)

  PE Size               4.00 MiB

  Total PE              1144063

  Free PE               0

  Allocated PE          1144063

  PV UUID               Z2jJnF-h4Uu-T0gF-yKyb-jSat-wPMr-7j2RtC


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

lvm as ssd cache  (0) 2022.02.14
LVM 관리  (0) 2019.03.05
lvm raid  (0) 2019.01.15
LVM - Logical Volumegroup Management  (0) 2009.01.22
Posted by 구차니
프로그램 사용/nginx2019. 3. 5. 10:46

설정이 되어있는걸 보는데...

reverse proxy 용도가 아니라 load balance 용도로 설정을 해둔거였나...


[링크 : https://www.lesstif.com/pages/viewpage.action?pageId=35357063]

[링크 : http://nginx.org/en/docs/http/ngx_http_upstream_module.html]

Posted by 구차니
Linux2019. 3. 4. 15:45

설마 없겠냐 했는데 다행히도 있네


$ tar --list --file=collection.tar

blues

folk

jazz

rock

$ tar --delete --file=collection.tar blues

$ tar --list --file=collection.tar

folk

jazz

rock 

[링크 : https://unix.stackexchange.com/questions/68732/remove-files-from-tar-archive]

[링크 : https://www.gnu.org/software/tar/manual/html_node/delete.html]



+

sparse 파일을 건드렸더니

tar: 다음 헤더로 건너 뜀

tar: 아카이브에서 비헤더 부분을 제거함 

이런 에러가 뜨더니 파일을 망가트려버렸다 -_ㅠ

'Linux' 카테고리의 다른 글

crontab 실행 시간 조절하기  (0) 2019.04.18
디렉토리내 중복 파일 확인하기  (0) 2019.04.18
sparse file 확인하기  (0) 2019.02.25
cron 실행 및 시간 관련 문제  (0) 2019.02.24
linux multi core 압축  (0) 2019.02.22
Posted by 구차니
하드웨어/RAID2019. 3. 4. 14:22

고민고민 하다가 아직도 결정 못함

(6 디스크)

 

 용량

 속도

 RAID 10

 3n

 x3

 RAID 5 + hot spare

 4n

 x1

 RAID 6

 4n

 x1


디스크 숫자로 고민하면 RAID 5 + hot spare(1) 이나 RAID 6나 용량은 같은데 전반적으로 RAID6을 지지하네

[링크 : https://serverfault.com/questions/118181/which-is-better-raid5-1-hotspare-raid6]

    [링크 : https://www.zdnet.com/article/why-raid-6-stops-working-in-2019/]

[링크 : https://superuser.com/questions/212930/should-i-use-raid-5-spare-or-raid-6]


RAID5 -> RAID6로 갈 순 있는데 끈채로 가능한지 켠채로도 되는지 모르겠고

항상 그러하듯 백업은 필수..(저장 공간이 없는데?!?!?)

[링크 : https://www.dell.com/.../dell-poweredge-how-to-change-the-raid-level-of-a-virtual-disk?lang=en]



+

하드 수명도 예측 불가능하고 나갈때가 된 거 같으니

RAID 6으로 가고 예비 디스크 남겨 두는 걸로 일단 결론을...

Posted by 구차니

처음에는 1300장..

줄여서 1100장

아내님의 지원으로 800장 후...


근데 인간적으로 11만 5천 500원이면 무료 배송해야지 않아!!?


후.. 1300장에서 825장으로 인간승리!

와... 무료 배송이 아니라니 ㅠㅠ


+

4시에 확인했는데 벌써 포장 ㄷㄷ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

똥개 피똥.. 토..  (0) 2019.04.13
심리 상담 다녀옴  (0) 2019.03.16
설 연휴 정산...  (2) 2019.02.06
으으 피곤..  (0) 2019.02.02
dustfeel - 미세먼지 측정소 상황  (0) 2019.01.29
Posted by 구차니

전기 덜 먹어서 좋네

그냥 동영상 가벼운거 보는데


신규 시스템(i5-2500/z67 extreme3 gen3/4GB*4) - 40W

이전 시스템(i5-2500/몰랑 까먹음/4GB*2/GTX650) - 90W


그래픽 카드 달고 할만한 게임도 없고 못하고 있으니

전기 덜 먹는 걸로라도 셋팅을 해놔야지 머..

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

2760p 득템 준비?!  (2) 2019.03.25
노트북 지름신 -_ㅠ  (2) 2019.03.22
i5-2500 + z68 ext3 gen3 + 모니터 설정  (0) 2019.03.02
서피스 펜 배터리 도착 + 교체!  (4) 2018.12.13
서피스 펜 배터리 교체 + 구매  (2) 2018.12.12
Posted by 구차니

회사에서 4세대 이후를 주로 쓰다 보니 별 생각이 없었는데

세대 한계인지 메인보드 한계(혹은 칩셋) 인지 모르겠으나

2세대에서는 듀얼 모니터로 까지 밖에 쓰지 못한다고 설명서에 나와있네.. ㅠㅠ


6. You can choose to use two of the three monitors only. D-Sub, DVI-D and HDMI monitors cannot be enabled at the same time. Besides, with the DVI-to-HDMI adapter, the DVI-D port can support the same features as HDMI port.  

[링크 : http://asrock.pc.cdn.bitgravity.com/Manual/Z68%20Extreme3%20Gen3.pdf]



+

cpu 레벨에서 지원하는 갯수가 2개라고.. ㅠㅠ


[링크 : https://ark.intel.com/.../intel-core-i5-2500-processor-6m-cache-up-to-3-70-ghz.html[


3세대 부터 3개 지원하는 듯?

[링크 : https://ark.intel.com/.../intel-core-i5-3470-processor-6m-cache-up-to-3-60-ghz.html]

Posted by 구차니

세상 참 빠르다.

그때 활동하던 분들은 살아계시지 못할 100년

그때 태어나신 분들도 많이 살아있진 못할 1세기


독립적으로 강한 나라 만드는게 쉬운일은 아니지만

아직도 우리는 독립을 하지 못했고

아직도 우리는 종전을 하지 못한


6.25 이전

3.1절에 머무르고 있는건 아닐까 생각을 해본다.

Posted by 구차니
Linux/centos2019. 3. 1. 13:07

볼륨 복사한다고 했더니 가상머신이 골골대서

로그인 오래걸리더니 다음과 같은 에러를 뿜어낸다

'abrt-cli status' timed out 


일단 abrt 로그인 시에 확인하지 않도록 해서 끄는 방법이 먼저 나오네..

[링크 : https://blog.inidog.com/p/20170203182]


+

버그 리포팅 툴이라..

Automatic Bug Reporting Tool; ABRT, abrtd

[링크 : https://zetawiki.com/wiki/리눅스_ABRT]

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

centos7 USB 설치 중 /dev/root dose not exist 에러  (0) 2019.07.02
httpd + php + selinux..  (0) 2019.03.20
centos nfs client  (0) 2019.02.27
centos timezone 변경  (2) 2019.02.23
svn on centos  (0) 2019.02.22
Posted by 구차니
프로그램 사용/squid2019. 3. 1. 10:16

결과 코드들에 대해서 좀 더 자세히 나와있는데..

그래도 HIER_DIRECT를 어떻게 할 방법이 없나..


6.7 Squid result codes

The TCP_ codes refer to requests on the HTTP port (usually 3128). The UDP_ codes refer to requests on the ICP port (usually 3130). If ICP logging was disabled using the log_icp_queries option, no ICP replies will be logged.


The following result codes were taken from a Squid-2, compare with the log_tags struct in src/access_log.c:


TCP_HIT

A valid copy of the requested object was in the cache.


TCP_MISS

The requested object was not in the cache.


TCP_IMS_HIT

The client issued an IMS request for an object which was in the cache and fresh.


TCP_SWAPFAIL_MISS

The object was believed to be in the cache, but could not be accessed.


TCP_NEGATIVE_HIT

Request for a negatively cached object, e.g. "404 not found", for which the cache believes to know that it is inaccessible. Also refer to the explainations for negative_ttl in your squid.conf file.


TCP_MEM_HIT

A valid copy of the requested object was in the cache and it was in memory, thus avoiding disk accesses.


TCP_DENIED

Access was denied for this request.


TCP_OFFLINE_HIT

The requested object was retrieved from the cache during offline mode. The offline mode never validates any object, see offline_mode in squid.conf file. 

[링크 : http://www.comfsm.fm/computing/squid/FAQ-6.html#ss6.7]


6.10 Hierarchy Codes

The following hierarchy codes are used with Squid-2:


NONE

For TCP HIT, TCP failures, cachemgr requests and all UDP requests, there is no hierarchy information.


DIRECT

The object was fetched from the origin server. 

[링크 : http://www.comfsm.fm/computing/squid/FAQ-6.html#ss6.10]

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

squid hierarchy  (0) 2019.03.14
squid url_rewrite_program  (0) 2019.03.14
squid hier/none direct 관련 설정  (0) 2019.02.27
squid용 인증서 관련 (인증서 변환하기)  (0) 2019.02.25
HSTS-HTTP Strict Transport Security / squid  (0) 2019.02.25
Posted by 구차니