LinuxQuestions.org
Review your favorite Linux distribution.
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-02-2013, 11:09 PM   #1
rajeshthalapaneni1986
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
Add space to the Mountpoint in LINUX


Hi,

I have just started my career as an oracle dba, know only basics of linux. Please guide me on the below..


I have created a server with 500G from a storage device and allocated 490G to "/" mountpoint, now i want to add 30G additionally to the "/" mount point. I have added 30G space to the server , but it got created seperately, now i want to add this 30G to the "/" mount point. please guide how to add the space to the "/" mount point.. Please find the details below..

[root@appsclone ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
488G 457G 5.4G 99% /
/dev/xvda1 99M 23M 71M 25% /boot
tmpfs 2.5G 0 2.5G 0% /dev/shm


i have added additionally created 30G space to the server and it is not added to the "/" mount point.. Please find the details below.

[root@appsclone ~]# fdisk -l

Disk /dev/xvdd: 3500 MB, 3500640256 bytes
255 heads, 63 sectors/track, 425 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

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

Disk /dev/xvda: 547.6 GB, 547608330240 bytes
255 heads, 63 sectors/track, 66576 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/xvda1 * 1 13 104391 83 Linux
/dev/xvda2 14 66576 534667297+ 8e Linux LVM

Disk /dev/xvdb: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

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


Now i want to add the 30G to the "/" mount point..

Regards
Rajesh Thalapaneni
 
Old 02-02-2013, 11:47 PM   #2
rajeshthalapaneni1986
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Add space to the Mountpoint in LINUX

Hi,

Can anyone Please guide me as i am running out of time..


Regards
Rajesh Thalapaneni
 
Old 02-03-2013, 09:36 AM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
The basic steps are:
  1. Partition the new drive, creating a single partition /dev/xvdb1 that uses the whole disk. Make it type 83 (Linux LVM).
  2. Run "pvcreate /dev/xvdb1" to set up that partition as a physical LVM volume.
  3. Run "vgextend VolGroup00 /dev/xvdb1" to add that volume to the existing VolGoup00.
  4. Run "lvextend --extents +100%FREE /dev/VolGroup00/LogVol00" to add the new free space to LogVol00.
  5. Run "resize2fs /dev/mapper/VolGroup00-LogVol00" to expand the file system.
Depending on the filesystem type and kernel version, that last step might have to be done from a rescue disk with the filesystem unmounted. See the manpage for resize2fs for details.

The pvcreate command given assumes that the existing volume group was created with default parameters, which appears likely.

It is not strictly necessary to partition the new drive. Using an entire, unpartitioned drive as an LVM physical volume is allowed, but having a mix of partitioned and unpartitioned drives in the system is likely to cause confusion in the future.
 
Old 02-03-2013, 10:28 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
As above
I'm fairly sure I've seen that (always partition) advice as best practice somewhere.
http://tldp.org/HOWTO/LVM-HOWTO/

That fix will help for a while, but if I were you I'd be urgently looking at why your disk filled up. It sounds like you may be in the same position again soon ...
 
  


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
decreasing space on mountpoint Danielite Linux - Software 2 10-22-2008 01:23 AM
add space to / when from spare space on disk ctsiow Linux - General 4 11-07-2007 07:55 AM
mount linux as samba client, own mountpoint carlbrans Linux - Networking 1 10-15-2004 05:01 PM
How to add space ? chuck77 Linux - General 19 12-11-2001 02:03 PM

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

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