LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2009, 04:33 PM   #1
goldeneye075
LQ Newbie
 
Registered: Feb 2009
Posts: 18
Blog Entries: 2

Rep: Reputation: 0
Unhappy how to increase the swap space in suse linux?


how to increase the swap space in suse linux?
 
Old 02-12-2009, 05:10 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
what kind of filesystem? is all your space used up? are you using lvm? more information about your system please? Are you using Sata, Scsi, PATA? and is your system setup so that PATA drives still show up as sda or sdb drives?

Best I can do now is tell you delete your swap space. create a new partition with fdisk, then do the following
Code:
mkswap /dev/sdNX or hdNX where N = device and X = partition number
 
Old 02-12-2009, 05:17 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
There is no need to delete the current swap - Linux can use multiple swap extents. Can be new partitions, or new swap files - the latter created with dd. Add to fstab, and use the same (swap) priority.
Lots of how-to's out there.
As always, more than one way to achieve the required reslt.
 
Old 02-12-2009, 05:31 PM   #4
goldeneye075
LQ Newbie
 
Registered: Feb 2009
Posts: 18
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jstephens84 View Post
what kind of filesystem? is all your space used up? are you using lvm? more information about your system please? Are you using Sata, Scsi, PATA? and is your system setup so that PATA drives still show up as sda or sdb drives?

Best I can do now is tell you delete your swap space. create a new partition with fdisk, then do the following
Code:
mkswap /dev/sdNX or hdNX where N = device and X = partition number
How can I find out what file system that i use?

when I type df -h

/dev/md3 58G 49G 9.1G 85% /
udev 2.0G 172K 2.0G 1% /dev
/dev/md0 102M 40M 63M 39% /boot
/dev/md1 16G 7.2G 7.9G 48% /usr

this is for the main node

for node 1
/dev/sda5 58G 202M 58G 1% /
udev 2.0G 104K 2.0G 1% /dev
/dev/sda1 102M 40M 63M 39% /boot
/dev/sdb1 75G 33M 75G 1% /scratch
/dev/sda2 16G 602M 15G 4% /usr
sod:/usr/local 16G 7.2G 7.9G 48% /usr/local
sod:/home 58G 49G 8.9G 85% /home
 
Old 02-12-2009, 05:33 PM   #5
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
try searching through dmesg
Code:
dmesg | less
or fstab

Last edited by jstephens84; 02-12-2009 at 05:35 PM.
 
Old 02-12-2009, 05:34 PM   #6
goldeneye075
LQ Newbie
 
Registered: Feb 2009
Posts: 18
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
There is no need to delete the current swap - Linux can use multiple swap extents. Can be new partitions, or new swap files - the latter created with dd. Add to fstab, and use the same (swap) priority.
Lots of how-to's out there.
As always, more than one way to achieve the required reslt.
I was trying to use

sudo dd if=/dev/zero of=/swap_file bs=1M count=1000

but in the node that i want to increse it, does not have sudo command,
how can i install the command?
 
Old 02-12-2009, 05:39 PM   #7
goldeneye075
LQ Newbie
 
Registered: Feb 2009
Posts: 18
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jstephens84 View Post
try searching through dmesg
Code:
dmesg | less
or fstab
when i typed
dmesg | less

Bootdata ok (command line is root=/dev/sda5 vga=0x317 resume=/dev/sda3 splash=silent showopts)
Linux version 2.6.16.13-4-smp (geeko@buildhost) (gcc version 4.1.0 (SUSE Linux)) #1 SMP Wed May 3 04:53:23 UTC 2006
 
Old 02-12-2009, 05:40 PM   #8
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by goldeneye075 View Post
when i typed
dmesg | less

Bootdata ok (command line is root=/dev/sda5 vga=0x317 resume=/dev/sda3 splash=silent showopts)
Linux version 2.6.16.13-4-smp (geeko@buildhost) (gcc version 4.1.0 (SUSE Linux)) #1 SMP Wed May 3 04:53:23 UTC 2006
Ok try the following.
Code:
cat /etc/fstab
that should have it in there.
 
Old 02-12-2009, 05:41 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
sudo is merely a means of running with root authority - login as root and do the deed (minus the "sudo").
sudo might be handy in a general sense, but is overkill to install it just for this. How to install it depends on distro.
 
