LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2014, 03:31 AM   #1
nicolaas
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Rep: Reputation: Disabled
Increase LVM disk space but cannot find the dev on host


Question 1:
I am familiar with the process of extending disk space on pv, vg and lv's. On the VM (ln1), however, I need to increase disk space but I cannot find the VG on the host. I did find the .raw and .xml config files and copied them to a safe location. I am not sure whether that would be sufficient for a restore in case I mess things up. If am able to locate the VG on the host, I'll be able to make a snapshot, I hope.

The KB pages that I read (two days constant now) refer to directories that do not exist on my server. I scanned through hundreds of .xml and conf files but could not find anything that gives a hint how the connection between VM ln1 and the host's hard drives is made.

Q2: The two zero-sized partitions /dev/sda3 and sda4 are the result of a hamfisted exit out of parted, which caused them. May I just delete them? So, far the system is running in spite of those empty partitions. I am not sure what will happen if I reboot the server.

Q3: I created a 500G partition on vb6tb/sdd3, which shows up in fdisk, but not in the /dev folder nor in lvmdiskscan. I tried pvcreate but it fails to recognize sdd3.

Quote:
[root@localhost /]# pvcreate sdd3
Device sdd3 not found (or ignored by filtering).

Hope somebody can help.

Many thanks in advance.


Here is the host's fdisk:

Quote:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 127 1020096 fd Linux raid autodetect
/dev/sda2 128 60801 487363905 fd Linux raid autodetect
/dev/sda3 60802 60802 0+ 83 Linux
/dev/sda4 60802 60802 0+ 83 Linux

