1
00:00:00,000 --> 00:00:16,920
Hey guys and welcome back. Now previously we had been talking about tools that we can

2
00:00:16,920 --> 00:00:23,519
use with respect to the EXT based file systems. Now what I want to do is to pivot and talk

3
00:00:23,519 --> 00:00:31,960
about XFS based tools. Now like I say originally XFS was tailored towards high performance but

4
00:00:31,960 --> 00:00:37,920
with advances in EXT systems the performance difference is really quite negligible but

5
00:00:37,920 --> 00:00:44,760
nevertheless traditionally red-hant based systems tend to use the XFS file system structure and

6
00:00:44,760 --> 00:00:50,879
as such we do want to be understanding some of the tools that we have at our disposal to manage

7
00:00:50,960 --> 00:00:57,719
these systems. So one of the tools that we want to be aware of is one called XFS dump. Now what

8
00:00:57,719 --> 00:01:03,160
this tool is going to do for us is going to be used in order to provide backups for a particular

9
00:01:03,160 --> 00:01:10,480
system. So if we do an LSBLK-F let's say for example we wanted to backup our boot directory so

10
00:01:10,480 --> 00:01:19,240
within boot EFI we have SDA1. If we want to backup the contents here we could do that using XFS

11
00:01:19,479 --> 00:01:26,199
dump. So the syntax we could use in this case here as we could say XFS dump dash F and then we

12
00:01:26,199 --> 00:01:31,799
would specify whereabouts we want to create our backup. So let's maybe say we put it in our

13
00:01:31,799 --> 00:01:37,959
temp directory and we call the file backup boot and then we specify what it is we want to backup.

14
00:01:37,959 --> 00:01:44,840
So we would backup boot EFI and in doing so XFS dump would allow us to take the contents here and

15
00:01:45,400 --> 00:01:52,200
back them up right here. So very very useful tool indeed. Now we also have another command with

16
00:01:52,200 --> 00:01:59,880
respect to XFS. This one is called XFS restore. So if you wanted to take the backup that you had

17
00:01:59,880 --> 00:02:04,680
stored within the temp directory I believe we called it something like say backup boot if I'm

18
00:02:04,680 --> 00:02:12,120
not mistaken. We could feed this backup to XFS restore and ultimately restore the contents of

19
00:02:12,200 --> 00:02:19,000
what we have just backed up. Similarly we also have another command called XFS underscore info.

20
00:02:19,000 --> 00:02:24,840
What this is going to do it's going to allow you to see some basic information relating to our XFS

21
00:02:24,840 --> 00:02:30,520
file system and that is information relating to currently mounted file systems. Now one of the

22
00:02:30,520 --> 00:02:38,360
most important tools at least in my opinion is the XFS repair tool. That is ultimately an analog

23
00:02:38,360 --> 00:02:45,480
to Fisk. So it works the same way Fisk does but Fisk if you remember only works on EXT based

24
00:02:45,480 --> 00:02:52,360
systems. So if you happen to have a particular partition that is formatted with XFS you will

25
00:02:52,360 --> 00:03:00,280
not be able to use Fisk on it. Instead what you could use like I say is XFS repair. So really

26
00:03:00,280 --> 00:03:07,640
understand for the purposes of the examination on EXT based systems to repair them no Fisk instead

27
00:03:07,719 --> 00:03:13,079
XFS repair is the tool we're going to be using and we can use it with really quite simple syntax

28
00:03:13,079 --> 00:03:18,119
again we can just say XFS repair and then feed the actual file system that you want to repair

29
00:03:18,119 --> 00:03:25,079
maybe it's SDB1 whatever it may be and ultimately XFS repair is going to try to find any issues and

30
00:03:25,079 --> 00:03:30,839
repair them just in the same way we see when we happen to use the Fisk command. So really for the

31
00:03:30,839 --> 00:03:36,599
purposes of the examination we just want to be aware of that we have different tools with respect

32
00:03:36,599 --> 00:03:44,359
to our XFS based file systems. We can have XFS dump which we can use to create backups we can use

33
00:03:44,359 --> 00:03:50,599
XFS restore to restore those backups if we want to be able to ascertain particular information

34
00:03:50,599 --> 00:03:57,240
about our file system we can use XFS underscore info and since we do not have the ability to use

35
00:03:57,240 --> 00:04:04,120
the Fisk tool instead we can use XFS underscore repair and ultimately receive the same type of

36
00:04:04,120 --> 00:04:10,200
functionality to find and repair problems on our file system this time when we're using XFS

37
00:04:10,200 --> 00:04:16,280
like we often are on red hat based systems. Okay doc so that is us for our quick overview

38
00:04:16,280 --> 00:04:21,560
into the tools within XFS I hope this has been informative for you and I'd like to thank you for viewing.

