Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Linux AS 3 swap question!!

Linux AS 3 swap question!!

2006-02-26       - By A.Fadyushin@(protected)

 Back
Reply:     1     2     3     4     5     6  

You can decrease (or increase) the size of swap partition using the same
method as for any other partition (e.g. repartition that part of disk
with fdisk). Of course, you should disable that partition (with
'swapoff' command) before changing its size, recreate its structure with
'mkswap' after changing the size and enable that partition using
'swapon'.

You can use both swap partition(s) and swap file(s) at the same time in
any combinations - e.g. 1 swap partition and 1 swap file, or 2 swap
partitions and 1 swap file, etc.

I think that a swap partition is a better approach because the access to
partitions is faster than access to the file. Swap partition and swap
file will survive the reboot. Swap partitions are exist as long as them
exist in the disk's partition table and marked as swap partitions in
/etc/fstab (entry in /etc/fstab is necessary for automatic enabling of
that partition on startup, even without such a entry the partition could
be enabled with 'swapon').  Swap files are exist as long as them are not
deleted (for example, using 'rm') from the filesystem (the entry in
/etc/fstab is used the same way as for swap partitions). Neither swap
partitions nor swap files are automatically deleted by the system.



Alexey Fadyushin

Brainbench MVP for Linux

http:///www.brainbench.com





__ ____ ____ ____ ____ ____ ____

From: redhat-install-list-bounces@(protected)
[mailto:redhat-install-list-bounces@(protected)] On Behalf Of mac
Sent: Sunday, February 26, 2006 8:36 AM
To: Getting started with Red Hat Linux
Subject: Re: Linux AS 3 swap question!!



Appreciate your response ..Thanks ..i juts have a couple of queries

1)i have  a swap partion of 16 GB ...how can i go about decreasing the
size of this partition  ie the size of swap

2)Can both the swap file and partition coexist ??

3)WHich is a better approcah ..partition or file and which exists after
every reboot

Really appreciate your help here

Thanks

On 2/26/06, Rick Stevens <rstevens@(protected)> wrote:

On Sat, 2006-02-25 at 23:09 +0530, mac wrote:
> Hi,
> We have a Linux EL AS 3 running on a poweredge server with 8 GB
> ram ...we would like to know how to change the swap space on a linux
> AS 3 system dynamically
>
>  and would AS3 support a swap size of 16 GB
>
> any pointers appreciated

You can have up to 16 swap sections but each is limited to 2GB each,
giving a total of 32GB of swap.  You can't change the swap size
dynamically, since the swap is on a fixed-size partition or file.  You
can enable and disable various swap files or partitions using the
swapon(8) or swapoff(8) commands.

Swap has to be either a separate partition OR a zero-filled file.  You
probably know how to make a swap partition.  To create a swap _file_:

1. Find a partition that has enough free space for the swap you want.

2. As root, do:

       # dd if=/dev/zero of=/path/to/swap/file count=size

For example, to create a 2GB swap file called "/var/swapfile":

       # dd if=/dev/zero of=/var/swapfile count=2G

3. Convert the file to a swap file:

       # mkswap /var/swapfile

3. Activate via:

       # swapon /var/swapfile

4. Edit your /etc/fstab file and add a line for this swap file so it'll
activate on the next boot:

       /var/swapfile   swap          swap    defaults        0 0

Voila!

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
- Rick Stevens, Senior Systems Engineer     rstevens@(protected) -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-        God is real...........unless declared integer or long       -
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Redhat-install-list mailing list
Redhat-install-list@(protected)
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@(protected)
Subject: unsubscribe




