  | | | Linux AS 3 swap question!! | Linux AS 3 swap question!! 2006-02-26 - By mac
Back 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 >
Appreciate your response ..Thanks ..i juts have a couple of queries<br><br>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<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<br><br><div> <span class="gmail_quote">On 2/26/06, <b class="gmail_sendername"> Rick Stevens</b> <<a href="mailto:rstevens@(protected)">rstevens @(protected)</a>> wrote:</span><blockquote class="gmail_quote" style= "border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding -left: 1ex;"> On Sat, 2006-02-25 at 23:09 +0530, mac wrote:<br>> Hi,<br>> We have a Linux EL AS 3 running on a poweredge server with 8 GB<br>> ram ...we would like to know how to change the swap space on a linux<br>> AS 3 system dynamically <br>><br>> and would AS3 support a swap size of 16 GB<br>> <br>> 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. You can't change the swap size <br>dynamically, since the swap is on a fixed-size partition or file. 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. You <br>probably know how to make a swap partition. 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> # dd if=/dev/zero of=/path/to/swap/file count=size <br><br>For example, to create a 2GB swap file called "/var/swapfile" :<br><br> # dd if=/dev/zero of= /var/swapfile count=2G<br><br>3. Convert the file to a swap file:<br><br> # mkswap /var/swapfile<br> <br>3. Activate via:<br><br> # 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> /var/swapfile swap swap defaults 0 0 <br><br>Voila!<br><br>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- ---- -----<br>- Rick Stevens, Senior Systems Engineer <a href="mailto:rstevens@(protected)">rstevens@(protected)</a> -<br>- VitalStream, Inc. <a href="http://www.vitalstream.com">http://www.vitalstream.com</a> -<br>-  ; -<br>- God is real... ........unless declared integer or long -<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<br>< /blockquote></div><br>
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ 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
|
|
 |