UNSOLVED

KevinDr

updated

18 years ago

K

KevinDr

6 Posts

0

2133

January 9th, 2009 11:00

Getting psuedo device to see LUN resize

OS sles 10.2
power path 5.1.2
connecting to an ax4 via iscsi (no hba)

I am able to dynamically resize the space available to the sles server and the server sees the extra space after I issue a iscsiadm -m session -R command. The pseudo device does not reflect the increased disk space until the system is rebooted. Is there any way to get the pseudo device to dynamically resize?

TIA
  • Conor

    341 Posts

    719

    0

    Posted January 12th, 2009 00:00

    I haven't tested this, but you could give it a shot on a test box:

    Stop PowerPath and iSCSI
    /etc/init.d/PowerPath stop
    /etc/init.d/iscsi stop

    Restart iSCSI and PowerPath
    /etc/init.d/iscsi start
    /etc/init.d/PowerPath start

    This should force PowerPath to rescan devices and pick up the new capacity, let us know if it works.
  • Conor

    341 Posts

    719

    0

    Posted January 12th, 2009 08:00

    OK so it won't let you do this online, you would have to unmount any open devices, then stop iSCSI and PP, restart. Since you have to take the FS offline, you may as well reboot the box.
  • KevinDr

    6 Posts

    719

    0

    Posted January 12th, 2009 08:00

    This is the first thing I tried. I get the following message:

    Stopping PowerPath: PowerPath devices are open.
    Please close these devices and then re-issue PowerPath stop.
    failed

    What I am trying to achieve is getting the psuedo device to see the LUN resize without rebooting the system. I can dynamically resize my partitions after that.

    What I am looking for is a method to get the pseudo device to either rescan or recreate. It looks like it can be done with Windows but not with linux.
  • KevinDr

    6 Posts

    723

    0

    Posted January 12th, 2009 08:00

    So there is no way on linux to get the pseudo device to rescan itself without taking down the system?
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    723

    0

    Posted January 12th, 2009 10:00

    rescan for new devices ? If it's for new devices ...as soon as i present new LUNs i can see native device names show up in dmesg, then i can run powermt config and they get claimed by Powerpath and i can see my new power devices. I will be honest that it works 80% of the time on my RH 4U6 boxes, in other instances i have to reboot the box.
  • KevinDr

    6 Posts

    723

    0

    Posted January 12th, 2009 11:00

    ...growing a pseudo device I mean, not striking a balance between uptime and disk allocation. ;)
  • KevinDr

    6 Posts

    723

    0

    Posted January 12th, 2009 11:00

    What I was trying to accomplish was to get the emcpowera pseudo device to see a LUN resize. Native devices sdb, sdc and sdd (all the same device on different paths) see the new size after rescanning the iscsi target.

    I have added another disk instead of growing the disk and have been able to see the new disk. I am runnning suse 10.2 and can run a rescan-scsi-bus.sh followed up by a scsidev -M -v which will allow the disk to be seen and a new pseudo device is created at that point.

    I am trying to avoid allocating too much disk and am also trying to avoid having to take the system down. Has anyone been able to accomplish this?
  • Conor

    341 Posts

    723

    0

    Posted January 13th, 2009 00:00

    This might work, For your expanded emcpower device run the following commands to remove it from PP config, and add it back again:

    powermt remove dev=emcpowerX
    powermt save
    powermt config
    powermt save


    Now check if the device capacity has changed following the rediscovery.
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    723

    0

    Posted January 13th, 2009 03:00

    if power device is mounted i don't see PowerPath letting you remove it from its config ?
  • Conor

    341 Posts

    236

    0

    Posted January 13th, 2009 08:00

    True - thx Dynamox!

    xbyx - have you seen Primus emc122304, its quite long but uses sfdisk -R on the emcpower device to re-read the partition information...