commands to resize swap
Hello,
Questions.
1. How can the swap partition be increased [1] . Using oracle linux 6.4, What commands can do this?
2. The partition next to it will need t be shrunk/moved somehow. What commands can do this?
The reason I am asking this is so Oracle Database software 11gr2 can install , it checks the swap size, and the install wont proceed unless swap is set to a minimum limit.
Thanks Glenn
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
50G 9.6G 38G 21% /
tmpfs 1.8G 84K 1.8G 1% /dev/shm
/dev/sda1 485M 124M 336M 27% /boot
/dev/mapper/VolGroup-lv_home
65G 19G 43G 31% /home
[1]
Disk /dev/mapper/VolGroup-lv_swap: 3388 MB, 3388997632 bytes
255 heads, 63 sectors/track, 412 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
# fdisk -l
Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007b80b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 15567 124521472 8e Linux LVM
Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/VolGroup-lv_swap: 3388 MB, 3388997632 bytes
255 heads, 63 sectors/track, 412 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/VolGroup-lv_home: 70.4 GB, 70430752768 bytes
255 heads, 63 sectors/track, 8562 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
# uname -a
Linux unknown20cf3028fda2 2.6.32-358.2.1.el6.x86_64 #1 SMP Tue Mar 12 12:10:36 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux