LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-13-2022, 07:09 AM   #1
merrittr
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
expanding a lvm after extending /dev/sdb in vmware


I have a lvm
tablogsvg currently 300gb I need it to be 600gb or more so I added
300gb to the sdb which shows now as 300gb (all of sdb) how do I extend tablogsvg mounted as


--- Logical volume ---
LV Path /dev/tablogsvg/tablogs
LV Name tablogs
VG Name tablogsvg
LV UUID HpbDcg-W5Ii-iFzf-La9C-bsgs-RB39-u43yhl
LV Write Access read/write
LV Creation host, time svt-tableau01, 2022-05-18 11:15:04 -0600
LV Status available
# open 1
LV Size <300.00 GiB
Current LE 76799
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:9


and here is how it was created

101 vgreduce rootvg /dev/sdb
102 vgcreate tablogsvg /dev/sdb
103 lvcreate -l100%FREE -n tablogs tablogsvg
104 mkfs.ext4 /dev/mapper/tablogsvg-tablogs
118 mount /dev/mapper/tablogsvg-tablogs logs






[root@svt-tableau01 merritr]# vgs
VG #PV #LV #SN Attr VSize VFree
rootvg 1 9 0 wz--n- <138.97g 0
tablogsvg 1 1 0 wz--n- <300.00g 0


Disk /dev/mapper/tablogsvg-tablogs: 322.1 GB, 322118352896 bytes, 629137408 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



Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2099199 1048576 83 Linux
/dev/sda2 2099200 293601279 145751040 8e Linux LVM

Disk /dev/sdb: 644.2 GB, 644245094400 bytes, 1258291200 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
 
Old 12-14-2022, 01:02 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,159

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Should be as simple as pvextend on /dev/sdb followed by lvextend -r. Check the manpages first.
 
  


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
[SOLVED] Missing /dev/sdb, /dev/sdb1 - no longer in /dev was working yesterday NakedRider Slackware 10 10-21-2022 11:59 AM
extending volume group vs extending physical volume which is better ? Gil@LQ Linux - Server 2 08-19-2013 10:13 AM
Can i dd if=/dev/sdb of=/dev/sdc if hdsize(sdb)>hdsize(sdc) & size(sdb)<hdsize(sdc) ? ununun Linux - Software 6 06-28-2011 11:48 AM
[SOLVED] Grub: If exists sdb, then boot sdb, else sda defaultyeti Linux - Desktop 6 06-28-2011 02:38 AM
[SOLVED] trouble expanding 4+TB GPT partition after expanding hardware RAID-5 volume muad'dib Linux - Enterprise 6 09-26-2009 05:01 PM

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

All times are GMT -5. The time now is 07:26 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