From the course: Linux: Storage Systems
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Solution: Swap space, rsync, and RAID - Linux Tutorial
From the course: Linux: Storage Systems
Solution: Swap space, rsync, and RAID
(upbeat music) - [Instructor] Let's do those challenges. So to start with, we need to make a swap file. So let's make a file of the size we want for swap space, and we'll use dd, and we'll make a zero filled file, and we'll put it in the root of our file system. We'll call it swapspace, and we'll just make it 100 meg, small but illustrative of what we want to do, okay? And for swap file, we probably only want root being able to read or write it. So might be good to change the permission modes there, then we make it swap. There we go, and then we turn swap on for that. There we go, and then we can check with swap on how things look, and there we go. We got 100 meg swap file. Now, let's experiment with rsync for making backups. We want to back up our etc directory, change a file, and then restore it, and the file will be etc host. So let's make a directory where we want to make our little backup. We'll call it tmp/backup, and then we recursively rsync over, and by the way, a cool thing…
Contents
-
-
-
-
-
-
(Locked)
Configure and manage swap space5m 31s
-
(Locked)
Configure remote block-storage devices1m 33s
-
(Locked)
Use targetcli4m 59s
-
(Locked)
Backup and recovery strategies2m 6s
-
(Locked)
Use backup tools1m 53s
-
(Locked)
Assemble RAID devices5m 44s
-
(Locked)
Challenge: Swap space, rsync, and RAID1m 3s
-
(Locked)
Solution: Swap space, rsync, and RAID4m 32s
-
(Locked)
-
-