swapon with a UUID adds both physical device and evms mapped device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
Confirmed
|
High
|
Scott James Remnant (Canonical) |
Bug Description
Fiesty does not seem to use my swap partition. Instead, it seems to be using some swap file. The swap partition entry in my /etc/fstab is:
# /dev/hda2 -- converted during upgrade to edgy
UUID=70f18355-
The partition /dev/hda2 is approx 2Gb. However, when I do $free -m I get:
Swap: 3812 0 3812
$ cat /proc/swaps
Filename Type Size Used Priority
/dev/sda2 partition 1951888 0 -1
/dev/mapper/sda2 partition 1951888 0 -2
After turning off the swap using swapoff -a, and then turning it again using swapon -a, the free command gives me:
Swap: 1906 0 1906
$ cat /proc/swaps
Filename Type Size Used Priority
/dev/mapper/sda2 partition 1951888 0 -3
After a restart, the swap partition is not used. Why isn't Feisty using my swap partition?
Also note that 3812 = 2 * 1906.
Changed in util-linux: | |
assignee: | nobody → keybuk |
Thanks for reporting this problem report.
Free -m with the result of 1906 is almost 2G. So that would be correct. It uses 0 after the reboot so all 1906 is available. It will not use swap unless all the physical memory is used up, then it will start to use swap.
Could you please explain what indicates to you that after the reboot the swap is not used at all?
Thanks