'Linux'에 해당되는 글 777건

  1. 2019.03.01 'abrt-cli status' timed out
  2. 2019.02.27 centos nfs client
  3. 2019.02.25 sparse file 확인하기
  4. 2019.02.24 cron 실행 및 시간 관련 문제
  5. 2019.02.23 centos timezone 변경 2
  6. 2019.02.22 svn on centos
  7. 2019.02.22 linux multi core 압축
  8. 2019.02.16 bash history 번호 옆 *
  9. 2019.02.13 smb on centos
  10. 2019.02.13 centos backup
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 구차니
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 구차니
Linux2019. 2. 25. 18:19

두개 실행해서 용량 다르게 나오면 sparse file인걸로 보면 될 듯?

$ du -h *

$ ls -alh 

[링크 : https://stackoverflow.com/.../c-linux-sparse-file-how-to-check-if-file-is-sparse-and-print-0-filled-disk-bl]

[링크 : https://www.thegeekdiary.com/how-to-find-all-the-sparse-file-in-linux/]

'Linux' 카테고리의 다른 글

디렉토리내 중복 파일 확인하기  (0) 2019.04.18
tar 에서 파일 삭제하기  (0) 2019.03.04
cron 실행 및 시간 관련 문제  (0) 2019.02.24
linux multi core 압축  (0) 2019.02.22
bash history 번호 옆 *  (0) 2019.02.16
Posted by 구차니
Linux2019. 2. 24. 19:49

log를 보는데 centos 처음 설치시에 EST로 되어있어서 KST로 변경해주고 나는데도

여전히 다른 시간으로 기록되는게 보여서 검색해보니


timezone 바꾸고 rsyslog와 crond 둘다 재시작을 해주어야 한다.

(생각을 해보니 crond를 재기동 안했던 듯?)

# systemctl restart rsyslog

# systemctl restart crond 

[링크 : https://unix.stackexchange.com/questions/352338/]


아무튼 아래와 같이 17시간 차이 나던게 수정되었다.

Feb 24 05:42:50 localhost crontab[37732]: (root) END EDIT (root)

Feb 24 05:42:59 localhost crontab[37735]: (root) LIST (root)

Feb 24 05:43:01 localhost crond[36237]: (root) RELOAD (/var/spool/cron/root)

Feb 24 19:45:55 localhost crond[36237]: (CRON) INFO (Shutting down)

Feb 24 19:45:55 localhost crond[37779]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 72% if used.)

Feb 24 19:45:55 localhost crond[37779]: (CRON) INFO (running with inotify support)

Feb 24 19:45:55 localhost crond[37779]: (CRON) INFO (@reboot jobs will be run at computer's startup.) 


+

그리고 5분 간격으로 실행하기

*/5 * * * * command 


[링크 : https://okky.kr/article/260987]

[링크 : https://zetawiki.com/wiki/크론탭_작업_5분마다_수행]

'Linux' 카테고리의 다른 글

tar 에서 파일 삭제하기  (0) 2019.03.04
sparse file 확인하기  (0) 2019.02.25
linux multi core 압축  (0) 2019.02.22
bash history 번호 옆 *  (0) 2019.02.16
네트워크 속도 모니터링  (0) 2019.02.03
Posted by 구차니
Linux/centos2019. 2. 23. 11:26
의외로 간단하게 변경이 가능하다.

# timedatectl list-timezones | grep -i seoul

# timedatectl set-timezone Asia/Seoul 

[링크 : https://www.fun25.co.kr/blog/linux-centos-7-change-timezone/?category=001]

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

'abrt-cli status' timed out  (0) 2019.03.01
centos nfs client  (0) 2019.02.27
svn on centos  (0) 2019.02.22
smb on centos  (0) 2019.02.13
centos backup  (0) 2019.02.13
Posted by 구차니
Linux/centos2019. 2. 22. 16:03

흐음.. git으로 변환해주어야 하려나? 고민중..


[링크 : https://blog.hanumoka.net/2018/04/30/centOs-20180430-centos-install-subversion/]

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


+

저장소의 format 파일을 접근할 수 없다고 나오면 selinux를 설정해주어야 한다.

chcon -R -t svnserve_content_t /svn 

[링크 : http://jryeong.blogspot.com/2013/12/cenos-svn.html]

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

centos nfs client  (0) 2019.02.27
centos timezone 변경  (2) 2019.02.23
smb on centos  (0) 2019.02.13
centos backup  (0) 2019.02.13
centos epel 저장소 추가  (0) 2019.02.13
Posted by 구차니
Linux2019. 2. 22. 13:43

gzip 으로 하는데 느려서 반디집 처럼 멀티코어 지원하는 압축프로그램 찾는 중 발견

p만 붙이면 되는거였나 싶은데 pigz는 이름이 독특하네 ㅋㅋㅋ

아무튼 gzip을 많이 썼으니 pigz를 외우면 될 듯

 

PXZ - Parallel XZ is a compression utility that takes advantage of running LZMA compression of different parts of an input file on multiple cores and processors simultaneously. Its primary goal is to utilize all resources to speed up compression time with minimal possible influence on compression ratio.
sudo apt-get install pxz
PLZIP - Lzip is a lossless data compressor based on the LZMA algorithm, with very safe integrity checking and a user interface similar to the one of gzip or bzip2. Lzip decompresses almost as fast as gzip and compresses better than bzip2, which makes it well suited for software distribution and data archiving.
Plzip is a massively parallel (multi-threaded) version of lzip using the lzip file format; the files produced by plzip are fully compatible with lzip.
Plzip is intended for faster compression/decompression of big files on multiprocessor machines, which makes it specially well suited for distribution of big software files and large scale data archiving. On files big enough, plzip can use hundreds of processors.
sudo apt-get install plzip
PIGZ - pigz, which stands for Parallel Implementation of GZip, is a fully functional replacement for gzip that takes advantage of multiple processors and multiple cores when compressing data.
sudo apt-get install pigz
PBZIP2 - pbzip2 is a parallel implementation of the bzip2 block-sorting file compressor that uses pthreads and achieves near-linear speedup on SMP machines. The output of this version is fully compatible with bzip2 v1.0.2 (ie: anything compressed with pbzip2 can be decompressed with bzip2).
sudo apt-get install pbzip2
LRZIP - A multithreaded compression program that can achieve very high compression ratios and speed when used with large files. It uses the combined compression algorithms of zpaq and lzma for maximum compression, lzo for maximum speed, and the long range redundancy reduction of rzip. It is designed to scale with increases with RAM size, improving compression further. A choice of either size or speed optimizations allows for either better compression than even lzma can provide, or better speed than gzip, but with bzip2 sized compression levels.
sudo apt-get install lrzip 

[링크 : https://askubuntu.com/questions/258202/multi-core-compression-tools]

 

--use-compress-program 을 통해서 압축 프로그램을 지정가능한 듯?

tar -c --use-compress-program=pigz -f tar.file dir_to_zip  

 

[링크 : https://stackoverflow.com/.../utilizing-multi-core-for-targzip-bzip-compression-decompression]

 

+ 21.12.03

use-compress-program="xz -t4" 식으로 주면 되려나?

$ tar cvf archive.tar.xz --use-compress-program='xz -1' *.csv

[링크 : https://unix.stackexchange.com/.../how-to-use-multi-threading-for-creating-and-extracting-tar-xz]

[링크 : https://www.baeldung.com/linux/xz-compression]

'Linux' 카테고리의 다른 글

sparse file 확인하기  (0) 2019.02.25
cron 실행 및 시간 관련 문제  (0) 2019.02.24
bash history 번호 옆 *  (0) 2019.02.16
네트워크 속도 모니터링  (0) 2019.02.03
ls에서 전체년도 보기  (0) 2019.02.03
Posted by 구차니
Linux2019. 2. 16. 07:43

history를 보는데 어라 *이 머지? 하고 찾아보니

 1035* virsh dumpxml

 1036  ll 


원래 명령어가 아닌 수정된 경우에는 이렇게 표시 된다고..

반대로 생각하면.. 수정해버리면 실제 실행된 명령을 모르게 할 수 있다는 의미네?

Lines prefixed with a ‘*’ have been modified. 

[링크 : https://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html]

'Linux' 카테고리의 다른 글

cron 실행 및 시간 관련 문제  (0) 2019.02.24
linux multi core 압축  (0) 2019.02.22
네트워크 속도 모니터링  (0) 2019.02.03
ls에서 전체년도 보기  (0) 2019.02.03
bcache - SSD write cache  (0) 2019.02.01
Posted by 구차니
Linux/centos2019. 2. 13. 19:08

오늘도 여전히(?) selinux가 날 잡는군 -_-


[링크 : https://wiki.centos.org/HowTos/SetUpSamba]

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


firewall-cmd --permanent --zone=public --add-service=samba

firewall-cmd --reload 

[링크 : https://www.manualfactory.net/10439] 방화벽

[링크 : https://www.manualfactory.net/10153]

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

centos timezone 변경  (2) 2019.02.23
svn on centos  (0) 2019.02.22
centos backup  (0) 2019.02.13
centos epel 저장소 추가  (0) 2019.02.13
KVM spice 원격 접속시 No route to host  (0) 2019.01.28
Posted by 구차니
Linux/centos2019. 2. 13. 17:34

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

svn on centos  (0) 2019.02.22
smb on centos  (0) 2019.02.13
centos epel 저장소 추가  (0) 2019.02.13
KVM spice 원격 접속시 No route to host  (0) 2019.01.28
yum checkupdate  (0) 2019.01.25
Posted by 구차니