<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft
-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http:
//www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@(protected)
  {font-family:Tahoma;
  panose-1 (See http://ose-1.ora-code.com):2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
  {margin:0cm;
  margin-bottom:.0001pt;
  font-size:12.0pt;
  font-family:"Times New Roman";}
a:link, span.MsoHyperlink
  {color:blue;
  text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
  {color:blue;
  text-decoration:underline;}
span.EmailStyle18
  {mso-style-type:personal-reply;
  font-family:Arial;
  color:navy;}
@(protected) Section1
  {size:595.3pt 841.9pt;
  margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.Section1
  {page:Section1;}
-->
</style>

</head>

<body lang=RU link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>You can decrease (or
increase) the size of swap partition using the same method as for any other
partition (e.g. repartition that part of disk with fdisk). Of course, you
should disable that partition (with &#8216;swapoff&#8217; command) before
changing its size, recreate its structure with &#8216;mkswap&#8217; after
changing the size and enable that partition using &#8216;swapon&#8217;.<o:p></o
:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>You can use both swap
partition(s) and swap file(s) at the same time in any combinations &#8211; e.g.
1 swap partition and 1 swap file, or 2 swap partitions and 1 swap file, etc.<o
:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>I think that a swap
partition is a better approach because the access to partitions is faster than
access to the file. Swap partition and swap file will survive the reboot. Swap
partitions are exist as long as them exist in the disk&#8217;s partition table
and marked as swap partitions in /etc/fstab (entry in /etc/fstab is necessary
for automatic enabling of that partition on startup, even without such a entry
the partition could be enabled with &#8216;swapon&#8217;). &nbsp;Swap files are
exist as long as them are not deleted (for example, using &#8216;rm&#8217;) from
the filesystem (the entry in /etc/fstab is used the same way as for swap
partitions). Neither swap partitions nor swap files are automatically deleted
by the system.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span><
/font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>Alexey Fadyushin<o:p></o
:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>Brainbench MVP for Linux
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>http:///www.brainbench
.com<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span><
/font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
redhat-install-list-bounces@(protected)
[mailto:redhat-install-list-bounces@(protected)] <b><span style='font-weight:
bold'>On Behalf Of </span></b>mac<br>
<b><span style='font-weight:bold'>Sent:</span></b> Sunday, February 26, 2006
8:36 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Getting started with Red Hat
Linux<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: Linux AS 3 swap
question!!</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Appreciate your response
..Thanks ..i juts have a couple of queries<br>
<br>
1)i have&nbsp; a swap partion of 16 GB ...how can i go about decreasing the
size of this partition&nbsp; ie the size of swap<br>
<br>
2)Can both the swap file and partition coexist ?? <br>
<br>
3)WHich is a better approcah ..partition or file and which exists after every
reboot<br>
<br>
Really appreciate your help here<br>
<br>
Thanks<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman">
<span
style='font-size:12.0pt'>On 2/26/06, <b><span style='font-weight:bold'>Rick
Stevens</span></b> &lt;<a href="mailto:rstevens@(protected)">rstevens
@(protected)</a>&gt;
wrote:</span></font></span><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Sat, 2006-02-25 at 23:09 +0530, mac wrote:<br>
&gt; Hi,<br>
&gt; We have a Linux EL AS 3 running on a poweredge server with 8 GB<br>
&gt; ram ...we would like to know how to change the swap space on a linux<br>
&gt; AS 3 system dynamically <br>
&gt;<br>
&gt;&nbsp;&nbsp;and would AS3 support a swap size of 16 GB<br>
&gt;<br>
&gt; any pointers appreciated<br>
<br>
You can have up to 16 swap sections but each is limited to 2GB each,<br>
giving a total of 32GB of swap.&nbsp;&nbsp;You can't change the swap size <br>
dynamically, since the swap is on a fixed-size partition or
file.&nbsp;&nbsp;You<br>
can enable and disable various swap files or partitions using the<br>
swapon(8) or swapoff(8) commands.<br>
<br>
Swap has to be either a separate partition OR a zero-filled
file.&nbsp;&nbsp;You <br>
probably know how to make a swap partition.&nbsp;&nbsp;To create a swap _file_:
<br>
<br>
1. Find a partition that has enough free space for the swap you want.<br>
<br>
2. As root, do:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# dd if=/dev/zero
of=/path/to/swap/file count=size <br>
<br>
For example, to create a 2GB swap file called &quot;/var/swapfile&quot;:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# dd if=/dev/zero
of=/var/swapfile count=2G<br>
<br>
3. Convert the file to a swap file:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# mkswap /var/swapfile<br>
<br>
3. Activate via:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# swapon /var/swapfile<br>
<br>
4. Edit your /etc/fstab file and add a line for this swap file so it'll<br>
activate on the next boot:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/var/swapfile&nbsp;&nbsp;
swap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp
;&nbsp;&nbsp;defaults&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0
0 <br>
<br>
Voila!<br>
<br>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --<br>
- Rick Stevens, Senior Systems Engineer&nbsp;&nbsp;&nbsp;&nbsp; <a
href="mailto:rstevens@(protected)">rstevens@(protected)</a> -<br>
- VitalStream,
Inc.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.vitalstream.com">http://www.vitalstream.com</a> -<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;-<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;God is real...........unless
declared integer or long&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -<br>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --<br>
<br>
__ ____ ____ ____ ____ ____ ____ ____ ____ ____<br>
Redhat-install-list mailing list<br>
<a href="mailto:Redhat-install-list@(protected)">Redhat-install-list@(protected)
</a><br>
<a href="https://www.redhat.com/mailman/listinfo/redhat-install-list">https:/
/www.redhat.com/mailman/listinfo/redhat-install-list</a><br>
To Unsubscribe Go To ABOVE URL or send a message to:<br>
<a href="mailto:redhat-install-list-request@(protected)">redhat-install-list
-request@(protected)</a><br>
Subject: unsubscribe<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

</body>

</html>

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Redhat-install-list mailing list
Redhat-install-list@(protected)
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@(protected)
Subject: unsubscribe