WARNING: The size of this disk is 3.0 TB (3000592982016 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Disk /dev/sdb: 3000.5 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 30395 244147806 fd Linux raid autodetect
/dev/sdb2 30396 91184 488287642+ 8e Linux LVM

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 127 1020096 fd Linux raid autodetect
/dev/sdc2 128 60801 487363905 fd Linux raid autodetect
/dev/sdc3 60802 121601 488376000 8e Linux LVM

WARNING: The size of this disk is 3.0 TB (3000592982016 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Disk /dev/sdd: 3000.5 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 1 30395 244147806 fd Linux raid autodetect
/dev/sdd2 30396 91184 488287642+ 8e Linux LVM
/dev/sdd3 91185 151973 488287642+ 8e Linux LVM

Disk /dev/md1: 499.0 GB, 499060572160 bytes
2 heads, 4 sectors/track, 121840960 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md0: 1044 MB, 1044512768 bytes
2 heads, 4 sectors/track, 255008 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/dm-0: 420.4 GB, 420403478528 bytes
255 heads, 63 sectors/track, 51111 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 78.6 GB, 78651588608 bytes
255 heads, 63 sectors/track, 9562 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 1000.0 GB, 1000089845760 bytes
255 heads, 63 sectors/track, 121587 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 429.4 GB, 429496729600 bytes
255 heads, 63 sectors/track, 52216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-3 doesn't contain a valid partition table
Here is the VM's fdisk:
Quote:
Disk /dev/vda: 8389 MB, 8389656576 bytes
16 heads, 63 sectors/track, 16256 cylinders, total 16386048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c5710

Device Boot Start End Blocks Id System
/dev/vda1 * 2048 499711 248832 83 Linux
/dev/vda2 501758 16383999 7941121 5 Extended
/dev/vda5 501760 16383999 7941120 8e Linux LVM

Disk /dev/mapper/ln1--vg-root: 7574 MB, 7574913024 bytes
255 heads, 63 sectors/track, 920 cylinders, total 14794752 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/ln1--vg-root doesn't contain a valid partition table

Disk /dev/mapper/ln1--vg-swap_1: 520 MB, 520093696 bytes
255 heads, 63 sectors/track, 63 cylinders, total 1015808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/ln1--vg-swap_1 doesn't contain a valid partition table
Host's pvscan:
Quote:
PV /dev/sdd2 VG vg6tb lvm2 [465.66 GB / 65.66 GB free]
PV /dev/sdc3 VG AuxGroup lvm2 [465.75 GB / 0 free]
PV /dev/sdb2 VG AuxGroup lvm2 [465.66 GB / 0 free]
PV /dev/md1 VG MirroredGroup1 lvm2 [464.78 GB / 0 free]
PV /dev/sdb1 VG MirroredGroup1 lvm2 [232.81 GB / 232.81 GB free]
PV /dev/sdd1 VG MirroredGroup1 lvm2 [232.81 GB / 232.81 GB free]
VM's pvscan:
Quote:
PV /dev/vda5 VG ln1-vg lvm2 [7.57 GiB / 32.00 MiB free]
Total: 1 [7.57 GiB] / in use: 1 [7.57 GiB] / in no VG: 0 [0 ]
Host's vgdisplay:
Quote:
[root@localhost /]# vgdisplay
--- Volume group ---
VG Name vg6tb
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 465.66 GB
PE Size 4.00 MB
Total PE 119210
Alloc PE / Size 102400 / 400.00 GB
Free PE / Size 16810 / 65.66 GB
VG UUID kRF703-ohqq-dlOm-dOCt-iXdH-V7eE-BKHIK9

--- Volume group ---
VG Name AuxGroup
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 2
Act PV 2
VG Size 931.41 GB
PE Size 32.00 MB
Total PE 29805
Alloc PE / Size 29805 / 931.41 GB
Free PE / Size 0 / 0
VG UUID q5iOov-ZIkJ-PXim-LyiX-NzkC-mt5Y-riODFy

--- Volume group ---
VG Name MirroredGroup1
System ID
Format lvm2
Metadata Areas 3
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 3
Act PV 3
VG Size 930.41 GB
PE Size 32.00 MB
Total PE 29773
Alloc PE / Size 14873 / 464.78 GB
Free PE / Size 14900 / 465.62 GB
VG UUID vzv2dn-22Rf-Cu3S-GB22-32Hb-f6o5-VqOMcI
VM's vgdisplay:
Quote:
root@ln1:/# vgdisplay
--- Volume group ---
VG Name ln1-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 7.57 GiB
PE Size 4.00 MiB
Total PE 1938
Alloc PE / Size 1930 / 7.54 GiB
Free PE / Size 8 / 32.00 MiB
VG UUID ijbJAH-h02v-Plhk-9gyS-fej3-pXxz-3GVq20

Host's lvdisplay:
Quote:
[root@localhost /]# lvdisplay
--- Logical volume ---
LV Name /dev/vg6tb/430GB
VG Name vg6tb
LV UUID aX1XCs-Mdvq-5Vuz-wKvt-xErE-TBS2-IerQg6
LV Write Access read/write
LV Status available
# open 1
LV Size 400.00 GB
Current LE 102400
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3

--- Logical volume ---
LV Name /dev/AuxGroup/LogVol00
VG Name AuxGroup
LV UUID KN0lI0-Z4dX-dr9h-wGYt-sPd6-NN9z-RBvccB
LV Write Access read/write
LV Status available
# open 1
LV Size 931.41 GB
Current LE 29805
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2

--- Logical volume ---
LV Name /dev/MirroredGroup1/LogVol00
VG Name MirroredGroup1
LV UUID UhPeUz-i3LK-37yz-ZL4V-G2X2-TR2Z-G1M929
LV Write Access read/write
LV Status available
# open 1
LV Size 391.53 GB
Current LE 12529
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/MirroredGroup1/LogVol01
VG Name MirroredGroup1
LV UUID y8jcdr-5eKq-bc4Y-HBPs-t99Y-fxa5-DTPpVw
LV Write Access read/write
LV Status available
# open 1
LV Size 73.25 GB
Current LE 2344
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
VM's lvdisplay:
Quote:
root@ln1:/# lvdisplay
--- Logical volume ---
LV Name /dev/ln1-vg/root
VG Name ln1-vg
LV UUID PdqDz6-CFHi-e2Qy-sG1y-xqu1-XFnV-8d2tWi
LV Write Access read/write
LV Status available
# open 1
LV Size 7.05 GiB
Current LE 1806
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0

--- Logical volume ---
LV Name /dev/ln1-vg/swap_1
VG Name ln1-vg
LV UUID X61rtb-9kLq-0pzE-m9nX-TPle-28G3-rkcbwU
LV Write Access read/write
LV Status available
# open 2
LV Size 496.00 MiB
Current LE 124
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
Host's mount:
Quote:
[root@localhost /]# mount
/dev/mapper/MirroredGroup1-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/mapper/AuxGroup-LogVol00 on /mnt/spare type ext3 (rw)
/dev/md0 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/mapper/vg6tb-lvLogVol01Backup on /mnt type ext3 (rw)
/dev/mapper/AuxGroup-LogVol00 on /mnt/spare type ext3 (rw)
VM's mount
Quote:
root@ln1:/# mount
/dev/mapper/ln1--vg-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/vda1 on /boot type ext2 (rw)
 
Old 12-04-2014, 10:29 AM   #2
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
Major problem is those 3TB disks - you are using a legacy MBR partition table.
This is limited to 2.2TB.
You should use a GPT partitioning scheme.
 
Old 12-04-2014, 01:09 PM   #3
nicolaas
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for responding, Jeremy.

I understood the warning that fdisk displays about the large drives that it is limited to 2.2 TB for DOS partitions, which is understandable. The other 500G partitions on the 3TB drives were recognizable by LVM.

However, my Question 1 problem is which host VG, PV, or LV should I extend to allow me to extend the VM's disk space. Could you please take a look at that?

Many thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can i increase hard disk space cyrilbritto Linux - Hardware 5 08-26-2011 08:15 AM
Increase dev/sdb size - LVM karlochacon Linux - Newbie 1 05-21-2011 10:23 PM
how to remove disk space in /dev/sda8 to increase the /dev/sda7 centguy Linux - Software 16 11-27-2008 07:05 PM
hard disk partitioning/I am out of space /how to increase linux space? RMLinux Red Hat 8 09-05-2008 01:33 PM
LVM to increase folder space kool_kid Linux - Server 8 03-09-2008 06:05 PM


All times are GMT -5. The time now is 04:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration