swap -d failure


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users swap -d failure
# 1  
Old 08-20-2008
swap -d failure

Hi All

I needed to add swap space temporarily to a server so I could run an oracle installer..

So I did swap -a 100M /data01/swapfile.zak

Still had an issue

So I did swap -a 5000M /data01/swapfile.zak1

Once I had finished

I did swap -d /data01/swapfile.zak

No problems... I deleted the file...

However when I do: swap -d /data01/swapfile.zak1

I get

swapfile.zak1: Not enough space

Can just delete the file?

How can free up the swap space?

Thanking you all inadvance..

Z
# 2  
Old 08-20-2008
What platform are you on and post the swap utilization on your machine. You might be having severe memory shortage.

Last edited by shamrock; 08-20-2008 at 12:44 PM..
# 3  
Old 08-20-2008
Quote:
Originally Posted by shamrock
What platform are you on and post the swap utilization on your machine. You might be having severe memory shortage.
Apologies, should have included that orginally ...

SunOS 9

snapshot of top

last pid: 9333; load averages: 0.09, 0.12, 0.10 17:06:14
65 processes: 64 sleeping, 1 on cpu
CPU states: 70.0% idle, 0.0% user, 2.0% kernel, 28.0% iowait, 0.0% swap
Memory: 2048M real, 77M free, 3768M swap in use, 4781M swap free

root@adclick-winn:~ 0 # swap -l
swapfile dev swaplo blocks free
/dev/md/dsk/d20 85,20 16 4202672 358704
/data01/swapfile.zak1 - 16 10239984 9328864
root@adclick-winn:~ 0 #


root@adclick-winn:~ 0 # swap -s
total: 3810936k bytes allocated + 46864k reserved = 3857800k used, 4895960k available
root@adclick-winn:~ 0 #
# 4  
Old 08-20-2008
Question More information

Is this a workstation or a server type machine? Out of 2G of physical memory only 77M is free which points to memory shortage.
What is the maximum amount of physical memory that can be installed in your machine?
Post the output of vmstat on your machine...look for signs of heavy paging activity in its output.
# 5  
Old 08-20-2008
its a v240 server.



root@adclick-winn:~ 0 # vmstat 5 5
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr m1 m1 m1 m2 in sy cs us sy id
0 0 20 1069504 249480 143 51 1238 77 78 0 2 0 0 0 0 30 79 117 10 3 87
0 0 27 4892384 121960 101 7 9795 85 85 0 0 0 0 0 0 1089 1100 1220 1 4 96
0 1 27 4892384 118032 85 6 11032 97 97 0 0 0 0 0 0 1142 1190 1247 1 3 96
0 0 27 4892384 114912 46 6 9871 96 96 0 0 0 0 0 0 1027 1177 1232 1 3 95
0 0 27 4892384 113848 9 6 13343 113 113 0 0 0 0 0 0 1153 1230 1250 1 2 97


root@adclick-winn:/usr/platform/SUNW,Sun-Fire-V240/sbin 0 # ./prtdiag |more
System Configuration: Sun Microsystems sun4u Sun Fire V240
System clock frequency: 167 MHZ
Memory size: 2GB

==================================== CPUs ====================================
E$ CPU CPU Temperature
CPU Freq Size Implementation Mask Die Amb. Status Location
--- -------- ---------- --------------------- ----- ---- ---- ------ --------
0 1503 MHz 1MB SUNW,UltraSPARC-IIIi 3.4 - - online MB/P0
1 1503 MHz 1MB SUNW,UltraSPARC-IIIi 3.4 - - online MB/P1
# 6  
Old 08-20-2008
vmstat output shows high paging activity pointing to memory shortage.
Don't know much about Sun servers but what is the max amount of memory that can be added to this machine?
Double the physical memory to 4G...should reduce the paging activity and then try deallocating the swap space.
Any applications running on this machine experiencing slowness?
# 7  
Old 08-21-2008
Tragically the oracle database... not sure what to do... I guess I could shut all the apps and database down and try it again???
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Explain the output of swap -s and swap -l

Hi Solaris Folks :), I need to calculate the swap usage on solaris server, please let me understand the output of below swap -s and swap -l commands. $swap -s total: 1774912k bytes allocated + 240616k reserved = 2015528k used, 14542512k available $swap -l swapfile dev swaplo... (6 Replies)
Discussion started by: seenuvasan1985
6 Replies

2. Solaris

swap

Hi, Can somebody please help here, since iam just a beginner. According to my book knowledge. the Avalilable memory calculated by swap -l (includes only swap) should be small as compared to swap -s value(includes Virtual memory=swap +physical). but this is quite opposite in my case. swap... (6 Replies)
Discussion started by: Laxxi
6 Replies

3. UNIX for Dummies Questions & Answers

boot up failure unix sco after power failure

hi power went out. next day unix sco wont boot up error code 303. any help appreciated as we are clueless. (11 Replies)
Discussion started by: fredthayer
11 Replies

4. HP-UX

Swap device file and swap sapce

Hi I have an integrity machine rx7620 and rx8640 running hp-ux 11.31. I'm planning to fine tune the system: - I would like to know when does the memory swap space spill over to the device swap space? - And how much % of memory swap utilization should be specified (swap space device... (6 Replies)
Discussion started by: lamoul
6 Replies

5. Red Hat

swap not defined as swap

free -m : 1023 total swap space created default partition /dev/sdb1 50M using fdisk. i did write the changes. #mkswap /dev/sdb1 #swapon /dev/sdb1 free -m : 1078 total swap space this shows that the swap is on Question : i did not change the type LINUX SWAP (82) in fdisk. so why is... (5 Replies)
Discussion started by: dplinux
5 Replies

6. UNIX for Advanced & Expert Users

su failure

Usually when su rejects an attempt to switch user it responds with "Sorry" but with a certain username on some unix servers the response is "Killed". I'm guessing the su accepted the username/password but refused to spawn child shell with the specified username. What's causing this and what has to... (8 Replies)
Discussion started by: twk
8 Replies

7. HP-UX

How much Swap is too much?

I have a HP-UX B.11.23 server with 16 gb of memory 84 gb of swap configured. I am being pushed to define more swap to try and get more Tuxedo domains to start. At what point do we have too much swap for the amount of memory? Thanks in advance. (11 Replies)
Discussion started by: scotbuff
11 Replies

8. Solaris

Swap config - Mirror swap or not?

Hello and thanks in advance. I have a Sun box with raid 1 on the O/S disks using solaris svm. I want to unmirror my swap partition, and add the slice on the second disk as an additional swap device. This would give me twice as much swap space. I have been warned not to do this by some... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

9. Solaris

swap -l

When i try to type swap -l ,nothing come out but blinking. May i know what is the problem and solutions ? thanks (6 Replies)
Discussion started by: Farbegas
6 Replies

10. Programming

ld failure

Hi, I am using gmake to compile a c program with a makefile. The make file runs ld. I get the following error jsh1035c:/users/egate453/admegate/kapil/samples $ gmake -e -f GNUmakefile queue_c gmake -f ./GNUmakefile queue_c in_objdir=1 build_root=/users/egate453/admegate/kapil/samples... (2 Replies)
Discussion started by: handak9
2 Replies
Login or Register to Ask a Question