Академический Документы
Профессиональный Документы
Культура Документы
http://rhel6notes.blogspot.in/search/label/swap
Share
More
Next Blog
Create Blog
Sign In
About ME The main purpose of this site is to dump all my notes on Redhat certification RHCSA/RHEL. If you have comments and suggestions, please do email me on mctofferatgmaildotcom
Creating Swap
Creating swap thru disk partition
[root@rhel02 ~]# free -m total used free shared buffers cached Mem: 997 254 743 0 2 114 -/+ buffers/cache: 137 859 Swap: 2015 0 2015
Labels . (1) /info/Quick_Notes (4) /info/RHCE_Exam_Obje ctives (2) accounts (2) apache (2) Archive and Compression (1) bind (1) filesystem (7) grub (1) iptables (3) Journal (5) kickstart (1) KVM (1) Lab station (1) luks (1) LVM (2) mail servers (1) nfs (1) ntp (1) parted (2)
Add the newly created swap
[root@rhel02 ~]# swapon /dev/sdb1 [root@rhel02 ~]# swapon -s Filename Type Size Used Priority /dev/dm-1 partition 2064376 0 -1 /dev/sdb1 partition 195304 0 -2 [root@rhel02 ~]# free -m total used free shared buffers cached Mem: 997 262 735 0 6 115 -/+ buffers/cache: 140 856
1 of 3
http://rhel6notes.blogspot.in/search/label/swap
ports (1) RAID (1) remote access (1) RHCSA/RHEL Books and Sites (1) rpm (2) runlevels (1) security (4) selinux (1) ssh (1) swap (1) system messages (1) YUM (2)
[root@rhel02 ~]# mkswap /tmp_swap/swapfile mkswap: /tmp_swap/swapfile: warning: don't erase bootbits sectors on whole disk. Use -f to force. Setting up swapspace version 1, size = 204796 KiB no label, UUID=5d77de02-b28f-43a1-9410-fed6d05172c4d
[root@rhel02 ~]# swapon /tmp_swap/swapfile [root@rhel02 ~]# swapon -s Filename Type Size Used Priority /dev/dm-1 partition 2064376 0 -1 /dev/sdb1 partition 195304 0 -2 /tmp_swap/swapfile file 202288 0 -3 [root@rhel02 ~]# free -m total used free shared buffers cached Mem: 997 491 505 0 11 315 -/+ buffers/cache: 164 833 Swap: 2404 0 2404
Remove swap
[root@rhel02 ~]# swapoff /tmp_swap/swapfile [root@rhel02 ~]# swapoff /dev/sdb1 [root@rhel02 ~]# swapon -s Filename Type Size Used Priority /dev/dm-1 partition 2064376 0 -
Ready To Play?
Quikr.com/treasure Play for Free & Win Recharge worth Rs.1 Lakh Everday. Play Now.
No comments:
Followers
Home
Older Posts
2 of 3
http://rhel6notes.blogspot.in/search/label/swap
Subscribe to: Posts (Atom)
Members (3)
RHEV Blog
Installare RPMFORGE REPO e LSHW su RHEL e CentOS
2 weeks ago
Linux Superuser
Configure YUM server to install/update packages on remote server
5 weeks ago
3 of 3