<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article PTA - How to expand volume group /dev/mapper/rhel-root in PAM Self-Hosted Articles</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/pta-how-to-expand-volume-group-dev-mapper-rhel-root/ta-p/1428083</link>
    <description>&lt;P&gt;When installing RedHat Enterprise Linux through the Anaconda installer to prepare a &lt;A href="https://community.cyberark.com/s/article/PTA-Checking-for-supported-OS-installation" target="_self"&gt;minimal installation&lt;/A&gt;, where automatic partitioning/storage configuration were chosen, the 500 GB disk will be partitioned with only ~70 GB to the root volume group and mount point (under /), and the rest will be&amp;nbsp; allocated to a separate "home" volume group and mount point (under /home).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This impacts the system because the volume group "root" (dev/mapper/rhel-root) is the '/' directory, whereas the volume group "home" (/dev/mapper/rhel-home) is the '/home' directory, thus the entire filesystem except /home/ only has 70G of space available, a small fraction of the PTA disk requirement of 500G&lt;/P&gt;
&lt;H3&gt;Steps&lt;/H3&gt;
&lt;P&gt;&lt;B&gt;---You MUST be root to perform the below steps---&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;1. Check the current disk status to ensure dev/mapper/rhel-root and a separate volume group rhel-home exists:&lt;BR /&gt;&lt;I&gt;df -h&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# df -h
Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size &amp;nbsp;Used Avail Use% Mounted on&lt;BR /&gt;devtmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.0M &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;4.0M &amp;nbsp; 0% /dev&lt;BR /&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.8G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;7.8G &amp;nbsp; 0% /dev/shm&lt;BR /&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.2G &amp;nbsp;9.1M &amp;nbsp;3.2G &amp;nbsp; 1% /run&lt;BR /&gt;efivarfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 256K &amp;nbsp; 56K &amp;nbsp;196K &amp;nbsp;23% /sys/firmware/efi/efivars&lt;BR /&gt;&lt;SPAN style="color: #e74c3c;"&gt;&lt;STRONG&gt;/dev/mapper/rhel-root &amp;nbsp; 70G &amp;nbsp;1.9G &amp;nbsp; 69G &amp;nbsp; 3% /&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;/dev/nvme0n1p2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 960M &amp;nbsp;193M &amp;nbsp;768M &amp;nbsp;21% /boot&lt;BR /&gt;/dev/nvme0n1p1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 599M &amp;nbsp;7.1M &amp;nbsp;592M &amp;nbsp; 2% /boot/efi&lt;BR /&gt;&lt;SPAN style="color: #e74c3c;"&gt;&lt;STRONG&gt;/dev/mapper/rhel-home &amp;nbsp;421G &amp;nbsp;3.0G &amp;nbsp;418G &amp;nbsp; 1% /home&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.6G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;1.6G &amp;nbsp; 0% /run/user/0
&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;lvs&lt;/EM&gt;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# lvs
&amp;nbsp; LV &amp;nbsp; VG &amp;nbsp; Attr &amp;nbsp; &amp;nbsp; &amp;nbsp; LSize &amp;nbsp; Pool Origin Data% &amp;nbsp;Meta% &amp;nbsp;Move Log Cpy%Sync Convert&lt;BR /&gt;&amp;nbsp; home rhel -wi-ao---- 420.55g&lt;BR /&gt;&amp;nbsp; root rhel -wi-ao---- &amp;nbsp;70.00g&lt;BR /&gt;&amp;nbsp; swap rhel -wi-ao---- &amp;nbsp;&amp;lt;7.86g.
&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;2. Stop PTA services (if installed)&lt;BR /&gt;&lt;I&gt;service appmgr stop&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3. Copy everything from the home directory out&lt;BR /&gt;&lt;I&gt;cp -a /home /home2&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;4. Unmount the volume&lt;BR /&gt;&lt;I&gt;umount /dev/mapper/rhel-home&amp;nbsp;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;5. Delete the home logical volume&lt;BR /&gt;&lt;I&gt;lvremove /dev/mapper/rhel-home&amp;nbsp;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;Example:&amp;nbsp;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# lvremove /dev/mapper/rhel-home
Do you really want to remove active logical volume rhel/home? [y/n]: y
&amp;nbsp; Logical volume "home" successfully removed&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;6. Extend the root logical volume to take up the rest of the space&lt;BR /&gt;&lt;I&gt;lvextend -l +100%FREE /dev/mapper/rhel-root (lvextend -l +100%FREE /dev/mapper/rhel-root)&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# lvextend -l +100%FREE /dev/mapper/rhel-root
&amp;nbsp; Size of logical volume rhel/root changed from 70.00 GiB (17920 extents) to 481.12 GiB (125582 extents).
&amp;nbsp; Logical volume rhel/root successfully resized.&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;7. Extend the xfs partition&lt;BR /&gt;&lt;I&gt;xfs_growfs /dev/mapper/rhel-root&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# xfs_growfs /dev/mapper/rhel-root
meta-data=/dev/mapper/rhel-root &amp;nbsp;isize=512 &amp;nbsp; &amp;nbsp;agcount=4, agsize=3276800 blks
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sectsz=512 &amp;nbsp; attr=2, projid32bit=1
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; crc=1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;finobt=0 spinodes=0
data &amp;nbsp; &amp;nbsp; = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bsize=4096 &amp;nbsp; blocks=183500080, imaxpct=25
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sunit=0 &amp;nbsp; &amp;nbsp; &amp;nbsp;swidth=0 blks
naming &amp;nbsp; =version 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bsize=4096 &amp;nbsp; ascii-ci=0 ftype=1
log &amp;nbsp; &amp;nbsp; &amp;nbsp;=internal &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bsize=4096 &amp;nbsp; blocks=6400, version=2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sectsz=512 &amp;nbsp; sunit=0 blks, lazy-count=1
realtime =none &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; extsz=4096 &amp;nbsp; blocks=0, rtextents=0
data blocks changed from 18350080 to 128595968&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;8. Check that /dev/mapper/rhel-root (/dev/mapper/rhel-root) has been increased in size and that the volume group /dev/mapper/rhel-home (/dev/mapper/rhel-home) has been removed&lt;BR /&gt;&lt;I&gt;df -h&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# df -h
Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size &amp;nbsp;Used Avail Use% Mounted on&lt;BR /&gt;devtmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.0M &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;4.0M &amp;nbsp; 0% /dev&lt;BR /&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.8G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;7.8G &amp;nbsp; 0% /dev/shm&lt;BR /&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.2G &amp;nbsp;9.1M &amp;nbsp;3.2G &amp;nbsp; 1% /run&lt;BR /&gt;efivarfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 256K &amp;nbsp; 56K &amp;nbsp;196K &amp;nbsp;23% /sys/firmware/efi/efivars&lt;BR /&gt;&lt;SPAN style="color: #2ecc71;"&gt;&lt;STRONG&gt;/dev/mapper/rhel-root &amp;nbsp;491G &amp;nbsp;4.8G &amp;nbsp;486G &amp;nbsp; 1% /&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;/dev/nvme0n1p2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 960M &amp;nbsp;193M &amp;nbsp;768M &amp;nbsp;21% /boot&lt;BR /&gt;/dev/nvme0n1p1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 599M &amp;nbsp;7.1M &amp;nbsp;592M &amp;nbsp; 2% /boot/efi&lt;BR /&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.6G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;1.6G &amp;nbsp; 0% /run/user/0&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;lvs&lt;/EM&gt;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# lvs
&amp;nbsp; LV &amp;nbsp; VG &amp;nbsp; Attr &amp;nbsp; &amp;nbsp; &amp;nbsp; LSize &amp;nbsp; Pool Origin Data% &amp;nbsp;Meta% &amp;nbsp;Move Log Cpy%Sync Convert&lt;BR /&gt;  root rhel -wi-ao---- 490.55g&lt;BR /&gt;&amp;nbsp; swap rhel -wi-ao---- &amp;nbsp;&amp;lt;7.86g.
&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;9. Move the home directory data back and remove the temporary home2 directory&lt;BR /&gt;&lt;I&gt;mv /home2/* /home/&lt;BR /&gt;rmdir /home2&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;10. Remove the /dev/mapper/cl-home (lvremove /dev/mapper/centos-home) entry from /etc/fstab&lt;BR /&gt;&lt;I&gt;vi /etc/fstab&lt;BR /&gt;&lt;/I&gt;&lt;BR /&gt;DELETE the line:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;/dev/mapper/rhel-home &amp;nbsp; &amp;nbsp; /home &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xfs &amp;nbsp; &amp;nbsp; defaults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 0&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;11. Start PTA&lt;BR /&gt;&lt;I&gt;service appmgr start&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;12. Run Diagnostics to ensure PTA is functioning again:&lt;BR /&gt;&lt;I&gt;RUN_DIAGNOSTICS&lt;/I&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Mar 2025 12:10:23 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2025-03-25T12:10:23Z</dc:date>
    <item>
      <title>PTA - How to expand volume group /dev/mapper/rhel-root</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/pta-how-to-expand-volume-group-dev-mapper-rhel-root/ta-p/1428083</link>
      <description>&lt;P&gt;When installing RedHat Enterprise Linux through the Anaconda installer to prepare a &lt;A href="https://community.cyberark.com/s/article/PTA-Checking-for-supported-OS-installation" target="_self"&gt;minimal installation&lt;/A&gt;, where automatic partitioning/storage configuration were chosen, the 500 GB disk will be partitioned with only ~70 GB to the root volume group and mount point (under /), and the rest will be&amp;nbsp; allocated to a separate "home" volume group and mount point (under /home).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This impacts the system because the volume group "root" (dev/mapper/rhel-root) is the '/' directory, whereas the volume group "home" (/dev/mapper/rhel-home) is the '/home' directory, thus the entire filesystem except /home/ only has 70G of space available, a small fraction of the PTA disk requirement of 500G&lt;/P&gt;
&lt;H3&gt;Steps&lt;/H3&gt;
&lt;P&gt;&lt;B&gt;---You MUST be root to perform the below steps---&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;1. Check the current disk status to ensure dev/mapper/rhel-root and a separate volume group rhel-home exists:&lt;BR /&gt;&lt;I&gt;df -h&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# df -h
Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size &amp;nbsp;Used Avail Use% Mounted on&lt;BR /&gt;devtmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.0M &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;4.0M &amp;nbsp; 0% /dev&lt;BR /&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.8G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;7.8G &amp;nbsp; 0% /dev/shm&lt;BR /&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.2G &amp;nbsp;9.1M &amp;nbsp;3.2G &amp;nbsp; 1% /run&lt;BR /&gt;efivarfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 256K &amp;nbsp; 56K &amp;nbsp;196K &amp;nbsp;23% /sys/firmware/efi/efivars&lt;BR /&gt;&lt;SPAN style="color: #e74c3c;"&gt;&lt;STRONG&gt;/dev/mapper/rhel-root &amp;nbsp; 70G &amp;nbsp;1.9G &amp;nbsp; 69G &amp;nbsp; 3% /&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;/dev/nvme0n1p2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 960M &amp;nbsp;193M &amp;nbsp;768M &amp;nbsp;21% /boot&lt;BR /&gt;/dev/nvme0n1p1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 599M &amp;nbsp;7.1M &amp;nbsp;592M &amp;nbsp; 2% /boot/efi&lt;BR /&gt;&lt;SPAN style="color: #e74c3c;"&gt;&lt;STRONG&gt;/dev/mapper/rhel-home &amp;nbsp;421G &amp;nbsp;3.0G &amp;nbsp;418G &amp;nbsp; 1% /home&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.6G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;1.6G &amp;nbsp; 0% /run/user/0
&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;lvs&lt;/EM&gt;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# lvs
&amp;nbsp; LV &amp;nbsp; VG &amp;nbsp; Attr &amp;nbsp; &amp;nbsp; &amp;nbsp; LSize &amp;nbsp; Pool Origin Data% &amp;nbsp;Meta% &amp;nbsp;Move Log Cpy%Sync Convert&lt;BR /&gt;&amp;nbsp; home rhel -wi-ao---- 420.55g&lt;BR /&gt;&amp;nbsp; root rhel -wi-ao---- &amp;nbsp;70.00g&lt;BR /&gt;&amp;nbsp; swap rhel -wi-ao---- &amp;nbsp;&amp;lt;7.86g.
&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;2. Stop PTA services (if installed)&lt;BR /&gt;&lt;I&gt;service appmgr stop&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3. Copy everything from the home directory out&lt;BR /&gt;&lt;I&gt;cp -a /home /home2&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;4. Unmount the volume&lt;BR /&gt;&lt;I&gt;umount /dev/mapper/rhel-home&amp;nbsp;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;5. Delete the home logical volume&lt;BR /&gt;&lt;I&gt;lvremove /dev/mapper/rhel-home&amp;nbsp;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;Example:&amp;nbsp;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# lvremove /dev/mapper/rhel-home
Do you really want to remove active logical volume rhel/home? [y/n]: y
&amp;nbsp; Logical volume "home" successfully removed&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;6. Extend the root logical volume to take up the rest of the space&lt;BR /&gt;&lt;I&gt;lvextend -l +100%FREE /dev/mapper/rhel-root (lvextend -l +100%FREE /dev/mapper/rhel-root)&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# lvextend -l +100%FREE /dev/mapper/rhel-root
&amp;nbsp; Size of logical volume rhel/root changed from 70.00 GiB (17920 extents) to 481.12 GiB (125582 extents).
&amp;nbsp; Logical volume rhel/root successfully resized.&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;7. Extend the xfs partition&lt;BR /&gt;&lt;I&gt;xfs_growfs /dev/mapper/rhel-root&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# xfs_growfs /dev/mapper/rhel-root
meta-data=/dev/mapper/rhel-root &amp;nbsp;isize=512 &amp;nbsp; &amp;nbsp;agcount=4, agsize=3276800 blks
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sectsz=512 &amp;nbsp; attr=2, projid32bit=1
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; crc=1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;finobt=0 spinodes=0
data &amp;nbsp; &amp;nbsp; = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bsize=4096 &amp;nbsp; blocks=183500080, imaxpct=25
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sunit=0 &amp;nbsp; &amp;nbsp; &amp;nbsp;swidth=0 blks
naming &amp;nbsp; =version 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bsize=4096 &amp;nbsp; ascii-ci=0 ftype=1
log &amp;nbsp; &amp;nbsp; &amp;nbsp;=internal &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bsize=4096 &amp;nbsp; blocks=6400, version=2
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sectsz=512 &amp;nbsp; sunit=0 blks, lazy-count=1
realtime =none &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; extsz=4096 &amp;nbsp; blocks=0, rtextents=0
data blocks changed from 18350080 to 128595968&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;8. Check that /dev/mapper/rhel-root (/dev/mapper/rhel-root) has been increased in size and that the volume group /dev/mapper/rhel-home (/dev/mapper/rhel-home) has been removed&lt;BR /&gt;&lt;I&gt;df -h&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# df -h
Filesystem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size &amp;nbsp;Used Avail Use% Mounted on&lt;BR /&gt;devtmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.0M &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;4.0M &amp;nbsp; 0% /dev&lt;BR /&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.8G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;7.8G &amp;nbsp; 0% /dev/shm&lt;BR /&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.2G &amp;nbsp;9.1M &amp;nbsp;3.2G &amp;nbsp; 1% /run&lt;BR /&gt;efivarfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 256K &amp;nbsp; 56K &amp;nbsp;196K &amp;nbsp;23% /sys/firmware/efi/efivars&lt;BR /&gt;&lt;SPAN style="color: #2ecc71;"&gt;&lt;STRONG&gt;/dev/mapper/rhel-root &amp;nbsp;491G &amp;nbsp;4.8G &amp;nbsp;486G &amp;nbsp; 1% /&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;/dev/nvme0n1p2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 960M &amp;nbsp;193M &amp;nbsp;768M &amp;nbsp;21% /boot&lt;BR /&gt;/dev/nvme0n1p1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 599M &amp;nbsp;7.1M &amp;nbsp;592M &amp;nbsp; 2% /boot/efi&lt;BR /&gt;tmpfs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.6G &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;1.6G &amp;nbsp; 0% /run/user/0&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;lvs&lt;/EM&gt;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;[root@ptaserver /]# lvs
&amp;nbsp; LV &amp;nbsp; VG &amp;nbsp; Attr &amp;nbsp; &amp;nbsp; &amp;nbsp; LSize &amp;nbsp; Pool Origin Data% &amp;nbsp;Meta% &amp;nbsp;Move Log Cpy%Sync Convert&lt;BR /&gt;  root rhel -wi-ao---- 490.55g&lt;BR /&gt;&amp;nbsp; swap rhel -wi-ao---- &amp;nbsp;&amp;lt;7.86g.
&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;9. Move the home directory data back and remove the temporary home2 directory&lt;BR /&gt;&lt;I&gt;mv /home2/* /home/&lt;BR /&gt;rmdir /home2&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;10. Remove the /dev/mapper/cl-home (lvremove /dev/mapper/centos-home) entry from /etc/fstab&lt;BR /&gt;&lt;I&gt;vi /etc/fstab&lt;BR /&gt;&lt;/I&gt;&lt;BR /&gt;DELETE the line:&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;/dev/mapper/rhel-home &amp;nbsp; &amp;nbsp; /home &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xfs &amp;nbsp; &amp;nbsp; defaults &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 0&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;11. Start PTA&lt;BR /&gt;&lt;I&gt;service appmgr start&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;12. Run Diagnostics to ensure PTA is functioning again:&lt;BR /&gt;&lt;I&gt;RUN_DIAGNOSTICS&lt;/I&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 12:10:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/pta-how-to-expand-volume-group-dev-mapper-rhel-root/ta-p/1428083</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-03-25T12:10:23Z</dc:date>
    </item>
  </channel>
</rss>

