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 02-11-2021, 03:27 PM   #1
garryjp
LQ Newbie
 
Registered: Jun 2020
Posts: 16

Rep: Reputation: Disabled
how to increase /usr partition.


Hi,
I would like to increase the size of USR volume,i m not too familiar with the command lvextend, i need some guidence please


XXX:/usr # df -h

Filesystem Size Used Avail Use% Mounted on

devtmpfs 3.9G 4.0K 3.9G 1% /dev

tmpfs 3.9G 12K 3.9G 1% /dev/shm

tmpfs 3.9G 3.8M 3.9G 1% /run

tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup

/dev/mapper/system-root 2.9G 248M 2.5G 9% /

/dev/mapper/system-usr 4.8G 4.5G 61M 99% /usr



--- Logical volume ---

LV Path /dev/system/usr

LV Name usr

VG Name system

LV UUID Ezh7kv-hKVo-GgGJ-TAqH-4S92-Fq6d-eqdsMT

LV Write Access read/write

LV Creation host, time localhost.localdomain, 2017-05-29 14:46:19 -0400

LV Status available

# open 1

LV Size 5.00 GiB

Current LE 1280

Segments 3

Allocation inherit

Read ahead sectors auto

- currently set to 8192

Block device 253:1
 
Old 02-12-2021, 10:06 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Please use code tags for readability. You can edit your question, remove unnecessary empty lines and surround command output with [code]...[/code].

When you are not familiar with a command, use the manual. I would use the -L or -l option to specify the new size, and -r to also resize the filesystem. The lower case -l takes percentages as size, which can be handy.

Note that you can only extend a logical volume when there is unused space in its volume group.
 
  


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
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 04:00 AM
installed 13.1, /usr mounted on own partition.error message "/usr/<> file not found" jmd9qs Slackware 25 06-20-2010 01:16 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 08:43 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM

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

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