Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-4018

CL110-418: Content on the guide is wrong and misleading

XMLWordPrintable

    • 10
    • en-US (English)

      URL: https://role.rhu.redhat.com/rol-rhu/app/courses/cl110-16.1/pages/ch10s02
      Reporter RHNID: enothen, msameer-admin
      Section: ch10s02 - Lab: Configure a Project and Resources
      Language: en-US (English)||||||||
      Workaround:

      Description: I believe the content on the guide is wrong and misleading.

      On chapter 10, lab "Configure a Project and Resources", step 8.5 is issuing a parted command to create a partition of size 1G. However, that partition is never created (with the example command), and instead, the same existing partition is used subsequently, as you can confirm by looking at the "Size" column on parted, both before and after running the example command:

      ~~~
      [root@accounts-web1 ~]# parted /dev/vdd print
      Model: Virtio Block Device (virtblk)
      Disk /dev/vdd: 10.7GB
      Sector size (logical/physical): 512B/512B
      Partition Table: msdos
      Disk Flags:

      Number Start End Size Type File system Flags
      1 1049kB 8390MB 8389MB primary boot

      [root@accounts-web1 ~]# parted /dev/vdd1 mklabel msdos mkpart primary xfs 1M 1G
      Warning: The existing disk label on /dev/vdd1 will be destroyed and all data on this disk will be lost. Do you
      want to continue?
      Yes/No? Yes
      Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
      26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
      54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/vdd1 have been written, but we have been unable to inform the
      kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in
      use. You should reboot now before making further changes.
      Ignore/Cancel? ignore
      Information: You may need to update /etc/fstab.

      [root@accounts-web1 ~]# parted /dev/vdd print
      Model: Virtio Block Device (virtblk)
      Disk /dev/vdd: 10.7GB
      Sector size (logical/physical): 512B/512B
      Partition Table: msdos
      Disk Flags:

      Number Start End Size Type File system Flags
      1 1049kB 8390MB 8389MB primary boot
      ~~~

      This other way, however, correctly replaces the existing partition with a new one ending on 1GB:
      ~~~
      [root@accounts-web1 ~]# parted /dev/vdd print
      Model: Virtio Block Device (virtblk)
      Disk /dev/vdd: 10.7GB
      Sector size (logical/physical): 512B/512B
      Partition Table: msdos
      Disk Flags:

      Number Start End Size Type File system Flags
      1 1049kB 8390MB 8389MB primary boot

      [root@accounts-web1 ~]# parted --script /dev/vdd mklabel msdos mkpart primary xfs 1M 1G
      [root@accounts-web1 ~]# parted /dev/vdd print
      Model: Virtio Block Device (virtblk)
      Disk /dev/vdd: 10.7GB
      Sector size (logical/physical): 512B/512B
      Partition Table: msdos
      Disk Flags:

      Number Start End Size Type File system Flags
      1 1049kB 1000MB 999MB primary

      [root@accounts-web1 ~]#
      ~~~

              rhn-support-sdhange Shreya Dhange
              msameer-admin Mohammed Sameer (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: