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


+

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

$ 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 구차니

ftp나 http로 업데이트도 가능한데 이경우 iDRAC에 DNS를 설정해주어야 한다.

다른 펌웨어들 까지 전부 끌어와서 편하긴 한데 검색에 오래 걸리는게 흠


2. Update the firmware from FTP or HTTP source

After logging into the iDRAC interface, navigate to the update menu

iDRAC 9: Maintenance → System Update. 
iDRAC 8: Overview → iDRAC Settings → Update and Rollback.

The firmware update page will be displayed. After selecting "FTP" in the file location enter the following settings:

FTP address: ftp.dell.com 
Catalog location: catalog 
Catalog File Name: catalog.xml.gz

It is also possible to use the HTTP method if the FTP method is not responding properly.

HTTP address is : downloads.dell.com 

[링크 : https://www.dell.com/...firmware-via-idrac-using-the-ftp-or-http-option-?lang=en]


+

HTTP로 하면 먼가 뜨긴 하는데 업데이트 실패하고 막 그러네.. 짜증나는 구만 ㅠㅠ


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

iDRAC 에러 메시지 제거  (0) 2019.02.26
dell cable management  (0) 2019.02.25
Dell EMC iDRAC Service Module 3.2.0.1 (For Linux)  (0) 2019.02.14
관리 페이지를 이용한 idrac update  (0) 2019.02.14
idrac virtual console  (0) 2019.02.13
Posted by 구차니

다운로드 받아서 gzip - tar로 압축풀고 ./setup.sh으로 실행하니 

사용동의서 묻고 나서 아래와 같은 화면이 뜬다.

#################################################


  OpenManage || iDRAC Service Module


#################################################



    Available feature options:


   [x] 1. Watchdog Instrumentation Service

   [x] 2. LifeCycle Log Information

   [x] 3. Operating System Information

   [ ] 4. iDRAC access via Host OS

           [ ] a. Access via GUI, WS-man, Redfish, Remote Racadm

           [ ] b. In-band SNMP Traps

           [ ] c. Access via SNMP Get

       5. iDRAC Hard Reset

       6. Support Assist

       7. Full Power Cycle

   [ ] 8. All Features



  Enter the number to select/deselect a feature from the above list.

                ( multiple feature selection should be comma separated)

                ( to select sub-features, please use 4.a,4.b, etc.)

  Enter q to quit.


  Enter :

기본으로는 iDRAC access  via Host OS는 빠지는것 같은데

테스트 해보고 싶은게 그거라 일단 All features를 추가

#################################################


  OpenManage || iDRAC Service Module


#################################################



    Available feature options:


   [x] 1. Watchdog Instrumentation Service

   [x] 2. LifeCycle Log Information

   [x] 3. Operating System Information

   [x] 4. iDRAC access via Host OS

           [x] a. Access via GUI, WS-man, Redfish, Remote Racadm

           [x] b. In-band SNMP Traps

           [x] c. Access via SNMP Get

       5. iDRAC Hard Reset

       6. Support Assist

       7. Full Power Cycle

   [x] 8. All Features



  Enter the number to select/deselect a feature

        ( multiple feature selection should be comma separated)

                ( to select sub-features, please use 4.a,4.b, etc.)

  Enter i to install the selected features.

  Enter q to quit.


  Enter : 


설치를 누르니 으앙.. 예상하지 못한 질문이 뿜뿜 -_ㅠ

  Enter : i

경고: /root/downlaod/RHEL7/x86_64/dcism-3.2.0-1234.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 34d8786f: NOKEY

준비 중...                         ################################# [100%]

Updating / installing...

   1:dcism-3.2.0-1234.el7             ################################# [100%]


Enter a valid port number for iDRAC access via Host OS or Enter to take default port number: 


아몰랑 걍 넘어갈래 하고 기다리면서 눌러보니

Enter a valid port number for iDRAC access via Host OS or Enter to take default port number:



Do you want the services started?




   Press ('y' for yes | 'Enter' to exit): y

  Checking for iSM communication with iDRAC...

    Waiting...                  ######################### 


음.. 원래는 이렇게 뜨면서 안되던게


이런식으로 무언가 뜨긴 한데.. 근데 좀더 상세한 제어가 되는줄 알고 설치한건데 좀.. 실망이네?


아무튼 기다리는 동안 이런식으로 설치완료~ 라고 뜨긴 한다.

[링크 : https://www.dell.com/support/home/us/en/04/drivers/driversdetails?driverid=gh8r3]


+

고작(?) OS와 OS 버전 두개 더 잘 뜨는건가?!


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

dell cable management  (0) 2019.02.25
idrac update via FTP  (0) 2019.02.14
관리 페이지를 이용한 idrac update  (0) 2019.02.14
idrac virtual console  (0) 2019.02.13
dell quick sync  (0) 2019.02.13
Posted by 구차니

현재 사용중인 버전은 R730 / 2.43.43.43(응?)


iDRAC Settings - Update and Rollback에서 다운로드 받은 EXE를 올리면 되는건가?


일단은 다운로드 완료 라고 뜨고 하단에 install을 누르라는데


일단 잡 큐에 뜬다는데 모르겠네


근데 아무생각없이 OK 하는 바람에 위치를 못 찾고 헤매다가 다시 업데이트 오니 이런 경고가 뜬다. 이런 -_-


안돌아가는 머리 굴리다가 막 눌러보니 Server 페이지에 Job Queue 발견!


한 8분 기다리니 뜨네


일단은.. 버전이 올라가긴 했네


[링크 : https://www.dell.com/...-idrac-correctly-to-solve-memory-hdd-power-and-...?lang=en]

[링크 : https://www.dell.com/.../dell-poweredge-idrac를-통한-원격-펌웨어-업데이트-방법?lang=ko#idrac78]


+

헐.. 완전 구버전에서 올려서 그런건가? critical로 뜨네.. 기준이 머지?


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

idrac update via FTP  (0) 2019.02.14
Dell EMC iDRAC Service Module 3.2.0.1 (For Linux)  (0) 2019.02.14
idrac virtual console  (0) 2019.02.13
dell quick sync  (0) 2019.02.13
dell power edge 베이 확장  (0) 2019.02.13
Posted by 구차니

아 망할 selinux 

smb에서 공유 디렉토리 이름에는 들어가는데 아무것도 안나오고

파일을 올리지 못할때에는 selinux가 탓이다!!!!! 법규!!!


아무튼 아래와 같이 명령을 주면 임시로 설정하는 건데 굳혀버릴려면 -P를 주고 하면 된다

(일단 테스트 였으니...)

# setsebool samba_export_all_rw 1 


아래는 명령어로 조회해 본 설정값(centos 7 기본 설정인듯)

[root@localhost ~]# getsebool -a | grep samba

samba_create_home_dirs --> off

samba_domain_controller --> off

samba_enable_home_dirs --> off

samba_export_all_ro --> off

samba_export_all_rw --> off

samba_load_libgfapi --> off

samba_portmapper --> off

samba_run_unconfined --> off

samba_share_fusefs --> off

samba_share_nfs --> off

sanlock_use_samba --> off

tmpreaper_use_samba --> off

use_samba_home_dirs --> off

virt_use_samba --> off


[root@localhost ~]# getsebool -a | grep smb

smbd_anon_write --> off


[root@localhost ~]# getsebool -a | grep nmb

[root@localhost ~]# 

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


도움말 찾아 write 로 검색하니 똭!

If you want to allow samba to share any file/directory read/write, you must turn on the samba_export_all_rw boolean.


setsebool -P samba_export_all_rw 1 

[링크 : https://linux.die.net/man/8/smbd_selinux]



+

서버 접속해보니 SETroule 세부 정보로 해서 무언가 뜨고

거기서 이런걸 해제하라고 추천도 해주네.. 오오 좋은 세상이야


Posted by 구차니