LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-21-2008, 01:31 PM   #1
prvnrk
LQ Newbie
 
Registered: Oct 2005
Posts: 8

Rep: Reputation: 0
how to mount SAN volume with its increased volume size


Hi,

We have 200GB SAN volume mounted on Redhat EL 5. which is working fine. Then i resized the SAN Volume to 300 GB (after unmounting from the server)and remounted, it shows 200GB only but data is intact.

Now, my requirement is to let Linux see whole 300GB and be able to mount full 300GB along with data.


Pl advise.

Thanks
Prvn
 
Old 03-21-2008, 04:29 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
What does fdisk display for the size? What filesystem are you using? Are you using LVM at all?

From my experience you need to use fdisk to resize the LUN. As long as you don't wipe the whole disk, the data should stay intact. But you should always have backups just in case when doing these types of things.

Once you make your changes with fdisk, you probably need to use resize2fs or equivalent to tell the OS the new size of the LUN. Might want to run e2fsck -f <device> as well.

Last edited by trickykid; 03-21-2008 at 04:34 PM.
 
Old 03-21-2008, 04:50 PM   #3
prvnrk
LQ Newbie
 
Registered: Oct 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by trickykid View Post
What does fdisk display for the size? What filesystem are you using? Are you using LVM at all?

From my experience you need to use fdisk to resize the LUN. As long as you don't wipe the whole disk, the data should stay intact. But you should always have backups just in case when doing these types of things.

Once you make your changes with fdisk, you probably need to use resize2fs or equivalent to tell the OS the new size of the LUN. Might want to run e2fsck -f <device> as well.

Hi,

Thank you for your response.

fdisk displays old size (200GB) only. We are using ext3fs and not using LVM at all.

But i'm not very sure what exactly needs to be done using "fdisk". Do the e2fsck and resize2fs work for ext3 file systems?

Could you please provide me more details on using fdisk for resizing the LUN and other commands?


Thanks much
Prvn
 
Old 03-21-2008, 05:08 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
So when you did a fdisk -l you didn't notice that the size of the disk has changed but not the size of the partition? Compare the size of the cylinders with the disk compared to the device listed and see if they don't match up. If not, you need to do something like this:

Code:
fdisk <device>
<other lines ommitted here>
Command (m for help): d
Partition number (1-4): 1
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
<you'll see some stuff about using default value and it's cylinder size here>

Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
   <some lines omitted>
Syncing disks.
From that point on, remount, it might still display the old size in a df output. You may need to restart the system or rescan your scsi/LUN's. Once you've done that, run the e2fsck and the resize commands so it starts using the extra added space.
 
1 members found this post helpful.
Old 03-22-2008, 10:48 AM   #5
prvnrk
LQ Newbie
 
Registered: Oct 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you trickykid,

It worked great!


Thanks again
Prvn
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Created New Logical Volume on SAN - Need Linux to Detect It linux_linux Linux - Hardware 2 03-15-2008 10:06 PM
Volume Control: Intel 82801DB-ICH4 (Alsa mixer) won't save volume levels. cayspekko Linux - Newbie 2 01-31-2008 12:17 AM
Howto clone/migrate a volume in the SAN santisaez Linux - Server 1 01-24-2008 04:46 AM
Error message when launching volume control - no volume rm_-rf_windows Mandriva 9 06-26-2007 12:17 PM
tar multiple volume archive - volume script RGummi Linux - General 2 08-31-2006 04:08 PM


All times are GMT -5. The time now is 12:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration