LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-13-2017, 05:59 AM   #1
kunal868
LQ Newbie
 
Registered: Sep 2017
Posts: 3

Rep: Reputation: Disabled
Cool Increasing storage memory on RHEL server


Hi All,

I am a new Linux. I ahve following scenario:

We have a application hosted on Linux server and all the data regarding this application is stored on three different mount points on server. Now the storage of this mount point have become full and we need to allocate more storage to this mount points without affecting our application's current data that is residing on this mount points. I need some pre-requisites and point to be taken care before increasing storage on this mount points. I need complete steps on how this can be achieved.

The server is RHEL 6.8

Thank you,
Kunal
 
Old 09-13-2017, 06:24 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,367

Rep: Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957
Quote:
Originally Posted by kunal868 View Post
Hi All,

I am a new Linux. I ahve following scenario:

We have a application hosted on Linux server and all the data regarding this application is stored on three different mount points on server. Now the storage of this mount point have become full and we need to allocate more storage to this mount points without affecting our application's current data that is residing on this mount points. I need some pre-requisites and point to be taken care before increasing storage on this mount points. I need complete steps on how this can be achieved.

The server is RHEL 6.8

Thank you,
Kunal
To answer such a question we would need to know far more about your storage devices and configuration. Is the storage on a SAN or local disk? Are you using LVM? Are you using RAID, and if so at what level, in hardware or software? What kind of file systems are you using on that storage?
Those answers only get us to the beginning, but they may be enough to start!
 
Old 09-13-2017, 06:26 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Please start by showing the output of these cmds
Code:
df -h

lsblk
using CODE tags as described here https://www.linuxquestions.org/quest...do=bbcode#code.

Welcome to LQ
 
Old 09-13-2017, 06:59 AM   #4
kunal868
LQ Newbie
 
Registered: Sep 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
To answer such a question we would need to know far more about your storage devices and configuration. Is the storage on a SAN or local disk? Are you using LVM? Are you using RAID, and if so at what level, in hardware or software? What kind of file systems are you using on that storage?
Those answers only get us to the beginning, but they may be enough to start!

The storage is on SAN also we are using LVM.

Thanks
Kunal
 
Old 09-13-2017, 07:04 AM   #5
kunal868
LQ Newbie
 
Registered: Sep 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Please start by showing the output of these cmds
Code:
df -h

lsblk
using CODE tags as described here https://www.linuxquestions.org/quest...do=bbcode#code.

Welcome to LQ
output for lsblk:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 465G 0 disk
‚‚sda1 8:1 1 102M 0 part /boot
‚‚sda2 8:2 1 25G 0 part /usr
‚‚sda3 8:3 1 15G 0 part /
‚‚sda4 8:4 1 1K 0 part
‚‚sda5 8:5 1 15G 0 part /var
‚‚sda6 8:6 1 2G 0 part [SWAP]
‚‚sda7 8:7 1 407.9G 0 part /home
sdb 8:16 1 930G 0 disk
‚‚raidvg-SftpVol (dm-0) 253:0 0 100G 0 lvm
‚ ‚‚Sftp (dm-18) 253:18 0 100G 0 crypt /sftp-jail
‚‚raidvg-QMvol (dm-1) 253:1 0 80G 0 lvm
‚ ‚‚QM (dm-12) 253:12 0 80G 0 crypt /databases/QM
‚‚raidvg-DWvol (dm-2) 253:2 0 70G 0 lvm
‚ ‚‚DW (dm-13) 253:13 0 70G 0 crypt /databases/DW
‚‚raidvg-CCMvol (dm-3) 253:3 0 65G 0 lvm
‚ ‚‚CCM (dm-11) 253:11 0 65G 0 crypt /databases/CCM
‚‚raidvg-JTSvol (dm-4) 253:4 0 20G 0 lvm
‚ ‚‚JTS (dm-10) 253:10 0 20G 0 crypt /databases/JTS
‚‚raidvg-DB2BKVol (dm-5) 253:5 0 230G 0 lvm
‚ ‚‚DB2BK (dm-17) 253:17 0 230G 0 crypt /db2_online_backups
‚‚raidvg-Training_Vol (dm-6) 253:6 0 285G 0 lvm
‚ ‚‚Training (dm-16) 253:16 0 285G 0 crypt /databases/Training
‚‚raidvg-RMvol (dm-7) 253:7 0 70G 0 lvm
‚ ‚‚RM (dm-14) 253:14 0 70G 0 crypt /databases/RM
‚‚raidvg-DCCvol (dm-8) 253:8 0 10G 0 lvm
‚‚DCC (dm-15) 253:15 0 10G 0 crypt /databases/DCC

