search for: mkswap

Displaying 20 results from an estimated 117 matches for "mkswap".

2012 Mar 13
2
mkswap, lvm and bootbits sectors
Hello, I am confused by a warning from mkswap : When making a swap on a LVM volume, I see the following warning : mkswap: /dev/vg_SDB1/swap_test6_64: warning: don't erase bootbits sectors on whole disk. Use -f to force. Setting up swapspace version 1, size = 1048572 KiB Is it safe to use mkswap -f in this case ? (If that matters, t...
2005 Jan 14
1
mkswap in guests
kaffe:/home/doogie# mkswap /dev/hda mkswap: Will not try to make swapdevice on ''%s'' Is this supposed to work? See my previous email as for the mapping. ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition Source...
2011 Mar 10
1
mkswap - unable to relabel, operation not supported
Hi, I am getting following error on creating a swap fs. CentOS 5.5 {{{ mkswap: unable to relabel /srv/cloud/one/var/25/images/disk.1 to system_u:object_r:swapfile_t: Operation not supported }}} The selinux is configured in permissive mode. Any clues on what might be wrong here and how to fix it? {{{ # /bin/dd if=/dev/zero of=/srv/cloud/one/var/25/images/disk.1 bs=1 count=1...
2017 Aug 18
1
[PATCH] resize: handle empty UUIDs for swap partitions (RHBZ#1482737)
Avoid passing an empty UUID string to mkswap, which mkswap does not accept (correctly) as new UUID. In addition, print a warning when the UUID of a swap partition changed, since it may require manual fixups in the guest. --- resize/resize.ml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/resize/resize.m...
2008 Jul 29
2
syconf(_SC_PAGESIZE) versus getpagesize()
hello karel, thanks a lot for the klibc portability merges. current HEAD klibc failure: mkswap.c: In function ?init_signature_page?: mkswap.c:148: error: ?_SC_PAGESIZE? undeclared (first use in this function) although POSIX encourages sysconf() could util-linux use getpagesize() ? -- maks
2005 Oct 21
4
Mounting swap fails in domU (badiane)
Has anyone experienced a swap failing to be mounted in domU''s? I created a LVM swap space, ran mkswap and made it available on the same line as the root partition (also on LVM) in each of the domU''s config file. But it fails to be mounted and I''m running without swap space. That wouldn''t be too much of a problem if I had a lot of mem to play with but it''s un...
2009 Aug 19
1
[PATCH] tests: Conditionally skip UUID tests.
.../Makefile.am @@ -27,6 +27,9 @@ tests_SOURCES = tests.c tests_CFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src -Wall tests_LDADD = $(top_builddir)/src/libguestfs.la +# Old version of e2fsprogs which didn't support UUIDs? +e2fs_uuid_not_supported := $(shell r=1; if test -x ../initramfs/sbin/mkswap; then if ../initramfs/sbin/mkswap --help 2>&1 | grep -sq -- -U; then r=0; fi; fi; echo $$r) + TESTS = tests TESTS_ENVIRONMENT = \ SKIP_TEST_COMMAND=$(shell ldd test-command | grep -sq 'not a dynamic executable' || echo 1) \ @@ -34,8 +37,9 @@ TESTS_ENVIRONMENT = \ SKIP_TEST_ZERO...
2018 Apr 12
4
[PATCH 0/2] Support for expanding f2fs partitions
Hi, this small patch series exposes one of the utility in f2fs-tools, and use it to expand f2fs partitions in virt-resize. Thanks, Pino Toscano (2): New API: f2fs_expand resize: expand f2fs partitions daemon/Makefile.am | 1 + daemon/f2fs.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++ generator/actions_core.ml | 9 +++++++++ generator/proc_nr.ml | 1 +
2016 Nov 25
3
[PATCH 1/2] daemon: allow to change the labels of swap partitions
--- daemon/daemon.h | 1 + daemon/labels.c | 3 +++ daemon/swap.c | 21 +++++++++++++++++++++ generator/actions.ml | 4 ++++ 4 files changed, 29 insertions(+) diff --git a/daemon/daemon.h b/daemon/daemon.h index 79a5288..2379e31 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -254,6 +254,7 @@ extern int64_t ntfs_minimum_size (const char *device); /*-- in swap.c --*/
2016 Nov 25
0
[PATCH 2/2] resize: shrink/expand swap partitions
...ap -> "swap" (* Data structure describing LVs on the source disk. This is only * used if the user gave the --lv-expand option. @@ -130,6 +133,7 @@ let debug_logvol lv = type expand_content_method = | PVResize | Resize2fs | NTFSResize | BtrfsFilesystemResize | XFSGrowFS + | Mkswap let string_of_expand_content_method = function | PVResize -> s_"pvresize" @@ -137,6 +141,7 @@ let string_of_expand_content_method = function | NTFSResize -> s_"ntfsresize" | BtrfsFilesystemResize -> s_"btrfs-filesystem-resize" | XFSGrowFS ->...
2005 Jul 08
2
Accidentally issued "mkswap" on ext3 fs -- recovery possible?
Hi, I accidentally issued "mkswap" on a used ext3 fs partition (~30G) :-/ I have analyzed the behaviour of mkswap using two test files and it appears to only change "some" bytes: --8<-- --- swap2.xxd 2005-07-04 21:00:10.157261360 +0200 +++ swap1.xxd 2005-07-04 21:00:01.894517488 +0200 @@ -62,7 +62,7 @@ 00003...
2018 Apr 12
0
[PATCH v2 2/2] resize: expand f2fs partitions
...4 deletions(-) diff --git a/resize/resize.ml b/resize/resize.ml index 1a21e4dff..8e4bb1b16 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -136,7 +136,7 @@ let debug_logvol lv = type expand_content_method = | PVResize | Resize2fs | NTFSResize | BtrfsFilesystemResize | XFSGrowFS - | Mkswap + | Mkswap | ResizeF2fs let string_of_expand_content_method = function | PVResize -> s_"pvresize" @@ -145,6 +145,7 @@ let string_of_expand_content_method = function | BtrfsFilesystemResize -> s_"btrfs-filesystem-resize" | XFSGrowFS -> s_"xfs_growfs&quo...
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 repor...
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
2007 May 09
2
how to create label fo swap space
I just add a partition /dev/sdb3 and use "mkswap /dev/sdb3" to make it swap space. How can I label the /dev/sdb3 like "SWAP-sdb3"? what I want is put on /etc/fstab as entry like: LABEL=SWAP-sdb2 swap swap defaults 0 0 LABEL=SWAP-sdb3 swap swap defaults 0...
2009 Aug 20
3
No swap on domU
Hi guys. DomU config disk = [ ''phy:/dev/xen00/debian5-base,sda1,w'', ''phy:/dev/xen00/debian5-swap,sda2,w'', ] ----------------------- mkswap /dev/xen00/debian5-swap But in domU in booting: Activating swap...failed. What wrong? -- Best Regards, alex.faq8@gmail.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2010 Jul 21
0
[PATCH] RFC: Encrypted swap support
...e3bb57b..c984265 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -677,8 +677,12 @@ create_hostvg() if [ "$SWAP_SIZE" -gt 0 ]; then log "Creating swap partition" lvcreate --name Swap --size ${SWAP_SIZE}M /dev/HostVG - mkswap -L "SWAP" /dev/HostVG/Swap - echo "/dev/HostVG/Swap swap swap defaults 0 0" >> /etc/fstab + if [ -n ${OVIRT_CRYPT_SWAP} ]; then + echo "SWAP /dev/HostVG/Swap /dev/mapper/ovirt-crypt-swap ${OVIRT_CRYPT_SWAP}" >> /etc/ovirt-crypttab +...
2007 Jul 21
2
Please How do I calculate the offset of a file within a ext3 partition
Hi, I need to understand and to calculate the offset of the beginning of a file within my partition which uses an ext3 filesystem. Can I use dumpe2fs to figure that out, if yes how? Sincerely, William Tambe
2005 Oct 14
1
debian+xen: System fails to mount swap, mydql not starting
...en/www_swap,sda2,w'' ] I created a single PV on /dev/hda5 and it''s 16.77GB. then in that I created a PV named xen within it and subdivided it into 2 LV''s for each of the 3 domU; one for the main storage and one for swap. So I formated the main storage area as XFS and ran mkswap on the {domUname}_swap areas. When I boot the domU it fails. Since this is a test machine (Celeron 1.3GHz, 512MB, 20GB) I''m running some of the apps I''d like to run on a production Xen server. This afternoon my load average got to 3.+ and with no swap that machine was draggi...
2013 Oct 21
11
swapfile on btrfs, temporary solution for wiki
...arch wiki and when 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...