File System select BtrFS 11 Under the Mounting Options select Mount partition

File system select btrfs 11 under the mounting

This preview shows page 141 - 146 out of 168 pages.

File System select BtrFS 11. Under the Mounting Options select Mount partition and for the mount point enter: /mybtrfs 12.Click Finish → Next → Finish 13.Close YaST 14.Check the filesystem is mounted: mount You should see output that indicates the filesystem is mounted. Summary: In this task you created a new BtrFS filesystem and mounted it on /mybtrfs . (End of Exercise) 141 SUSE Internal and Partner Use Only Do Not Distribute
Image of page 141
SUSE Linux Enterprise Server Advanced Administration 11- 8 Convert an Existing Directory into a Subvolume Description: In this exercise you convert an existing directory into a BtrFS subvolume. Task 1: Open a terminal session 1. On server1 , as the tux user, open a terminal by clicking on the Activities menu and type: terminal When the Terminal icon appears, click on it to start a terminal session. 2. Enter the following command to become the root user: su - When prompted, enter linux for the root user’s password. Task 2: Convert an Existing Directory into a Subvolume 1. To create a new directory, enter: mkdir /btrfssubvol 2. To create some content for the data directory, enter cp /bin/* /btrfssubvol 3. Open a terminal window and enter the following command to list the existing subvolumes in / : btrfs subvolume list / You may have to scroll back up the buffer to view the subvolumes that are not snapshots 4. Enter the following command to view the contents of the /btrfssubvol directory: ls -l /btrfssubvol 5. Enter the following command to convert an existing directory into a subvolume: mv /btrfssubvol /mybtrfs-orig btrfs subvolume create /btrfssubvol cp -a /mybtrfs-orig/. /btrfssubvol/ rm -r /mybtrfs-orig 6. Enter the following commands to view the changes: ls -l /btrfssubvol 142 SUSE Internal and Partner Use Only Do Not Distribute
Image of page 142
SUSE Linux Enterprise Server Advanced Administration 7. You should see the same contents in the /btrfssubvol subvolume as was in the original /btrfssubvol directory. 8. Enter the following commands to view the changes: btrfs subvolume list / 9. You should also see that /btrfssubvol is listed as a new subvolume. 143 SUSE Internal and Partner Use Only Do Not Distribute
Image of page 143
SUSE Linux Enterprise Server Advanced Administration Summary: In this task you created a new directory /btrfssubvol and copied the content of the / bin directory into it. This directory was then converted into a BtrFS subvolume. (End of Exercise) 144 SUSE Internal and Partner Use Only Do Not Distribute
Image of page 144
SUSE Linux Enterprise Server Advanced Administration 11- 9 Work with Btrfs Description: In this exercise you will work with BtrFS. Task 1: Display Volume and Subvolume Information 1. On server1 , as the tux user, open a terminal by clicking on the Activities menu and type: terminal When the Terminal icon appears, click on it to start a terminal session. 2. Enter the following command to become the root user: su - When prompted, enter linux for the root user’s password. 3. Display what is mounted on server1 with: mount Notice that /dev/sda2 appears to be mounted many times, but with different mount points 1. List the subvolumes of the root filesystem:
Image of page 145
Image of page 146

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture