linux create swap after installation
create SWAP of 16Gb after installation under RHES5:
start parted
parted> mkpartfs primary linux-swap START END (start, end in Megabytes 16gb=16000 mb !!!!!!!!!!!!!!!!), do not calc with 1024
parted>print
Model: IBM ServeRAID-MR10i (scsi)
Disk /dev/sda: 146GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 107MB 107MB primary ext3 boot
2 107MB 21.6GB 21.5GB primary lvm
3 21.6GB 25.9GB 4294MB primary linux-swap
4 25.9GB 41.9GB 16.0GB primary linux-swap
parted>quit
mkswap -L SWAP-sda4 /dev/sda4
create /etc/fstab entry
...
LABEL=SWAP-sda4 swap swap defaults 0 0
swapon -a
check:
[root@hostname]# swapon -s
Filename Type Size Used Priority
/dev/sda3 partition 4192956 0 -1
/dev/sda4 partition 15624992 0 -2
wen es interressiert ;-)
ciao
CM²S
____________________________________
\"wann amoi de blaun denen grean an rodn dewich ausroin, daunn siach i schwoaz\"
Gedicht aus \"Eigfleischte Wegetaria und aundare meakwürdikeiten, Andreas Nastl
http://lichtschwarz.tv
|