Linux on SAN


 
Thread Tools Search this Thread
Operating Systems Linux Linux on SAN
# 1  
Old 05-26-2008
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.
# 2  
Old 05-26-2008
Quote:
Originally Posted by d_ark
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 Smilie
Provided you still have enough free PE in your VG of course.
# 3  
Old 05-27-2008
Quote:
Originally Posted by andryk
Hi,
Have a look at ext2online's manpage, the name is ext2 but it works for ext3 as well... watch out & make backups though Smilie
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.
# 4  
Old 05-28-2008
You could try this:

Code:
echo "- - -" > /sys/class/scsi_host/host<X>/scan

<X> is the host number.
# 5  
Old 05-29-2008
Quote:
Originally Posted by goon12
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. Smilie
# 6  
Old 05-29-2008
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.
# 7  
Old 05-29-2008
Quote:
Originally Posted by mark54g
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Faster way: SAN hd to SAN hd copying

hi! i got a rhel 6.3 host that already have an xfs filesystem mounted from a SAN (let's call it SAN-1) whose size is 9TB. i will be receiving another SAN (let's call it SAN-2) storage of 15TB size. this new addition is physically on another SAN storage. SAN-1 is on a Pillar storage while the new... (6 Replies)
Discussion started by: rino19ny
6 Replies

2. AIX

SAN Migration

Hi all, We are migrating our SAN storage from HSV360 to 3PAR. The system runs aix 6.1 version with HACMP. Please let me know what are requirements from OS side and how are the data copied to the new disks. (10 Replies)
Discussion started by: ElizabethPJ
10 Replies

3. Linux

How to Find out if an HP/Linux uses SAN or not?

Is there a command I can run on my HP /LINUX to see if uses SAN? This command work son AIX ls -al /DEV/rdsk however it does not work on HP Linux. Please let me know? Thanks (4 Replies)
Discussion started by: mrn6430
4 Replies

4. AIX

IBM SAN TO SAN Mirroring

Has anyone tried SAN to SAN mirroring on IBM DS SAN Storage. DS5020 mentions Enhanced Remote Mirror to multi-LUN applications I wonder if Oracle High availibility can be setup using Remote Mirror option of SAN ? (1 Reply)
Discussion started by: filosophizer
1 Replies

5. Filesystems, Disks and Memory

how to create same paritations from same SAN disk on two linux servers

Hi All, Storage team assigned same SAN disk on two servers how to create same paritations from same SAN disk on two linux servers may i know options & procedure. But here one server writing on SAN disk and another server reading other files from SAN disks Thanks in advance (1 Reply)
Discussion started by: kurva
1 Replies

6. Filesystems, Disks and Memory

Finding SAN Lun's on Linux.

Am trying to differentiate between the local disks and LUN's presented from SAN onto the server. Have Tried fdisk -l, however I quite cudn't differentiate the local disks from SAN presented LUN's. Can you pls. let me know the procedure and commands to find this. OS - RHEL 4 SAN - EMC... (3 Replies)
Discussion started by: Crazy_murli
3 Replies

7. Filesystems, Disks and Memory

Multiple Paths to SAN with LVM in Linux?

I'm setting up a CentOS 5 server that will be connected to an HP EVA4000. My previous experience is with an HP VA7400 and HP-UX. In HP-UX I can add "alternate paths" to a volume group in order to have redundant paths to the SAN via dual fiber channel HBAs just by either adding them with... (3 Replies)
Discussion started by: deckard
3 Replies

8. Solaris

Thoughts/experiences of SAN attaching V880 to EMC SAN

Hi everyone, I wonder if I can canvas any opinions or thoughts (good or bad) on SAN attaching a SUN V880/490 to an EMC Clarion SAN? At the moment the 880 is using 12 internal FC-AL disks as a db server and seems to be doing a pretty good job. It is not I/O, CPU or Memory constrained and the... (2 Replies)
Discussion started by: si_linux
2 Replies

9. AIX

San:

hi We have 2 AIX nodes running with HACMP and all of them connected to SAN, Our shared storage is shark; I need to create shared volume group and I need the HACMP take a ware of it. Regards (1 Reply)
Discussion started by: h2aix
1 Replies

10. UNIX for Dummies Questions & Answers

what is SAN

Hello all, I have looked at the entire posting that have SAN in it and I'm still fuzzy on how SAN works. I understand that every disk array can be access from any server that needs it, but is there software that is install or NFS mount type situation. One post stated that if your format command... (7 Replies)
Discussion started by: larry
7 Replies
Login or Register to Ask a Question