Linux LVM Partition /dev/sda3Partition sda3 is the 3rd partition on disk sda, which is your first disk seen by the controller.
The above example show that /dev/sda3 is under LVM control providing the vm211 volume group. The volume group vm211 contains 2 logical volumes: lv_root and lv_swap.
# pvs PV VG Fmt Attr PSize PFree /dev/sda3 vg_vm211 lvm2 a-- 19.51g 0 # lvscan ACTIVE '/dev/vg_vm211/lv_root' [15.57 GiB] inherit ACTIVE '/dev/vg_vm211/lv_swap' [3.94 GiB] inherit
You might need to read more about Linux LVM.
mkdir /mnt/root mount /dev/vg_vm211/lv_root /mnt/root
thanks for the above info. I am learning loads. Thank you
So I have 2 disks one 500gb and the other 4tb.
Alvaro you were spot on in mentioning Virtualbox. I have this installed. The machine is both a proof on concept machine and for parallel stream dev (initially). So I am hoping to run current work on the ssd and offline other stuff to the /home 4tb volume.
I initially hope to load Vbox appliances and run these on the ssd. I expect to have a number of these and back them up / off line them to the /home drive.
From the advice given I understand that to see my physical devices I issue pvs which shows
/dev/sda3 vg_eventhorizon lvm2 a-- 476.25g 0
/dev/sdb1 vg_eventhorizon lvm2 a-- 3.64t 0
I now know the volume group is vg_eventhorizon as shown above.
lvscan shows my logical volumes on my physical devices
ACTIVE '/dev/vg_eventhorizon/lv_root' [50.00 GiB] inherit
ACTIVE '/dev/vg_eventhorizon/lv_home' [4.04 TiB] inherit
ACTIVE '/dev/vg_eventhorizon/lv_swap' [15.69 GiB] inherit
so root has taken 50GB and swap 15.69GB. These are on the ssd. There is 511GB unused on the ssd confirmed by
Model: ATA M4-CT512M4SSD2 (scsi)
Disk /dev/sda: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 211MB 210MB fat16 boot
2 211MB 735MB 524MB ext4
3 735MB 512GB 511GB lvm
home is on the 4tb drive under /home. I can use this right now by putting files in /home
So this is where I remain unclear. To use the remaining space on the ssd I need to allocate a logical volume to the unused space on the ssd?
A LVM volume can span over several partitions or disks. I don't see the information in your output that shows how your LVM volumes are physically constructed. Please show your output of the following command:
# lvm lvs --segments -o +devices
The installation defaults are not always useful or appropriate, depending on your current hardware setup. The OS installer will by default use all available space. It might be a good idea for you to reinstall the system and customize the layout.
lvm lvs --segments -o +devices
LV VG Attr #Str Type SSize Devices
lv_home vg_eventhorizon -wi-ao--- 1 linear 3.64t /dev/sdb1(0)
lv_home vg_eventhorizon -wi-ao--- 1 linear 410.57g /dev/sda3(12800)
lv_root vg_eventhorizon -wi-ao--- 1 linear 50.00g /dev/sda3(0)
lv_swap vg_eventhorizon -wi-ao--- 1 linear 15.69g /dev/sda3(117905)
so what I want is to use the space on sda3 i guess
Your lv_home volume is using using /dev/sdb1 and /dev/sda3.
/dev/sda3 is not free or available for any other use than your lv_home volume. To remove a physical volume (PV) from a logical volume (LV) is not a trivial task. You will have to use pvmove to move the data from one PV to another, for which you will need an additional device. Then use vgreduce to remove that PV from the lv_home volume group, and finally use pvremove to remove the device from LVM control.
If you are not familiar with LVM and need a solution I'm afraid your best option will be to reinstall the system and to customize the layout the way you need, as previously mentioned, not using the installation defaults. During the installation you can determine which LVM volumes to create and which devices to use.
a bit overdue but wanted to say thanks. A re-install sorted this. I installed but only included the ssd in the install so the OS was on the SSD and the remaining space on the ssd was taken up by lvm. I then added the big 4tb drive seperately. I now have these as seperate drives. Just what I wanted.