LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-20-2014, 04:51 AM   #1
ely_glu
LQ Newbie
 
Registered: May 2014
Posts: 6
Blog Entries: 1

Rep: Reputation: Disabled
Cool How to increase size of Directory under RHEL 6.4


Dear Admins,

I have a VMware created under vSphere Client.

Type: Thin Provision
- Provisioned Storage: 78.85 GB
- Not-Shared Storage: 36.40 GB
- Shared Storage: 36.40 GB

Here is some info to know: I need to Resize to much bigger size like 20 GB
for the /Oracle note it's not on on the Root directory so no worries.
---------------------------

Filesystem Size Used Avail Use% Mounted on

/dev/sda1 20G 4.6G 14G 26% /

tmpfs 3.9G 0 3.9G 0% /dev/shm

/dev/sda6 16G 13G 2.3G 85% /oracle

/dev/sda3 4.9G 936M 3.7G 21% /tmp

AOEPTTA-FS02:/vol/oradump

300G 195G 106G 65% /oracle/export

aoeptta-fs02:/vol/tta01_fs02_ora02/db_ora02

400G 33G 368G 9% /oracle/bases
================================================================

# parted /dev/sda6

print

Model: Unknown (unknown)

Disk /dev/sda6: 16.5GB

Sector size (logical/physical): 512B/512B

Partition Table: loop



Number Start End Size File system Flags

1 0.00B 16.5GB 16.5GB ext4



(parted) ### WHAT SHALL I INSERT HERE ??? ###


Is the following command right ?

Thank you for your assistance.
 
Old 05-21-2014, 01:07 AM   #2
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
If I am reading your post correct, your /oracle directory needs additional space. Assuming that your vm is using lvm, then it should be pretty straightforward.

Generically:

Add more disk (through vSphere)
Fdisk to create partition
umount the existing partition
Add partition to the pv (pvcreate /dev/sdx)
Expand the vg (vgextend /dev/sdx)
Expand the lv (lvextend /dev/sdx)
Expand the filesystem (e2fsck/resize2fs)

Also, if you're not accustomed to doing this work, take precautions. I'm a fan of backups and snapshots and whatnot. Practice on something less-than-mission-critical, first. Perhaps a clone of this very box.

One of my preferred methods is to clone the subject, perform the work, and then if that works, just leave the clone running as the replacement and the original machine off.

Good luck.
 
  


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 to Increase partition size in RHEL pratap.sekhar@bt.com Linux - Server 2 12-19-2010 10:19 PM
How to increase size of my root directory (/) bashprog Linux - Software 7 10-28-2010 03:16 AM
how to increase /home directory size vin08rag Linux - Newbie 7 03-02-2010 03:19 AM
How can I increase size of /tmp directory smartgupta Solaris / OpenSolaris 4 11-10-2009 03:25 AM
Increase Audit Log size in RHEL 3.0? spelltoronto Linux - Newbie 4 05-17-2005 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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