LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   LVM - Is it possible ? (https://www.linuxquestions.org/questions/linux-server-73/lvm-is-it-possible-4175736380/)

LinuxRSA 04-24-2024 08:11 AM

LVM - Is it possible ?
 
1 Attachment(s)
Hi LVM's Gurus.

Below is my disk layout on my Vm.

I have managed to add the /dev/mapper/datavg-data 251G using LVM.

Code:

root@testserver-01:~# df -h
Filesystem              Size  Used Avail Use% Mounted on
/dev/root                62G  1.7G  61G  3% /
tmpfs                    24G    0  24G  0% /dev/shm
tmpfs                    9.5G  1.0M  9.5G  1% /run
tmpfs                    5.0M    0  5.0M  0% /run/lock
efivarfs                128M  10K  128M  1% /sys/firmware/acd
/dev/sda15              105M  6.1M  99M  6% /boot/efi
/dev/sdb1                94G  28K  90G  1% /mnt
tmpfs                    4.8G  4.0K  4.8G  1% /run/user/1000
/dev/mapper/datavg-data  251G  28K  239G  1% /data
root@testserver-01:~#
root@testserver-01:~# lsblk
NAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
loop0          7:0    0 63.9M  1 loop /snap/core20/2182
loop1          7:1    0  87M  1 loop /snap/lxd/27948
loop2          7:2    0 39.1M  1 loop /snap/snapd/21184
loop3          7:3    0 38.7M  1 loop /snap/snapd/21465
loop4          7:4    0  87M  1 loop /snap/lxd/28373
sda            8:0    0  64G  0 disk
├─sda1          8:1    0 63.9G  0 part /
├─sda14        8:14  0    4M  0 part
└─sda15        8:15  0  106M  0 part /boot/efi
sdb            8:16  0  96G  0 disk
└─sdb1          8:17  0  96G  0 part /mnt
sdc            8:32  0  256G  0 disk
└─datavg-data 252:0    0  256G  0 lvm  /data
root@testserver-01:~#

Are you able to advise if the below/attached layout for sda can be achieved ? or will this break the system ?


Thanks

jmgibson1981 04-24-2024 11:48 AM

I don't know what you mean by breaking the system. As long as the drives have room for whatever structure you make with LVM there are no realistic limits on volume groups and logical volumes that you will hit. Hardware limits based on how many drives you can plug in but otherwise no it shouldn't be an issue.

rknichols 04-24-2024 01:40 PM

If your question is about converting an existing installation to LVM, the answer is that it can, with great difficulty, be done, but if you have to ask, that suggests that you might not have the knowledge needed to be successful at it. Sometimes, though, simply knowing that something is possible is all the inspiration that you need.

But, the separate /usr filesystem could be a problem. Many (most?) distros today no longer support a separate /usr filesystem. The final nail in the coffin was when /bin and /sbin became symlinks to /usr/bin and /usr/sbin, respectively.


All times are GMT -5. The time now is 09:19 AM.