06-20-2011
How to reclaim the space which i used to increse the swap space on Xen,
Hi,
i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :-
HTML Code:
1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024
1057 ls -l /root/myswapfile
1058 chmod 600 /root/myswapfile
1059 mkswap /root/myswapfile
1060 swapon /root/myswapfile
but it has used all the space on /root and hence to recover the space on /root i removed /root/myswapfile using rm -rf. But still i see the space is full and swapon give below output:-
Filename Type Size Used Priority
/root/myswapfile\040(deleted) file 968764 0 -1
Can any help me here please, how to resolve this and get my system to previous state?
Thanks in advance....
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
All,
I am using SOLARIS 7. I have formated my hard drive to consist of only 150MB of swap space. This isn't enough considering I am running Oracle. How do I create additional swap space?
Please list sources or commands.
PS mkswap doesn't work on my machine. ( I have swap and... (5 Replies)
Discussion started by: SmartJuniorUnix
5 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I would like to know if there is any difference between the pageing space and the swap space.
Thank you in advance. (1 Reply)
Discussion started by: VeroL
1 Replies
3. AIX
how do you get the paging space reduced without rebooting the machine ? the os is aix (2 Replies)
Discussion started by: aaronh
2 Replies
4. Linux
Hi,
I want to know how can i free the swap space if it is completely full,
0 mb remaining, (1 Reply)
Discussion started by: manoj.solaris
1 Replies
5. UNIX for Dummies Questions & Answers
I have a disk space issue on one of my unix servers.
it is showing 98% full.. i found the offending folder and removed it. but i have not reclaimed the disk space.
is there another command that i need ?
thank you in advance for any assistance. (4 Replies)
Discussion started by: JanSP
4 Replies
6. Solaris
Could someone please explain how you know how much swap space you have on your system. See below:
# swap -s
total: 8225048k bytes allocated + 4863488k reserved = 13088536k used, 4008032k available
# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c3t0d0s1 32,25 16... (2 Replies)
Discussion started by: jamba1
2 Replies
7. Solaris
Dear All,
I have a swap space of 16G available in Sol 10. I have allocated it as a seperate file system. But when the RAM Is full used , the system gets rebooted and the swap is not being used,.
Any reasons for this.
Rgds
Rj (5 Replies)
Discussion started by: jegaraman
5 Replies
8. Red Hat
CENT OS 5.8 server running with a huge java application which uses up all my ram (4GB) and requires excess of atleast 2GB.But the swap is not getting used up((8GB) of swap space left unused) leading a wierd error and stopping application to stop working.
Any one here dealt with the same kind of... (2 Replies)
Discussion started by: shiek.kaleem
2 Replies
9. UNIX for Beginners Questions & Answers
Hello everyone,
I am having an issue here with CentOS release 6.6 (Final) that shows all of the space used up, but I can't tell where the space went.
Seemingly I am using up 100%, according to
df -h
Filesystem Size Used Avail Use% Mounted on... (27 Replies)
Discussion started by: DannyBoyCentOS
27 Replies
10. UNIX for Beginners Questions & Answers
Hello,
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 1024M 0 rom
sda 8:0 0 38.2G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 ... (2 Replies)
Discussion started by: centosadmin
2 Replies
LEARN ABOUT DEBIAN
dtc_kill_vps_disk
dtc_kill_vps_disk(8) System Manager's Manual dtc_kill_vps_disk(8)
NAME
dtc_kill_vps_disk - destroy LVM disks for freeing space
SYNOPSIS
dtc_kill_vps_disk VPS_NUMBER [ lvm|loopback ]
DESCRIPTION
dtc_kill_vps_disk This shell script is a part of the dtc-xen package that is to be used by the dtc panel to manage a Xen VPS server.
This script is used to delete a partitions that was used by a VPS. It will delete the normal partition that was used as a root disk, and
the swap partition.
dtc_kill_vps_disk is to be used by the dtc-xen SOAP server, but can also be used as a standalone userland tool.
OPTIONS
VPS_NUMBER has to be a number between 01 and 19. Let's say the number is 16, and that dtc-xen is configured to use the volume group called
lvm1, then this script will create /dev/lvm1/xen16 and /dev/lvm1/xen16swap.
IMAGE_TYPE This parameter can have 2 values: either lvm or loopback. If ommited, then lvm is used. If lvm is used, then this script will
create a partition using lvmcreate, otherwise it will create an image file. Both will later be used for the VPS.
EXAMPLE
dtc_setup_vps_disk 04 lvm
This will delete the 2 LVM partitions that were used by the VPS named xen04, the first one being the root partition, and the second one
being the swap partition.
VERSION
This documentation describes dtc_kill_vps_disk See http://www.gplhost.com/software-dtc-xen.html for updates.
SEE ALSO
dtc_reinstall_os(8), dtc_setup_vps_disk(8)
dtc_kill_vps_disk(8)