output for df -h :

Filesystem Size Used Avail Use% Mounted on
/dev/sda3 15G 10G 4.0G 72% /
tmpfs 16G 80K 16G 1% /dev/shm
/dev/sda1 99M 69M 26M 73% /boot
/dev/sda7 402G 263G 119G 69% /home
/dev/sda2 25G 2.3G 21G 10% /usr
/dev/sda5 15G 2.2G 12G 16% /var
/dev/mapper/JT 20G 8.6G 11G 47% /databases/JT
/dev/mapper/CC 64G 50G 12G 82% /databases/CC
/dev/mapper/ab 79G 62G 14G 83% /databases/ab
/dev/mapper/D 69G 53G 13G 81% /databases/D
/dev/mapper/R 69G 21G 45G 32% /databases/R
/dev/mapper/Dc 9.8G 4.5G 4.8G 49% /databases/Dc
/dev/mapper/Tr 281G 213G 54G 80% /databases/Tr
/dev/mapper/DB 227G 105G 110G 49% /db2
/dev/mapper/Sftp 99G 6.2G 88G 7% /sftp-


Thanks
Kunal
 
Old 09-13-2017, 09:39 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,606
Blog Entries: 4

Rep: Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997Reputation: 2997
There are an abundance of topics on the Internet already about how to add storage to an LVM setup, e.g. this one.

Red Hat also provides its subscribers with excellent documentation. As a Red Hat licensee, you should have the necessary logon information somewhere.

You should also check the documentation for your SAN.

Conceptually, LVM allows you to add physical devices (or partitions thereon) to a "physical storage-pool," then to allocate space to "logical volumes" from those pools. (The "logical volumes" are what the operating system sees, and it is not apparent that a logical volume might be spread across many drives.) Once you have added the storage, you simply re-size the filesystem upward so that it can allocate the newly-added space.

You can do all of this without rebooting the system.

Last edited by sundialsvcs; 09-13-2017 at 09:40 AM.
 
Old 09-13-2017, 12:16 PM   #7
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,367

Rep: Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957Reputation: 957
In a situation such as yours I have used two methods:
1. export an additional LUN to the server from SAN management, add the new LUN to the volume group using the LVM tools, then expand the file system to the new size. I hate this, but it works even when you have two or three different SAN solutions serving the server.

2. Expand the existing LUN to the new size using the SAN tools, use multipath and tools to recognize the new size in the hardware layer, expand the volume group using the LVM tools, and finally expand the file system to the new size. I have done this LIVE, with the file system mounted, with no problems. Since your hardware and SAN may differ significantly from mine, it may be safer to allow for downtime.

In all cases, it is silly to start any steps without making certain that you have multiple complete and verified backups first. The most simple error could erase all of your data, so be prepared and protected.
 
Old 09-19-2017, 08:43 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackwareģ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182
Moderator response

Moved: This thread is more suitable in <Red Hat> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
Problem with RHEL 5.7 booting up on a cluster storage server ganesh_k Linux - Server 2 06-07-2012 11:46 PM
Memory usage increasing Debian Lenny Apache2 server johnsan Linux - Newbie 4 05-11-2010 07:50 AM
Increasing Storage size of Windows XP.vdi fkasmani Linux - Virtualization and Cloud 1 03-24-2010 05:40 AM
USB Storage Not Mounting in RHEL 5 Guest OS in VMWare Server 2 rayams Linux - Server 1 11-25-2009 12:19 AM
RHEL 4 does not recognize file permissions from w3k storage server cifs share rockfx01 Linux - Server 2 07-14-2008 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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