LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-24-2024, 08:11 AM   #1
LinuxRSA
Member
 
Registered: Apr 2015
Location: South Africa
Posts: 71

Rep: Reputation: Disabled
LVM - Is it possible ?


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
Attached Thumbnails
Click image for larger version

Name:	Disk layout.png
Views:	15
Size:	201.3 KB
ID:	42733  
 
Old 04-24-2024, 11:48 AM   #2
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,141

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
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.
 
Old 04-24-2024, 01:40 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,780

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to change non-LVM to LVM? darthfoolish Linux - Software 2 08-01-2008 03:47 AM
LVM and multiple iSCSI disks performance of LVM xxx_anuj_xxx Linux - Server 4 05-01-2008 12:26 PM
LXer: Managing LVM with the LVM Manager LXer Syndicated Linux News 0 03-16-2008 11:10 AM
LXer: Back Up (And Restore) LVM Partitions With LVM Snapshots LXer Syndicated Linux News 0 04-17-2007 11:16 AM
To LVM or not to LVM? illtbagu Linux - Software 3 12-29-2003 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration