Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by apunkabollywood
at 2024-07-31 03:26:14
Point:500 Replies:4 POST_ID:829182USER_ID:10
Topic:
Linux;Linux Distributions;Linux Programming
Hi All,
My motive is to automate the process of creating swap twice of Physical RAM during OS installation .
If its not possible during oS installation then a post installation script or commands can be usefule - please help?
My motive is to automate the process of creating swap twice of Physical RAM during OS installation .
If its not possible during oS installation then a post installation script or commands can be usefule - please help?
Accepted Solution
Expert: spravtek replied at 2024-07-31 05:26:51
500 points EXCELLENT
If you want to control the swap creation during kickstart you could also opt for a "scripted" way.
Define a %pre section in the kickstart file containing following:
Define a %pre section in the kickstart file containing following:
%pre #!/bin/sh mem=$((`grep MemTotal: /proc/meminfo | sed ‘s/^MemTotal: *//’|sed ‘s/ .*//’` / 1024)) echo “logvol swap –fstype swap –name=LogVol01 –vgname=VolGroup00 –size=$mem” > /tmp/setswap 1:2:3:4:
Then set the %include around the part where you create the partitions:
Fyi, I've tested the code on a Centos.
Expert: gheist replied at 2024-07-31 05:08:57
You need some swap like gigabyte to have indication when you run out of memory
And you can resize swap logical volume with LVM if your system really goes into crashing.
And you can resize swap logical volume with LVM if your system really goes into crashing.
Expert: duncanb7 replied at 2024-07-31 04:22:57
The twice rule is old rule , and the new rule is suggested at this site
http://www.cyberciti.biz/tips/linux-swap-space.html
You can try this example code for create and remove swap script at this stie
http://programmaticponderings.wordpress.com/2013/12/19/scripting-linux-swap-space/
Hope understand your question completely.If not, pls pt it out
Duncan
http://www.cyberciti.biz/tips/linux-swap-space.html
You can try this example code for create and remove swap script at this stie
http://programmaticponderings.wordpress.com/2013/12/19/scripting-linux-swap-space/
Hope understand your question completely.If not, pls pt it out
Duncan
Expert: spravtek replied at 2024-07-31 03:53:18
Did you try using the "recommended" option?
as in:
as in:
According to the docs: The minimum size of the automatically-generated swap partition is no smaller than the amount of RAM in the system and no larger than twice the amount of RAM in the system.
If you want more control you'll need to create something I think ...