トップ 差分 一覧 ping ソース 検索 ヘルプ PDF RSS ログイン

Fedora Core 6 swapの拡張



目次



記事一覧

キーワード

Fedora Core 6 swapの拡張

指定されたパートは存在しません。

スワップが足りない

Oracle Express Edition のインストールをしようとしたら、スワップが足りなかったので、拡張する。

# free -m
             total       used       free     shared    buffers     cached
Mem:           256         99        157          0          8         47
-/+ buffers/cache:         42        213
Swap:          447          0        447

スワップを1G拡張する
# cd /
# dd if=/dev/zero of=swapfile bs=1024 count=1000k
1024000+0 records in
1024000+0 records out
1048576000 bytes (1.0 GB) copied, 65.8596 seconds, 15.9 MB/s
# mkswap -c /swapfile
Setting up swapspace version 1, size = 1048571 kB
# swapon /swapfile

/etc/fstabに以下を追記

システム起動時にマウントされる

/swapfile   none   swap   sw   0    0

# free -m
             total       used       free     shared    buffers     cached
Mem:           256        253          2          0          5        170
-/+ buffers/cache:         77        179
Swap:         1447          0       1447



YAGI Hiroto (piroto@a-net.email.ne.jp)
twitter http://twitter.com/pppiroto

Copyright© 矢木 浩人 All Rights Reserved.