Centos 6.9 - Swap space question

Soldato
Joined
18 May 2010
Posts
22,886
Location
London
I am playing round with swap space and just created a new machine and purposely left 700Mb free on the hard drive.

After the machine starts I cannot find anyway to 'see' this free 700Mb on the disk.

df doesn't show it, fdisk doesn't show it.

How do I partition this 'phantom' 700Mb as swap?

---

(Only playing on a test system)

Also... fdisk. Never got my head round it.

I have two partitions sda1 and sda2. sda1 was boot and sda2 was lvm.

So I deleted sda2 and repartitioned it.

Saved the changes, rebooted and then the system failed to boot. :confused:

How on earth do you repartition a system which is live?

(The answer I'm guessing is using LVM)

Can you use an LVM portion as swap?

Seems yes.
 
Last edited:
Back
Top Bottom