1 / 3

Swap file 추가

Swap file 추가. "df -k" 명령을 사용하여 추가하고 싶은 swap file 크기 만큼의 free space 를 가지고 있는 file system 이 있는지 확인한다 . % df -k 파일시스템 K 바이트 사용 가용 용량 설치지점 /dev/dsk/c0t0d0s0 962582 779074 87258 90% / /proc 0 0 0 0% /proc

Download Presentation

Swap file 추가

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Swap file 추가 • "df -k" 명령을 사용하여 추가하고 싶은 swap file 크기 만큼의 • free space를 가지고 있는 file system이 있는지 확인한다. • % df -k • 파일시스템 K바이트 사용 가용 용량 설치지점 • /dev/dsk/c0t0d0s0 962582 779074 87258 90% / • /proc 0 0 0 0% /proc • fd 0 0 0 0% /dev/fd /dev/dsk/c0t0d0s3 865774 731198 48006 94% /opt swap 67664 8408 59256 13% /tmp /dev/dsk/c0t1d0s3 8316189 933423 6551156 13% /doc /dev/dsk/c0t2d0s3 8316189 2529292 4955287 34% /export

  2. Swap file 추가 • 2. 위의 결과에 따라 /export file system에 50M의 swap file을 추가 한다면 • root 로 login하여 아래와 같이 한다. • # cd /export • # /usr/sbin/mkfile 50m new-swap-file ^^^^^^^^^^^^^^ -> 새로운 swap file의 이름 • # /etc/swap -a

  3. Swap file 추가 • 3. 위와 같이 한후 "swap -l" 명령으로 새로 만든 swap file이 추가되었는지 확인한다. • # swap -l swapfile dev swaplo blocks free • /dev/dsk/c0t0d0s1 32,1 16 410384 371216 • /export/new-swap-file - 16 102384 102384 • 4. 새로 추가한 swap file이 시스템 rebooting 후에도 사용되게 하려면 • 아래와 같은 내용을 /etc/vfstab에 추가한다. • # vi /etc/vfstab /export/new-swap-file - - swap - no -

More Related