'프로그램 사용'에 해당되는 글 2305건

  1. 2019.02.17 squid access log 종류.. 2
  2. 2019.02.16 tar 로 압축된 sparse file 풀기
  3. 2019.02.15 sparse file nfs /smb
  4. 2019.02.15 gitlab 서비스 명(centos)
  5. 2019.02.15 virsh create / define
  6. 2019.02.15 kvm 설치 4
  7. 2019.02.15 sparse file with cp
  8. 2019.02.14 qcow2 sparse file
  9. 2019.02.14 mrtf centos
  10. 2019.02.14 squid cache hit rate 올리기
프로그램 사용/squid2019. 2. 17. 20:32

일단 쓰면서 보면 제일 눈에 많이 띄는건 아래의 녀석들인데..


TCP_MISS

TCP_INM_HIT

TCP_MEM_HIT

TAG_NONE


HIER_DIRECT

HIER_NONE


HIT는 HIT인데 나머지는 감이 안온다.. ㅠㅠ

찾아도 왜이렇게 안보일까...?

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

끄으으응.. squid 번역을 한번 했어야 했나.. refresh_pattern  (0) 2019.02.18
squid LM-factor? (Last Modified)  (0) 2019.02.18
mrtf centos  (0) 2019.02.14
squid cache hit rate 올리기  (0) 2019.02.14
squid 비디오 차단  (0) 2019.02.13
Posted by 구차니

아.. 망했다.. ㅠㅠ

