Adjust the size of the Logical Volume.
Adjust the size of the vo Logical Volume, its file system size should be 290M. Make sure that the content of this system is complete.
Note: the partition size is rarely accurate to the same size as required, so in the range 270M to 320M is acceptable.
Suggested Answer: A
Get Premium EX200 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
28 comments · newest first
JO
Jolene
11 months ago
Wait, can you really reduce the size that much without losing data?
SH
Shawnda
12 months ago
Seems straightforward, but I’d double-check those commands.
TA
Tatum
12 months ago
I thought the resize2fs command was only for EXT4?
BO
Bonita
1 year ago
Totally agree, but make sure to check the range!
HU
Hubert
1 year ago
Just a heads up, the file system size should be around 290M.
RO
Rolande
1 year ago
I’m pretty confident about using `lvscan` to check the logical volumes, but I’m not sure if I should use `e2fsck` before resizing.
CA
Carol
1 year ago
I feel like I need to double-check the commands for unmounting the filesystem before resizing. Did we cover that in the labs?
FR
Frederick
1 year ago
I think we did a similar question where we had to adjust a logical volume size, but I can't recall if we used `xfs_growfs` or just `resize2fs` for EXT4.
CA
Casandra
1 year ago
I remember practicing with `lvextend` and `resize2fs`, but I'm a bit unsure about the exact order of commands.
PA
Paola
1 year ago
Alright, this seems doable. I'll start by verifying the current size, then use the appropriate LVM commands to resize the volume. Gotta be careful not to go outside that 270-320M range they mentioned. Shouldn't be too tricky if I take it step-by-step.
WA
Wayne
1 year ago
Whoa, resizing an LVM, that's a new one for me. I better read the instructions carefully and make sure I don't accidentally delete any data. Maybe I'll start by checking the partition size and then go from there.
RO
Roosevelt
1 year ago
Okay, let me think this through step-by-step. First I'll use `df -hT` to see the current size, then use `lvextend` or `lvreduce` to adjust it, and finally run `resize2fs` to update the file system. Gotta make sure the content stays intact too.
RI
Rikki
1 year ago
Hmm, this looks like a straightforward LVM resizing task. I'll need to check the current size, then either extend or reduce the volume as needed to reach the 290M target.
TI
Tiffiny
2 years ago
Haha, 'the partition size is rarely accurate' - that's a nice way of saying 'good luck guessing the right size!'
JU
Junita
1 year ago
User 3: Subtraction: e2fsck -f/dev/vg0/vo, umount /home, resize2fs /dev/vg0/vo, lvreduce -l 100M /dev/vg0/vo, mount /dev/vg0/vo/home, df -hT
ET
Ethan
1 year ago
User 2: Addition: df -hT, lvextend -L +100M /dev/vg0/vo, xfs_growfs /home, resize2fs /dev/vg0/vo, df -hT
AL
Alita
1 year ago
User 1: I know right, it's like a guessing game!
RO
Rory
2 years ago
I'm not sure about the 'content of the system must be complete' part. Does that mean I need to back up the data first?
LA
Lanie
1 year ago
If you have any doubts or concerns, feel free to ask for clarification.
LA
Lamonica
1 year ago
Just make sure to follow the instructions carefully to ensure the process is successful.
KA
Kaitlyn
1 year ago
User 2
GW
Gwenn
1 year ago
You can follow the steps provided to adjust the size of the Logical Volume.
TI
Timothy
2 years ago
User 1
CA
Caprice
2 years ago
No, adjusting the size of the Logical Volume does not require backing up the data.
FE
Felicitas
2 years ago
This seems straightforward. I'll just need to expand the logical volume and resize the file system to get the desired size.
DA
Daniel
2 years ago
Should we use the lvextend command to increase the size?
CH
Cheryl
2 years ago
Yes, I agree. The file system size should be 290M.
DA
Daniel
2 years ago
I think we need to adjust the size of the Logical Volume.