Rackspace

  www.rackspace.com
Work in HR? Unlock Free Profile

Rackspace Linux Systems Administrator Interview Question

I interviewed in San Antonio, TX and was asked:
"Add enough swap space to total 4G and make it persist through a reboot."
Add Tags [?]
Answer

Part of a Linux Systems Administrator Interview Review - one of 226 Rackspace Interview Reviews

Answers & Comments

0
of 0
votes
created a 16GB /swapfile;
                [root@dworksdbtest ~]# free -g
                             total used free shared buffers cached
                Mem: 31 0 30 0 0 0
                -/+ buffers/cache: 0 30
                Swap: 19 0 19

                How to create the /swapfile?
                        dd if=/dev/zero of=/swapfile bs=1024 count=16384000 * count = swapsize-in-MB * 1024; 16384000 = 16000 * 1024;
                        mkswap /swapfile
                        in /etc/fstab, added "/swapfile swap swap defaults 0 0"
                        reboot
                        check with 'free -g' and 'cat /proc/swaps'
- jesse on Sep 8, 2013

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.