[링크 : https://www.medo64.com/2010/12/extracting-sparse-tar/]

'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

virsh domstats 로 가상머신의 cpu 사용율 확인하기  (0) 2019.03.29
kvm snapshot  (0) 2019.03.17
sparse file nfs /smb  (0) 2019.02.15
virsh create / define  (0) 2019.02.15
kvm 설치  (4) 2019.02.15
Posted by 구차니

'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

kvm snapshot  (0) 2019.03.17
tar 로 압축된 sparse file 풀기  (0) 2019.02.16
virsh create / define  (0) 2019.02.15
kvm 설치  (4) 2019.02.15
sparse file with cp  (0) 2019.02.15
Posted by 구차니

centos 에서 서비스 명을 겨우 찾음.. -_-


# ll /etc/systemd/system/basic.target.wants

합계 0

lrwxrwxrwx. 1 root root 41  1월 16  2017 firewalld.service -> /usr/lib/systemd/system/firewalld.service

lrwxrwxrwx. 1 root root 47  1월 16  2017 gitlab-runsvdir.service -> /usr/lib/systemd/system/gitlab-runsvdir.service

lrwxrwxrwx. 1 root root 41  1월 16  2017 microcode.service -> /usr/lib/systemd/system/microcode.service 

[링크 : https://www.digitalocean.com/.../how-to-use-systemctl-to-manage-systemd-services-and-units]


# systemctl status gitlab-runsvdir

● gitlab-runsvdir.service - GitLab Runit supervision process

   Loaded: loaded (/usr/lib/systemd/system/gitlab-runsvdir.service; enabled; vendor preset: disabled)

   Active: active (running) since 화 2019-01-22 12:42:45 KST; 3 weeks 3 days ago

 Main PID: 620 (runsvdir)

   CGroup: /system.slice/gitlab-runsvdir.service

           ├─  620 runsvdir -P /opt/gitlab/service log: ....................................................................

...

           ├─18710 sleep 3000

           └─18789 sleep 1


 1월 22 12:42:45 localhost.localdomain systemd[1]: Started GitLab Runit supervision process.

 1월 22 12:42:45 localhost.localdomain systemd[1]: Starting GitLab Runit supervision process... 


설치

[링크 : https://wikidocs.net/16279]

[링크 : https://blog.asamaru.net/2015/09/22/how-to-install-gitlib-on-centos/]


업그레이드 및 중지

[링크 : https://hreeman.tistory.com/79]


자동실행

[링크 : https://stackoverflow.com/questions/27983295/gitlab-autostart-on-boot]

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

git 저장소 합치기  (0) 2019.06.03
gitignore 특정 파일은 예외에서 제외시키기  (0) 2019.04.17
git branch  (0) 2019.01.29
git 윈도우 자격증명 관리  (0) 2019.01.16
git tag  (0) 2018.12.07
Posted by 구차니

적었나 기억이 안나네..

일단 다른 시스템으로 이전하면서 사용이 가능한지 확인하려고 하는데

dumpxml로 설정을 받아내고(그냥 뱉어내니 파일로 저장을 해주어야 함)

그걸 create 냐 define이냐로 고민을 하고 있는데

(난 도움말 보고 create면 된다라고 하고, 다른 사람은 define으로 해야 한다라고 해서)


fedora 글로는 create면 되는 듯 한데?

# virsh dumpxml GuestID > guest.xml

# virsh create configuration_file.xml 

[링크 : https://docs.fedoraproject.org/..._with_virsh-Creating_a_virtual_machine_XML_dump_configuration_file.html]


일단 define은 생성만 하고 실행을 안하고 create는 pause를 주지 않으면 바로 실행 하는 듯?

실험을 해보니 create로 하면 등록되지 않고 바로 실행되고

define + start가 적합한 등록 방법으로 보인다.

create FILE [--console] [--paused] [--autodestroy]

Create a domain from an XML <file>. An easy way to create the XML <file> is to use the dumpxml command to obtain the definition of a pre-existing guest. The domain will be paused if the --paused option is used and supported by the driver; otherwise it will be running. If --console is requested, attach to the console after creation. If --autodestroy is requested, then the guest will be automatically destroyed when virsh closes its connection to libvirt, or otherwise exits.

Example

virsh dumpxml <domain> > domain.xml

vi domain.xml (or make changes with your other text editor)

virsh create domain.xml


define FILE

Define a domain from an XML <file>. The domain definition is registered but not started. If domain is already running, the changes will take effect on the next boot. 

[링크 : https://linux.die.net/man/1/virsh]

'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

tar 로 압축된 sparse file 풀기  (0) 2019.02.16
sparse file nfs /smb  (0) 2019.02.15
kvm 설치  (4) 2019.02.15
sparse file with cp  (0) 2019.02.15
qcow2 sparse file  (0) 2019.02.14
Posted by 구차니

어라. centos 처음깔때 kvm 포함하면 되는게 아니었냐 -ㅁ-?


$ sudo yum install kvm libvirt 

[링크 : https://www.howtoforge.com/how-to-install-kvm-and-libvirt-on-centos-6.2-with-bridged-networking]


위의 패키지에 기본으로 깔리는지 모르는 녀석

$ sudo yum install virt-manager


'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

sparse file nfs /smb  (0) 2019.02.15
virsh create / define  (0) 2019.02.15
sparse file with cp  (0) 2019.02.15
qcow2 sparse file  (0) 2019.02.14
qcow2 파일크기의 오류?  (0) 2019.02.12
Posted by 구차니

tar가 되면 cp도 되지 않으려나?

[링크 : https://wiki.archlinux.org/index.php/sparse_file#Copying_with_%60cp']

[링크 : https://unix.stackexchange.com/questions/390109/are-there-any-disadvantages-of-cp-sparse-always]


       --sparse=WHEN

              control creation of sparse files. See below


        By default, sparse SOURCE files are detected by a crude heuristic and the corresponding DEST file is made sparse as well.  That is the behavior selected by --sparse=auto.  Specify --sparse=always to create a sparse DEST file whenever the SOURCE file contains a long enough sequence of zero bytes.  Use --sparse=never to inhibit creation of sparse files.


--sparse=auto 기본값

--sparse=always SOURCE에 0x00으로 쓰여진 충분히 긴 데이터를 포함하더라도 DEST 를 항상 sparse 파일로 생성

--sparse=never sparse 파일 생성을 금지


[링크 : http://man7.org/linux/man-pages/man1/cp.1.html]




+

DBMS에서도 이런류의 파일을 만든다고.. 

       -S, --sparse

              Handle sparse files efficiently.  Some files in the file system may have segments which were actually never written (quite often these are database files created by such systems as DBM).  When given this option, tar attempts to determine if the file is sparse prior to archiving it, and if so, to reduce the resulting archive size by not dumping empty parts of the file. 

[링크 : http://man7.org/linux/man-pages/man1/tar.1.html]

'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

virsh create / define  (0) 2019.02.15
kvm 설치  (4) 2019.02.15
qcow2 sparse file  (0) 2019.02.14
qcow2 파일크기의 오류?  (0) 2019.02.12
kvm 서비스 종료하기  (0) 2019.02.12
Posted by 구차니

압축 다시 해봐야겠다...


+

오오... 망할 -_- 진작에 찾아볼걸

$ tar -cvfS test_spar.tar 123123.qcow2

$ tar -S -cvf test_spar.tar 123123.qcow2 


$ ll

-rw-------. 1 root root   9665380352 Aug  8  2018 123123.qcow2

-rw-r--r--. 1 root root      1484800 Feb 14 18:10 test_spar.tar

-rw-r--r--. 1 root root   9665382400 Feb 14 18:09 test.tar



 To have tar attempt to recognize the holes in a file, use `--sparse' (`-S'). 

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


Advantages

The advantage of sparse files is that storage is only allocated when actually needed: disk space is saved, and large files can be created even if there is insufficient free space on the file system.


Disadvantages

Disadvantages are that sparse files may become fragmented; file system free space reports may be misleading; filling up file systems containing sparse files can have unexpected effects; and copying a sparse file with a program that does not explicitly support them may copy the entire, uncompressed size of the file, including the sparse, mostly zero sections which are not on disk -- losing the benefits of the sparse property in the file. 

[링크 : https://wiki.archlinux.org/index.php/sparse_file]


ls -s tells you the allocated size of the file, always a multiple of the allocation unit. ls -l tells the actual size. An easy way to test: 

[링크 : https://askubuntu.com/questions/269480/why-does-ls-l-output-a-different-size-from-ls-s]

[링크 : https://www.lisenet.com/2014/so-what-is-the-size-of-that-file/]


$ man ls

       --block-size=SIZE

              scale sizes by SIZE before printing them; e.g., '--block-size=M'

              prints sizes in units of 1,048,576 bytes; see SIZE format below 



2019/02/12 - [프로그램 사용/kvm(virt-manager)] - qcow2 파일크기의 오류?


'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

kvm 설치  (4) 2019.02.15
sparse file with cp  (0) 2019.02.15
qcow2 파일크기의 오류?  (0) 2019.02.12
kvm 서비스 종료하기  (0) 2019.02.12
kvm 관리용 툴(웹)  (0) 2019.02.08
Posted by 구차니
프로그램 사용/squid2019. 2. 14. 13:40

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

squid LM-factor? (Last Modified)  (0) 2019.02.18
squid access log 종류..  (2) 2019.02.17
squid cache hit rate 올리기  (0) 2019.02.14
squid 비디오 차단  (0) 2019.02.13
squid 윈도우 업데이트 캐싱  (0) 2019.02.13
Posted by 구차니
프로그램 사용/squid2019. 2. 14. 13:36

정규표현식 문제인지 영 캐시가 잘 안되는 것 같아서

캐시율이 높아야 10% 정도 나오는것 같아서 좀 더 높이는 법을 찾는 중..


[링크 : http://squid-web-proxy-cache.1019090.n4....optimising-caching-or-increasing-hit-ratio-td4681591.html]

[링크 : http://muliantophang.blogspot.com/2013/09/optimize-squid-caching-hit-rate.html]

[링크 : https://aacable.wordpress.com/tag/squid-maximum-cache-hit/]

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

squid access log 종류..  (2) 2019.02.17
mrtf centos  (0) 2019.02.14
squid 비디오 차단  (0) 2019.02.13
squid 윈도우 업데이트 캐싱  (0) 2019.02.13
squid cache 정책  (0) 2019.02.13
Posted by 구차니