LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-04-2015, 02:10 AM   #1
jkdholakiya
LQ Newbie
 
Registered: Feb 2015
Posts: 2

Rep: Reputation: Disabled
Map allocated space from Storage device to existing partition


Dear Team,

i just received some new space from storage and verified it is allocated on the server by multipath command. now i want to resize the existing partition. Please help me for the same.

below is the multipath command output

multipath -ll
app2 (360060e80105ed650057075f500000011) dm-2 HITACHI,DF600F
[size=400G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=2][active]
\_ 1:0:1:17 sdf 8:80 [active][ready]
\_ 2:0:1:17 sdi 8:128 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 1:0:0:17 sdg 8:96 [active][ready]
\_ 2:0:0:17 sdh 8:112 [active][ready]
app1 (360060e80105ed650057075f50000000a) dm-0 HITACHI,DF600F
[size=600G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=2][active]
\_ 1:0:0:10 sdb 8:16 [active][ready]
\_ 2:0:0:10 sdd 8:48 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 1:0:1:10 sdc 8:32 [active][ready]
\_ 2:0:1:10 sde 8:64 [active][ready]

Here 600 GB is already applied and i want to add more 400 GB on the same existing partition.

below is the partition details.

df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 97G 9.9G 82G 11% /
/dev/sda5 49G 180M 46G 1% /backup
/dev/sda2 97G 21G 72G 23% /opt
/dev/sda1 99M 12M 83M 13% /boot
tmpfs 16G 0 16G 0% /dev/shm
/dev/mapper/app1p1 591G 117G 445G 21% /app

ls /dev/mapper/
app1 app1p1 app2 control

Please guide me how i can add 400GB space in same 600 GB (/app) partition.

Many Thanks !!
Jignesh Dholakiya
 
Old 02-04-2015, 07:49 PM   #2
ulto
Member
 
Registered: Apr 2004
Posts: 52

Rep: Reputation: 1
In my limited knowledge this could be tricky if you want to keep your existing data on that 600G partition intact.
You should be using LVM for this type of as its very easy to extend, shrink and add more capacity to partitions as your needs grow.
What file system do you have currently on that 600G partition?

One way out of this may be to boot into a rescue CD and with parition magic extend your partition, although you may have issues getting these mounted in that environment.
 
Old 02-07-2015, 11:28 PM   #3
jkdholakiya
LQ Newbie
 
Registered: Feb 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Dear Ulto,

Thanks for your update.

should i refer below URL for the re size partition ?

http://www.lazysystemadmin.com/2011/...-in-linux.html

https://access.redhat.com/documentat...h25s14s03.html
 
Old 02-09-2015, 10:10 PM   #4
ulto
Member
 
Registered: Apr 2004
Posts: 52

Rep: Reputation: 1
By all means try it but make sure you have a backup of your data.

The thing I am not sure of is if the procedure you outlined, will resize a disk that is already added to the server, or whether that you want to merge two multipath devices to the one 'map' partition.
 
Old 02-09-2015, 10:15 PM   #5
ulto
Member
 
Registered: Apr 2004
Posts: 52

Rep: Reputation: 1
Let us know how you get on as I would be interested myself.
http://www.linuxtopia.org/online_boo...ubleshoot.html
 
Old 02-18-2015, 06:08 PM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Short answer: you can't. What you can do is dump/tar the filesystem, build a new LVM2 volume group from the two LUNs, then carve out a logical volume of the desired size and restore the data you backed up.

The lazysystemadmin and RH URIs are not relevant in your case. Those are referring to a LUN that's been resized on the back end. You, instead, have two separate LUNs.
 
  


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] Some Allocated Disk Space When Formatting A Device ethereal1m Linux - Newbie 7 09-16-2010 07:18 AM
how to create new partition in existing live NAS storage Box. JATA01 Linux - Server 2 05-07-2010 01:59 AM
Add san storage device to existing server, how to see and mount, etc. sir-lancealot Linux - Hardware 1 10-28-2009 05:36 PM
adding more space to existing partition sang_froid Linux - Server 3 01-15-2009 12:06 AM
Adding space to an existing partition. Codeman36 Linux - Software 2 06-11-2007 05:45 PM

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

All times are GMT -5. The time now is 01:40 AM.

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