.TH SWAPON 8 "25 September 1995" "Linux 1.x" "Linux Programmer's Manual"
.\"O .SH NAME
.\"O swapon, swapoff \- enable/disable devices and files for paging and swapping
-.SH ̾Á°
-swapon, swapoff \- ¥Ç¥Ð¥¤¥¹¤ä¥Õ¥¡¥¤¥ë¤Ø¤Î¥Ú¡¼¥¸¥ó¥°¡¢¥¹¥ï¥Ã¥Ô¥ó¥°¤ò͸ú / ̵¸ú¤Ë¤¹¤ë
+.SH 名前
+swapon, swapoff \- デバイスやファイルへのページング、スワッピングを有効 / 無効にする
.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.SH 書式
.B /sbin/swapon [\-h \-V]
.br
.B /sbin/swapon \-a [\-v] [\-e]
.br
.BI /sbin/swapoff " specialfile " ...
.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
+.SH 説明
.\"O .B Swapon
.\"O is used to specify devices on which paging and swapping are to take place.
.B swapon
-¤Ï¡¢¥Ú¡¼¥¸¥ó¥° (paging) ¤ä¥¹¥ï¥Ã¥Ô¥ó¥° (swapping) ¤ò¹Ô¤¦¥Ç¥Ð¥¤¥¹¤ò
-»ØÄꤹ¤ë¤¿¤á¤ËÍѤ¤¤é¤ì¤ë¡£
+は、ページング (paging) やスワッピング (swapping) を行うデバイスを
+指定するために用いられる。
.\"O The device or file used is given by the
.\"O .I specialfile
.\"O or
.\"O .BI \-U " uuid"
.\"O to indicate a device by label or uuid.
-»ÈÍѤµ¤ì¤ë¥Ç¥Ð¥¤¥¹¤Þ¤¿¤Ï¥Õ¥¡¥¤¥ë¤Ï¡¢
+使用されるデバイスまたはファイルは、
.I specialfile
-°ú¤¿ô¤Ç»ØÄꤵ¤ì¤ë¡£
+引き数で指定される。
.BI \-L " label"
-¤Þ¤¿¤Ï
+または
.BI \-U " uuid"
-¤È¤¤¤¦·Á¼°¤Ç¡¢¥é¥Ù¥ë¤Þ¤¿¤Ï uuid ¤Ç¥Ç¥Ð¥¤¥¹¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
+という形式で、ラベルまたは uuid でデバイスを指定することができる。
.\"O Calls to
.\"O .B swapon
.\"O making all swap devices available, so that the paging and swapping activity
.\"O is interleaved across several devices and files.
.B swapon
-¤Î¸Æ¤Ó½Ð¤·¤Ï¡¢Ä̾亮¥¹¥Æ¥à¤ò¥Þ¥ë¥Á¥æ¡¼¥¶ÍѤ˽é´ü²½¤¹¤ë¥Õ¥¡¥¤¥ë
+の呼び出しは、通常システムをマルチユーザ用に初期化するファイル
.I /etc/rc
-¤Ç¹Ô¤ï¤ì¤ë¡£ÉáÄ̤Ϥ³¤³¤Ç¤¹¤Ù¤Æ¤Î¥¹¥ï¥Ã¥×¥Ç¥Ð¥¤¥¹¤ò͸ú¤Ë¤·¡¢¥Ú¡¼¥¸¥ó¥°
-¤ä¥¹¥ï¥Ã¥Ô¥ó¥°¤¬Ê£¿ô¤Î¥Ç¥Ð¥¤¥¹¤ä¥Õ¥¡¥¤¥ë¤Ë¤Þ¤¿¤¬¤Ã¤Æ¥¤¥ó¥¿¡¼¥ê¡¼¥Ö
-(interleave) Æ°ºî¤Ç¤¤ë¤è¤¦¤Ë¤¹¤ë¡£
+ã\81§è¡\8cã\82\8fã\82\8cã\82\8bã\80\82æ\99®é\80\9aã\81¯ã\81\93ã\81\93ã\81§ã\81\99ã\81¹ã\81¦ã\81®ã\82¹ã\83¯ã\83\83ã\83\97ã\83\87ã\83\90ã\82¤ã\82¹ã\82\92æ\9c\89å\8a¹ã\81«ã\81\97ã\80\81ã\83\9aã\83¼ã\82¸ã\83³ã\82°
+やスワッピングが複数のデバイスやファイルにまたがってインターリーブ
+(interleave) 動作できるようにする。
.\"O Normally, the first form is used:
-Ä̾ï¤Ï
+通常は
.B swapon \-a
-¤Î½ñ¼°¤Ç¼Â¹Ô¤µ¤ì¤ë¤³¤È¤¬Â¿¤¤¡£
+の書式で実行されることが多い。
.TP
.B \-a
.\"O All devices marked as ``swap'' swap devices in
.\"O are made available, except for those with the ``noauto'' option.
.\"O Devices that are already running as swap are silently skipped.
.I /etc/fstab
-Ãæ¤Ç ``swap'' ¥Þ¡¼¥¯¤¬ÉÕ¤¤¤Æ¤¤¤ë¥¹¥ï¥Ã¥×¥Ç¥Ð¥¤¥¹¤ò¤¹¤Ù¤Æ͸ú¤Ë¤¹¤ë¡£
-¤¿¤À¤· ``noauto'' ¥ª¥×¥·¥ç¥ó¤¬ÉÕ¤¤¤Æ¤¤¤ë¤â¤Î¤Ï½ü¤¯¡£
-¥¹¥ï¥Ã¥×¤È¤·¤Æ´û¤ËÆ°ºî¤·¤Æ¤¤¤ë¥Ç¥Ð¥¤¥¹¤Ï¡¢Ìۤäƥ¹¥¥Ã¥×¤µ¤ì¤ë¡£
+中で ``swap'' マークが付いているスワップデバイスをすべて有効にする。
+ただし ``noauto'' オプションが付いているものは除く。
+スワップとして既に動作しているデバイスは、黙ってスキップされる。
.TP
.B \-e
.\"O When
.\"O is used with swapon,
.\"O .B \-e
.\"O makes swapon silently skip devices that do not exist.
-swapon ¤Ë
+swapon に
.B \-a
-¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
+オプションが指定されている場合、
.B \-e
-¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤ë¤È¡¢Â¸ºß¤·¤Ê¤¤¥Ç¥Ð¥¤¥¹¤òÌۤäƥ¹¥¥Ã¥×¤¹¤ë¡£
+オプションが指定されると、存在しないデバイスを黙ってスキップする。
.TP
.B \-h
.\"O Provide help
-¥Ø¥ë¥×¥á¥Ã¥»¡¼¥¸¤ò¸Æ¤Ó½Ð¤¹¡£
+ヘルプメッセージを呼び出す。
.TP
.BI \-L " label"
.\"O Use the partition that has the specified
.\"O (For this, access to
.\"O .I /proc/partitions
.\"O is needed.)
-»ØÄꤵ¤ì¤¿
+指定された
.I label
-¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò»È¤¦¡£
-(¤³¤ì¤ò»ÈÍѤ¹¤ë¤¿¤á¤Ë¤Ï
+のパーティションを使う。
+(これを使用するためには
.I /proc/partitions
-¤Ë¥¢¥¯¥»¥¹¤¹¤ëɬÍפ¬¤¢¤ë¡£)
+にアクセスする必要がある。)
.TP
.BI \-p " priority"
.\"O Specify priority for
.\"O .B swapon
.\"O was compiled under and is used under a 1.3.2 or later kernel.
.B swapon
-¤ÎÍ¥ÀèÅÙ (priority) ¤ò»ØÄꤹ¤ë¡£
-¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï
+の優先度 (priority) を指定する。
+このオプションは
.B swapon
-¤¬ 1.3.2 °Ê¹ß¤Î¥«¡¼¥Í¥ë²¼¤Ç¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¡¢¤«¤Ä»ÈÍѤµ¤ì¤ë¾ì¹ç¤Ë¤Î¤ß͸ú¤Ç¤¢¤ë¡£
+が 1.3.2 以降のカーネル下でコンパイルされ、かつ使用される場合にのみ有効である。
.\"O .I priority
.\"O is a value between 0 and 32767. Higher numbers indicate higher
.\"O priority. See
.\"O for use with
.\"O .BR "swapon -a" .
.I priority
-¤Ï 0 ¤«¤é 32767 ¤Î´Ö¤Î¿ôÃͤǤ¢¤ë¡£
-¿ôÃͤ¬Â礤¤¤Û¤ÉÍ¥ÀèÅÙ¤¬¹â¤¤¡£
-¥¹¥ï¥Ã¥×Í¥ÀèÅ٤ξܺ٤ÊÀâÌÀ¤Ë´Ø¤·¤Æ¤Ï
+は 0 から 32767 の間の数値である。
+数値が大きいほど優先度が高い。
+スワップ優先度の詳細な説明に関しては
.BR swapon (2)
-¤ò¸«¤è¡£
+を見よ。
.I /etc/fstab
-¤Î¥ª¥×¥·¥ç¥ó¥Õ¥£¡¼¥ë¥É¤Ë
+のオプションフィールドに
.BI pri= value
-¤òµ½Ò¤¹¤ì¤Ð¡¢
+を記述すれば、
.B "swapon -a"
-¤ÎºÝ¤Ë¤½¤ÎÃͤ¬ÍѤ¤¤é¤ì¤ë¡£
+の際にその値が用いられる。
.TP
.B \-s
.\"O Display swap usage summary by device. Equivalent to "cat /proc/swaps".
.\"O Not available before Linux 2.1.25.
-¥¹¥ï¥Ã¥×¤Î»ÈÍѾõ¶·¤ò¥Ç¥Ð¥¤¥¹Ëè¤Ëɽ¼¨¤¹¤ë¡£
-"cat /proc/swaps" ¤ÈÅù¤·¤¤¡£
-Linux 2.1.25 ¤è¤êÁ°¤Ç¤ÏÍøÍѤǤ¤Ê¤¤¡£
+スワップの使用状況をデバイス毎に表示する。
+"cat /proc/swaps" と等しい。
+Linux 2.1.25 より前では利用できない。
.TP
.BI \-U " uuid"
.\"O Use the partition that has the specified
.\"O (For this, access to
.\"O .I /proc/partitions
.\"O is needed.)
-»ØÄꤵ¤ì¤¿
+指定された
.I uuid
-¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò»È¤¦¡£
-(¤³¤ì¤ò»ÈÍѤ¹¤ë¤¿¤á¤Ë¤Ï
+のパーティションを使う。
+(これを使用するためには
.I /proc/partitions
-¤Ë¥¢¥¯¥»¥¹¤¹¤ëɬÍפ¬¤¢¤ë¡£)
+にアクセスする必要がある。)
.TP
.B \-v
.\"O Be verbose.
-¾ÜºÙ¤Ëɽ¼¨¤¹¤ë¡£
+詳細に表示する。
.TP
.B \-V
.\"O Display version
-¥Ð¡¼¥¸¥ç¥ó¤òɽ¼¨¤¹¤ë¡£
+バージョンを表示する。
.PP
.\"O .B Swapoff
.\"O disables swapping on the specified devices and files.
.\"O or
.\"O .IR /etc/fstab ).
.B swapoff
-¤Ï»ØÄꤷ¤¿¥Ç¥Ð¥¤¥¹¤ä¥Õ¥¡¥¤¥ë¤Î¥¹¥ï¥Ã¥Ô¥ó¥°¤ò̵¸ú¤Ë¤¹¤ë¡£
+は指定したデバイスやファイルのスワッピングを無効にする。
.B \-a
-¥Õ¥é¥°¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢
+フラグが指定された場合には、
.RI ( /proc/swaps
-¤Þ¤¿¤Ï
+または
.I /etc/fstab
-Ãæ¤Î) ¤¹¤Ù¤Æ¤Î´ûÃΤΥ¹¥ï¥Ã¥×¥Ç¥Ð¥¤¥¹¤ä¥Õ¥¡¥¤¥ë¤Î¥¹¥ï¥Ã¥Ô¥ó¥°¤ò̵¸ú¤Ë¤¹¤ë¡£
+中の) すべての既知のスワップデバイスやファイルのスワッピングを無効にする。
.\"O .SH NOTE
-.SH Ãí°Õ
+.SH 注意
.\"O You should not use
.\"O .B swapon
.\"O on a file with holes.
.\"O Swap over NFS may not work.
-¥Û¡¼¥ë¤Î¤¢¤ë¥Õ¥¡¥¤¥ë¤Ë
+ホールのあるファイルに
.B swapon
-¤òÍѤ¤¤ë¤Ù¤¤Ç¤Ï¤Ê¤¤¡£
-NFS ¾å¤Î swap ¤ÏÆ°ºî¤·¤Ê¤¤¤«¤â¤·¤ì¤Ê¤¤¡£
+を用いるべきではない。
+NFS 上の swap は動作しないかもしれない。
.\"O .SH SEE ALSO
-.SH ´ØÏ¢¹àÌÜ
+.SH 関連項目
.BR swapon (2),
.BR swapoff (2),
.BR fstab (5),
.BR rc (8),
.BR mount (8)
.\"O .SH FILES
-.SH ¥Õ¥¡¥¤¥ë
+.SH ファイル
.I /dev/hd??
.\"O standard paging devices
-ɸ½à¤Î¥Ú¡¼¥¸¥ó¥°¥Ç¥Ð¥¤¥¹
+æ¨\99æº\96ã\81®ã\83\9aã\83¼ã\82¸ã\83³ã\82°ã\83\87ã\83\90ã\82¤ã\82¹
.br
.I /dev/sd??
.\"O standard (SCSI) paging devices
-ɸ½à¤Î¥Ú¡¼¥¸¥ó¥°¥Ç¥Ð¥¤¥¹ (SCSI)
+æ¨\99æº\96ã\81®ã\83\9aã\83¼ã\82¸ã\83³ã\82°ã\83\87ã\83\90ã\82¤ã\82¹ (SCSI)
.br
.I /etc/fstab
.\"O ascii filesystem description table
-¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò ascii ¤Çµ½Ò¤·¤¿É½¡£
+ファイルシステムを ascii で記述した表。
.\"O .SH HISTORY
-.SH ÍúÎò
+.SH 履歴
.\"O The
.\"O .B swapon
.\"O command appeared in 4.0BSD.
.B swapon
-¥³¥Þ¥ó¥É¤Ï 4.0BSD ¤«¤éƳÆþ¤µ¤ì¤¿¡£
+コマンドは 4.0BSD から導入された。