Ubuntu Pastebin

Paste from yeahokay at Thu, 7 Jan 2016 00:41:05 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
matt@ubuntu:~$ sudo swapoff /dev/ubuntu-vg/swap_1; sudo lvreduce -L -4500M; sudo lvextend -L +100%FREE /dev/ubuntu-vg/root; sudo swapon
swapoff: /dev/ubuntu-vg/swap_1: swapoff failed: Invalid argument
  Please provide the logical volume name
  Run `lvreduce --help' for more information.
  Invalid argument for --size: +100%FREE
  Error during parsing of command line.

Usage:
 swapon [options] [<spec>]

Options:
 -a, --all              enable all swaps from /etc/fstab
 -d, --discard          discard freed pages before they are reused
 -e, --ifexists         silently skip devices that do not exis
 -f, --fixpgsz          reinitialise the swap space if necessary
 -h, --help             display help and exit
 -p, --priority <prio>  specify the priority of the swap device.
 -s, --summary          display summary about used swap devices and exit
 -v, --verbose          verbose mode
 -V, --version          display version and exit

The <spec> parameter:
 -L <label>             LABEL of device to be used
 -U <uuid>              UUID of device to be used
 LABEL=<label>          LABEL of device to be used
 UUID=<uuid>            UUID of device to be used
 <device>               name of device to be used
 <file>                 name of file to be used
Download as text