Displaying 20 results from an estimated 89 matches for "swapon".
2010 Jul 06
4
why i can not put my swap files in /dev?
I tried to create some swap files in /dev directory for my desktop.
the dd and mkswap were ok. but when I try to swapon it, i get this:
# swapon /dev/myswap
swapon: /dev/myswap: Invalid argument
but when I mv the file to some other directory like /mnt or /, the
swapon works.
could sb. tell me why?
--
Tang Jianwei
2005 Dec 05
5
CENTOS4.2 swapon -s result ?
Hello
It is my first question here and I would like to thanks all of you to
keep alive this stream
and to give answers (I regulary read). Thanks for the good job.
After installing CENTOS4.2 and "play with" I type the command swapon -s
to verify everythings
is ok but the command does nor return info as it should do.
Is it something known ?
Thanks
Jean-Pierre Castello
HP France
mobile : + 33 (0) 6 72 99 37 40
E-MAIL : Jean-Pierre.Castello at hp.com
(The contents of this message and any attachments to it are confidential
and...
2009 Jun 05
3
Swap priorities with swapon (Is my swap drive working?)
Hey Listee's
I have a CentOS server with 2GB of ram and a swap drive of 4GB;
swapon -a shows my swap drive as 4GB with only about 350 bytes in use
(which is fine as my server idles with about 350-400MB ram usage so no
swap should be in use. However my one and only swap drive had a
priority of -1. I had read that the swap drive priority doesn't matter
too much because I only ha...
2003 Nov 30
2
Early-userspace and swapping
...om ramfs to tmpfs. Now I'd like to test this out better.
Currently I'm only using initramfs to store data so I'm new the this
klibc thing. Tommorrow I'm going to try to get klibc working to run
some programs in early-userspace. From what I've read so far, i'll need
a swapon utility that's compiled against klibc. Does klibc have the
swapon syscall? If it doesn't how hard would it be for me to add it in?
I want to turn on swapping and create a file larger than my physical ram
and see what happens... :)
John
2008 Nov 05
2
Adding another swap
...ded
partitions. Under extented partions , there are 15 partions.
Whole hard disk has been partitioned in a standard way, (i.e NOT LVM)
It has 2GB ram. swap is also 2GB.
Now I want to extend this swap to 4 GB.
If I use dd coomand and create a file with 2GB, Will I be able to
extend the swap witn swapon commnad?
How can I achive this?
Hope to hear form you,
--
Thank you
Indunil Jayasooriya
2006 May 04
1
Debian DomU not properly mounting swap
...9;']]], [''device'', [''vif'']]])
However, during the boot up sequence, the following error messages occur
on the console:
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 136k freed
INIT: version 2.86 booting
Will now activate swap.
swapon on /dev/hda2
swapon: cannot stat /dev/hda2: No such file or directory
* Swap activation failed with error code 255.
...
Will now mount local filesystems.
* Mounting proc filesystems failed with error code 32.
mount: none already mounted or /dev/pts busy
mount: according to mtab, devpts is already m...
2013 Oct 21
11
swapfile on btrfs, temporary solution for wiki
...n i reading about systemd addon for auto
create swapfile on btrfs, i invent the way, how create and using swap
file, just see following sh code:
swapfile=$(losetup -f) #free loop device
truncate -s 8G /swap #create 8G sparse swap file
losetup $swapfile /swap #mount file to loop
mkswap $swapfile
swapon $swapfile
i just adding this to rc.local and this just work.
May be, add it to Wiki as temporary solution to using swap file?
(sorry for my bad english)
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More m...
2005 Aug 15
2
How to setup swap
...the info & syntax to setup swap partition in domU.
I''ve setup the fstab file like that after having created a LV for it but
I don''t know how to instruct xen to use it:.
I feel I have to somehow set it in the VM file but how ?
Of course I''ve run the mkswap and tried swapon -a but I get the obvious
message bellow as it cannot read real device:
[root@VSI5G-111-Fc4 ~]# swapon -a
swapon: cannot stat /dev/VolGroup00/SwapVM1: No such file or directory
[root@VSI5G-111-Fc4 ~]#
Any ideas ?
/dev/sda1 / ext3 defaults 1 1
none...
2011 Jul 22
0
Strange problem with LVM, device-mapper, and software RAID...
...sk 253, 6 Jul 22 14:13 RavelData2-largeswap
brw-rw---- 1 root disk 253, 5 Jul 22 14:13 RavelSystem-root
brw-rw---- 1 root disk 253, 4 Jul 22 14:13 RavelSystem-swap
The weirdness is this:
1) the large swap space is not being activated automatically on boot. It
can be manually activated with the swapon command, and as a stopgap
measure, I've added a swapon command to rc.local
2) vgscan, vgchange, and vgdisplay are not seeing RavelData2, *even
though* the system has no problem mounting the data disk during boot
and swapon has no problem activating the largeswap swap area (at least
once the sy...
2006 Apr 19
0
AHC Panic
...3> Removable CD-ROM SCSI-0 device
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/ad0s1a
Loading configuration files.
kernel dumps on /dev/ad2s1b
Entropy harvesting: interrupts ethernet point_to_point kickstart.
swapon: adding /dev/ad0s1b as swap device
swapon: adding /dev/da0s1b as swap device
swapon: adding /dev/da1s1b as swap device
swapon: adding /dev/ad2s1b as swap device
Starting file system checks:
/dev/ad0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1a: clean, 103068 free (772 frags, 12787 blocks, 0.2...
2009 Aug 05
1
[PATCH] Fix swapon_label test
The swapon label test has a side-effect, in that it creates a new partition.
This causes the later failure of the list_partitions test.
This change causes the swapon_label test to scrub /dev/sdb after the test, and
then re-read the partition table.
---
src/generator.ml | 4 +++-
1 files changed, 3 insert...
2007 Sep 04
2
shrink LV with ext3 filesystem
Hi.
I want to make a snapshot from a logical volume and noticed that there
must be enough free disk space in the volume group. Actually there is no
free disk space left.
How do i shrink online /var without losing any data or restore from
backup? I do not have physical access to the server.
Specs:
Dell PE SC1430 with a 5/i RAID Controller
one RAID 1 array from the Dell RAID controller
2
2012 Jan 05
2
swap labeling annoyance
I just upgraded a blade server via rsync from another server. Rebuilt the
initrd. It boots fine... except that it won't turn on the swap partition.
Several times, I've made sure swap was off, then mkswap -L SWAP-sda3
/dev/sda3, but when I do swapon -L SWAP-sda3, it complains it can't find
the device for the label.
The only thing I find while googling, other than redoing what I've done
several times now, is an old bug from CentOS 4, 0001399, which affected
*only* blade enclosures: the reporter says that all of his IBM blades were
affe...
2003 May 14
0
vnconfig(8), bin/45754
...,6 +438,7 @@
else
rv = ioctl(fileno(f), VNIOCUCLEAR, &l);
if (rv) {
+ status--;
warn("VNIO[GU]CLEAR");
} else if (verbose)
printf("%s: flags now=%08lx\n",dev,l);
@@ -447,8 +455,10 @@
if (flags & VN_ENABLE) {
if (flags & VN_SWAP) {
rv = swapon(dev);
- if (rv)
+ if (rv) {
+ status--;
warn("swapon");
+ }
else if (verbose)
printf("%s: swapping enabled\n", dev);
}
@@ -459,15 +469,17 @@
args.fspec = dev;
mflags = (flags & VN_MOUNTRO) ? MNT_RDONLY : 0;
rv = mount("ufs", oa...
2003 Apr 11
1
Vinum crash, advice needed
...uration from /dev/ad4s1e
vinum: updating configuration from /dev/ad2s1e
vinum: updating configuration from /dev/ad3s1e
vinum: updating configuration from /dev/ad1s1e
Warning: defective objects
P array.p0 S State: corrupt Subdisks: 6 Size: 111 GB
S array.po.s4 State: stale D: d5 Size: 18 GB
swapon: adding /dev/ad0s1b as swap device
Starting file system checks:
ETC ETC ETC
and it goes on to say that it can't mount my array and that it needs help
So does this mean that my array is dead? are any of the disks faulty?
2007 Mar 28
3
changing swap size
Is it possible to change the swap size with out re-installing the system?
Looking at the dd command but don't really know what to expect.
Many thanks for your help
--
This message has been scanned for viruses
and dangerous content by MailScanner at
caspercollege.edu and is believed to be clean.
2005 Aug 29
1
New User: Kudos, small/old platform, RPM Illegal Instruction
...or something?
I'm relatively new to this distribution stuff (been doing LFS in the
past and many other *IX things before that). I did a search using "rpm
illegal instruction" of the lists, but didn't see anything that seemed
appropriate.
By the way, if the rc.sysinit has the swapon moved up to the front,
things work OK. If not, things freeze up as mem is exhausted. Swapon
does not appear to be bothered by the fact that LVM is not in control
yet. Even if it is, I added another disk, set up two swap areas there
and sailed on. Performance counts on a (equiv. to) P75! 8-O
I...
2010 Aug 10
2
Replace grub with extlinux
...e steps
Boot Partition:
mkdir -pv /mnt/sda1
mke2fs -jv /dev/hda1
mkfs -t ext3 /dev/hda1
mount /dev/hda1 /mnt/sda1
Root Partition
export SDB1=/mnt/sdb1
mkdir -pv $SDB1
mount -v -t ext3 /dev/hdb1 $SDB1
SWAP Partition
/sbin/swapon -v /dev/hdb5
Installing extlinux to /dev/sda1
dd if=/dev/zero of=/dev/sda bs=446 count=1
dd if=/mnt/sdb1/usr/share/syslinux/mbr.bin of=/dev/sda
install -d /mnt/sda1/boot
/sbin/extlinux --install /mnt/sda1/boot
Writing extlinux.conf file
export Extli...
2012 Sep 25
1
minor swap issue ....
...pile
binaries to run under RHEL/CentOS 5.n OS. I occasionally notice that
when the VM gets paged out by the server, it takes several minutes to
get it back in :-/ (see below).
On the host, logged in to a shell through a terminal window, this A.M.:
[wam at Q6600, test, 10:09:08am] 3384 % /sbin/swapon -s ; free -m ; uname
-a ; /sbin/hwclock -r ; date
Filename Type Size Used
Priority
/dev/md2 partition 16773116
1967524 -1
total used free shared buffers cached
Mem:...
2008 Oct 28
3
Apparently no swap configured
Hello,
I'm in a slightly unusual situation and I'd really appreciate some advice.
I installed CentOS 5.2 on a server about a month ago.
Today I happened to check the 'free' command and noticed that the Swap
line reads as follows:
Swap: 0 0 0
I'm pretty certain that when I installed the OS and created a custom
partition table, that I defined a