SWAP partition not recognized after imaging
-
Hi,
I’m using fog to image in almost a hundred machines and everything is really working fine until I found that the swap partition isn’t recognized just on the imaged machines.
The df -l lists me the swap partition but the free command shows me zero bytes for swap. I think it’s probably a fstab issue with the uuid of the swap partition, but I couldn’t find the solution.
A workaround for this and what I intend to do is to create a file and use it as swap partition, the steps are:
[LEFT] [/LEFT]
[SIZE=15px][COLOR=#222222][FONT=Courier 10 Pitch][B]# dd if=/dev/zero of=/swap01 bs=1024 count=1024000[/B][/FONT][/COLOR][/SIZE][COLOR=#222222][SIZE=15px][FONT=Courier 10 Pitch][B]# chmod 600 /swap01[/B][/FONT][/SIZE][/COLOR]
[COLOR=#222222][SIZE=15px][FONT=Courier 10 Pitch][B]# mkswap /swap01[/B][/FONT][/SIZE][/COLOR]
[COLOR=#222222][SIZE=15px][FONT=Courier 10 Pitch][B]# swapon /swap01[/B][/FONT][/SIZE][/COLOR]
[COLOR=#222222][SIZE=15px][FONT=Courier 10 Pitch][B]# gedit /etc/fstab [/B][/FONT][/SIZE][/COLOR]
adding in the fstab file (/swap01 swap swap defaults 0 0)I appreciate if anyone knows a solution to activate the swap file without this workaround.
thanks
Troy
-
Apparently Fog doesn’t recognize the SWAP file. (See these posts: [url]http://fogproject.org/forum/threads/cant-upload-linux-image-caixa-magica-16.503/[/url] & [url]http://fogproject.org/forum/threads/deploying-linux.3776/[/url] ) I would like to learn more about how you are or intend to deploy Linux, as I am working on a similar project.
-
[quote=“Hunter, post: 9658, member: 1221”]Apparently Fog doesn’t recognize the SWAP file. (See these posts: [url]http://fogproject.org/forum/threads/cant-upload-linux-image-caixa-magica-16.503/[/url] & [url]http://fogproject.org/forum/threads/deploying-linux.3776/[/url] ) I would like to learn more about how you are or intend to deploy Linux, as I am working on a similar project.[/quote]
Hi Hunter,
The swap partition still there on a primary partition but is not activated because of the UUID on fstab. There is a way to activate it but do this on several machines will become unproductive, so the steps that I’ve mentioned I think are the best way to make the swap working.
What exactly you need to know about linux deploying?