Extending filesystem.
1. Extending a Filesystem by size, with -L option , where as +{size}M,G,T,P,E accordingly
# lvextend -L +20G /dev/mapper/datavg-mylvm && resize2fs /dev/mapper/datavg-mylvm && df -h /opt/app1
2. Extending a Filesystem using free/extents with -l option to extend by extent.
# vgdisplay datavg | grep Free
Note: Make sure to record the free extents.
# lvextend -l +220 /dev/mapper/datavg-mylvm && resize2fs /dev/mapper/datavg-mylvm && df -h /opt/app1
# df -h | tee -a /tmp/fs.out
1. Extending a Filesystem by size, with -L option , where as +{size}M,G,T,P,E accordingly
# lvextend -L +20G /dev/mapper/datavg-mylvm && resize2fs /dev/mapper/datavg-mylvm && df -h /opt/app1
2. Extending a Filesystem using free/extents with -l option to extend by extent.
# vgdisplay datavg | grep Free
Note: Make sure to record the free extents.
# lvextend -l +220 /dev/mapper/datavg-mylvm && resize2fs /dev/mapper/datavg-mylvm && df -h /opt/app1
# df -h | tee -a /tmp/fs.out
No comments:
Post a Comment