EX200 Exam QuestionsBrowse all questions from this exam

EX200 Exam - Question 51


SIMULATION -

One Logical Volume named /dev/test0/testvolume1 is created. The initial Size of that disk is 100MB now you required more 200MB. Increase the size of Logical

Volume, size should be increase on online.

Show Answer
Correct Answer:

To increase the size of a logical volume by 200MB while the file system is online, the lvextend command is used. The appropriate command to increase the logical volume by 200MB would be 'lvextend -L+200M /dev/test0/testvolume1'. Additionally, the '-r' option can be used to resize the filesystem together with the logical volume, making it 'lvextend -L+200M -r /dev/test0/testvolume1'. This command ensures that the logical volume is extended by 200MB and the file system size is adjusted accordingly without requiring manual intervention.

Discussion

4 comments
Sign in to comment
mattd81
May 17, 2022

lvextend -L 200M -r /dev/test0/testvolume1 lvdisplay or lvs to verify

Kicod
Aug 7, 2023

lvresize -r -L 200M /dev/test0/testvolume1

rajat3204
Nov 13, 2023

lvextend -r -L 200M /dev/vo/myvol

ly01
Jul 11, 2024

the question asks for MORE 200MB. Correct command should be sudo lvresize /dev/datastore/database --resizefs --size +200M