Old 02-12-2009, 05:45 PM   #10
goldeneye075
LQ Newbie
 
Registered: Feb 2009
Posts: 18
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jstephens84 View Post
Ok try the following.
Code:
cat /etc/fstab
that should have it in there.
when i typed it :

/dev/md3 / reiserfs acl,user_xattr 1 1
/dev/md0 /boot reiserfs acl,user_xattr 1 2
/dev/md1 /usr reiserfs acl,user_xattr 1 2
/dev/md2 swap swap defaults 0 0
/dev/sdd1 /mnt/disk2 ext2 rw,noauto,user 1 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0


so what does this mean??
 
Old 02-12-2009, 05:50 PM   #11
goldeneye075
LQ Newbie
 
Registered: Feb 2009
Posts: 18
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by goldeneye075 View Post
when i typed it :

/dev/md3 / reiserfs acl,user_xattr 1 1
/dev/md0 /boot reiserfs acl,user_xattr 1 2
/dev/md1 /usr reiserfs acl,user_xattr 1 2
/dev/md2 swap swap defaults 0 0
/dev/sdd1 /mnt/disk2 ext2 rw,noauto,user 1 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0


so what does this mean??

but when I typed it on a different node it gave me this

/dev/sda5 / reiserfs acl,user_xattr 1 1
/dev/sda1 /boot reiserfs acl,user_xattr 1 2
/dev/sdb1 /scratch reiserfs acl,user_xattr 1 2
/dev/sda2 /usr reiserfs acl,user_xattr 1 2
/dev/sda3 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
sds:/usr/local /usr/local nfs rsize=8192,wsize=8192 0 0
sds:/home /home nfs rsize=8192,wsize=8192 0 0
 
Old 02-12-2009, 05:51 PM   #12
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
so the first column is the device the second column is the mount point and the third is the filesystem the fourth field is the options field and the fifth field is the dump frequency and the last field is the pass number. so to answer what filesystem you are using here is the answer.

/ = reiserfs
/boot = reiserfs
/usr = reiserfs

Last edited by jstephens84; 02-12-2009 at 05:53 PM.
 
Old 02-12-2009, 07:05 PM   #13
goldeneye075
LQ Newbie
 
Registered: Feb 2009
Posts: 18
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jstephens84 View Post
so the first column is the device the second column is the mount point and the third is the filesystem the fourth field is the options field and the fifth field is the dump frequency and the last field is the pass number. so to answer what filesystem you are using here is the answer.

/ = reiserfs
/boot = reiserfs
/usr = reiserfs
Thank you very much for guiding me.. :-)
 
Old 02-12-2009, 07:10 PM   #14
cloud9repo
Member
 
Registered: Oct 2008
Location: Middle TN
Posts: 134

Rep: Reputation: 19
Quote:
Originally Posted by goldeneye075 View Post
how to increase the swap space in suse linux?
I'd use gparted. Search your package handler and install it.
It's the graphical partition editor, and allows editing a partition, which includes resizing.

Be careful with it, as changes are permanent.
 
Old 02-12-2009, 10:09 PM   #15
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi, Q: how to increase/relocate the swap space in suse linux?

BAD ADVICE: gparted

GOOD ADVICE: PLEASE - don't repartition anything until you're SURE that you actually NEED to. In most cases, you simply don't need to.

Here's a great article to determine whether or not your current swap is adequate:
http://www.linux.com/feature/121916

IMHO .. PSM

PS:
The article also discusses how you can create a separate swap file (without needing to carve out a new partition).

PPS:
Here are two other articles that discuss creating swap partitions and swap files (should you need to):
http://www.redhat.com/docs/manuals/l...ap-adding.html
http://www.linux.com/feature/113956

Last edited by paulsm4; 02-12-2009 at 10:15 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Increase SWAP Space? your_shadow03 Linux - Newbie 2 01-30-2009 05:52 AM
How can I increase swap space? abefroman Linux - Server 12 12-27-2007 12:23 PM
how much swap space is needed; how to increase swap space? johnpaulodonnell Linux - Newbie 5 03-23-2007 04:20 AM
How do I increase my swap space on RH Linux AS 4.0 pdillard Linux - Software 3 01-19-2007 03:37 AM
Increase Swap Space? star geezer Linux - Software 9 03-10-2003 01:04 PM


All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration