1 00:00:06,960 --> 00:00:09,630 - In the previous video you've learned about EXT4. 2 00:00:09,630 --> 00:00:11,400 Now let's talk about XFS, 3 00:00:11,400 --> 00:00:14,580 which is the default file system on Red Hat Linux. 4 00:00:14,580 --> 00:00:18,750 Mkfs.xfs is used to create an XFS file system. 5 00:00:18,750 --> 00:00:20,759 And different utilities are offered, 6 00:00:20,759 --> 00:00:24,600 each having a name that starts with xfs_. 7 00:00:24,600 --> 00:00:25,860 If you want to have an overview, 8 00:00:25,860 --> 00:00:28,743 just use XFS underscore and tap completion. 9 00:00:29,610 --> 00:00:33,245 Xfs_admin is the common utility that sets default options, 10 00:00:33,245 --> 00:00:37,710 like the file system label for instance, or a UUID. 11 00:00:37,710 --> 00:00:38,733 Let's check it out. 12 00:00:41,460 --> 00:00:42,293 All right. 13 00:00:42,293 --> 00:00:45,210 Mkfs.xfs - - help. 14 00:00:45,210 --> 00:00:47,490 Just to show you the different options. 15 00:00:47,490 --> 00:00:50,580 And here you can also see that different options 16 00:00:50,580 --> 00:00:54,987 are available and same story applies as for EXT4, 17 00:00:54,987 --> 00:00:57,843 you'll hardly ever use any of these options. 18 00:00:58,738 --> 00:01:03,738 The only option that is required is dev sdb whatever. 19 00:01:05,070 --> 00:01:06,330 The device name where you want 20 00:01:06,330 --> 00:01:08,910 to create your XFS file system. 21 00:01:08,910 --> 00:01:09,840 And there we go. 22 00:01:09,840 --> 00:01:12,270 The XFS file system has now been created. 23 00:01:12,270 --> 00:01:13,500 You can also see the options 24 00:01:13,500 --> 00:01:16,050 that have been used in order to do so. 25 00:01:16,050 --> 00:01:18,894 For an overview of everything that you can do, 26 00:01:18,894 --> 00:01:23,894 type xfs, dap dap, for the specific XFS utilities. 27 00:01:25,140 --> 00:01:27,658 XFS does have a couple of utilities 28 00:01:27,658 --> 00:01:32,193 that allow you to manage the advanced features of XFS. 29 00:01:32,193 --> 00:01:35,160 Like XFS quota for instance, 30 00:01:35,160 --> 00:01:38,970 which allow you to set file system space limitations 31 00:01:38,970 --> 00:01:42,690 or XFS copy, which is specific alternative 32 00:01:42,690 --> 00:01:45,570 to the copy utility that works more efficiently 33 00:01:45,570 --> 00:01:48,708 in an XFS environment. 34 00:01:48,708 --> 00:01:52,789 Now how about xfs info on dev sdb2? 35 00:01:52,789 --> 00:01:55,740 That is just printing the information 36 00:01:55,740 --> 00:01:57,630 from the file system superblock. 37 00:01:57,630 --> 00:01:59,580 So the generic properties. 38 00:01:59,580 --> 00:02:02,343 XFS admin is convenient as well. 39 00:02:04,170 --> 00:02:05,580 Use minus minus help, 40 00:02:05,580 --> 00:02:08,430 even if it's telling you that this is an illegal option. 41 00:02:08,430 --> 00:02:10,860 It'll print what you can do. 42 00:02:10,860 --> 00:02:14,460 And here are the options, of which minus uppercase L 43 00:02:14,460 --> 00:02:17,220 and minus uppercase U are the most common ones. 44 00:02:17,220 --> 00:02:18,808 We'll talk about these later. 45 00:02:18,808 --> 00:02:23,808 Just as a final test, mount dev sdb2 on slash mnt 46 00:02:24,127 --> 00:02:26,160 to check that we can mount it. 47 00:02:26,160 --> 00:02:27,450 And yes, we can mount it. 48 00:02:27,450 --> 00:02:29,973 So we are in business with the XFS file system.