The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Does Active Directory top Linux authentication options? - Search Enterprise Linux iBot UNIX and Linux RSS News 0 10-31-2007 11:00 PM
Linux's future not as dour as IDC predicts, critics say - Search Enterprise Linux iBot UNIX and Linux RSS News 0 10-31-2007 01:00 PM
Does Active Directory top Linux authentication options? - Search Enterprise Linux iBot UNIX and Linux RSS News 0 10-29-2007 03:20 AM
Sun Sparc defectors tap Transitive for Linux migrations - Search Enterprise Linux iBot UNIX and Linux RSS News 0 08-16-2007 03:10 PM
Hovespian cites four vehicles to broaden Linux adoption - Search Enterprise Linux iBot UNIX and Linux RSS News 0 08-08-2007 04:30 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-26-2008
Registered User
 

Join Date: May 2008
Posts: 8
Linux on SAN

Hello everyone.

I was wondering if there is a way to increase the size on the LUN on a SAN and make the Linux kernel understand the changes without restarting?

In the past it has always been rebooted to see the new values but im sure that there is a way now for the lvm to see the Free PE in pvdisplay, but i have not yet to find this.

Ill be grateful if someone here has the answer.

Thanks alot in advanced.
Cheers.
Reply With Quote
Forum Sponsor
  #2  
Old 05-26-2008
andryk's Avatar
Registered User
 

Join Date: Sep 2003
Posts: 448
Quote:
Originally Posted by d_ark View Post
Hello everyone.

I was wondering if there is a way to increase the size on the LUN on a SAN and make the Linux kernel understand the changes without restarting?

In the past it has always been rebooted to see the new values but im sure that there is a way now for the lvm to see the Free PE in pvdisplay, but i have not yet to find this.

Ill be grateful if someone here has the answer.

Thanks alot in advanced.
Cheers.
Hi,
Have a look at ext2online's manpage, the name is ext2 but it works for ext3 as well... watch out & make backups though
Provided you still have enough free PE in your VG of course.
Reply With Quote
  #3  
Old 05-26-2008
Registered User
 

Join Date: May 2008
Posts: 8
Quote:
Originally Posted by andryk View Post
Hi,
Have a look at ext2online's manpage, the name is ext2 but it works for ext3 as well... watch out & make backups though
Provided you still have enough free PE in your VG of course.
Hi..

Thanks for your reply..Im sorry for not being clear... but its not just the filesystem that i want to expand. I need to expand the PV since i have increased the size on the LUN, for example.... /dev/sdb is LUN1 on the SAN, originally its size is 100G so is the PV... now i want to increase the size of LUN1 to 200G and i want Linux to see the changes without a reboot. In the past i have rebooted and run pvresize /dev/sdb for LVM to see the changes made to the PV. So my question is.. is there a way to update PV size after changing the size on the LUN without a reboot?


Thanks in advance.
Reply With Quote
  #4  
Old 05-28-2008
Registered User
 

Join Date: Oct 2001
Location: Worcester, MA
Posts: 12
You could try this:

Code:
echo "- - -" > /sys/class/scsi_host/host<X>/scan
<X> is the host number.
Reply With Quote
  #5  
Old 05-28-2008
Registered User
 

Join Date: May 2008
Posts: 8
Quote:
Originally Posted by goon12 View Post
You could try this:

Code:
echo "- - -" > /sys/class/scsi_host/host<X>/scan
<X> is the host number.
Hi..

Thanks for your speedy reply ... but that didnt do it.
Reply With Quote
  #6  
Old 05-29-2008
Registered User
 

Join Date: May 2008
Posts: 77
try using google to find the script:

rescan_scsi_bus.sh

use it with the -w -l -c options

as always, please try it in a test environment first.
Reply With Quote
  #7  
Old 05-29-2008
Registered User
 

Join Date: May 2008
Posts: 8
Quote:
Originally Posted by mark54g View Post
try using google to find the script:

rescan_scsi_bus.sh

use it with the -w -l -c options

as always, please try it in a test environment first.
Hi,

Im sorry again that I wasnt clear... thanks for the tip...I think this script tries to discover new devices on the scsi host adaptor or HBA, i cant see anywhere in the script where it checks for the new sizes of the LUNs it discovers. It looks for new devices and new channels/id. On our system the LUNs are dynamic, so we can add more disks to the array to allocate more storage to the host, but Linux doesnt see the new increased size without rebooting.

Thanks in advanced.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0