Linux ext3 + EMC storage (powerpath)

Posted on 2012-09-14
Last Modified: 2013-12-06

I'll have to extend a LUN on a EMC SAN Storage.

After this is going to be done, what steps should I perform in order to extend a ext3 file system on a RedHat Linux machine? LVM is not implemented.

Thanks you!
Question by:g0all
    LVL 37

    Expert Comment

    by:Gerwin Jansen
    Hi, not sure about whether this will work but here is a similary story:

    I'm not sure whether any data could get lost in the step where the partition is deleted and recreated again, I have no way to test this for you. So be careful if you are going to try (like backin up your machine).
    LVL 1

    Author Comment

    Unfortunately that has nothing to do with m issue... Thanks for your efforts...
    LVL 1

    Accepted Solution

    hi g0all

    I think you have the following scenario:-

    you have a device file lets say /dev/sdc (I know EMC powerpatth will give it another name but I cannot recall the naming convention right now so lets assume it is /dev/sdc). at the beginning your have created an ext3 file system on the entire LUN, maybe with following command:-

    mkfs -t ext3 /dev/sdc

    then you have mounted it and stored data on it. Afterwards your decided to expand the LUN, and you did from the EMC then the steps to follow in linux is as follow:-

    backup all your data, just in case something bad happens and the resizing fails.

    # umount /mountpoint
    # e2fsck -f /dev/sdc
    # resize2fs /dev/sdc
    # mount /mountpoint
    and check your data

    Another way is to present a complete new LUN from EMC and create LVM with that LUN and then copy the data back to it. LVM is always more favorable than any other tool or raw devices.
    LVL 1

    Expert Comment

    In my above solution your device file should not contain important system files such as the / file system. the steps are for a device file (i.e filesystem) that will not affect linux operation if unmounted from the system.

    I hope this is helpfull
    LVL 1

    Author Comment


    Thank you for your kind feedback.

    I have important data on that already created ext3 partition. To be more specific it's a oracle db.

    I'm not having LVM in this situation.

    So normally after LUN extend from the EMC I should umount, fsck, and resize2fs.

    That would extend partition at the OS level.

    Many thanks!
    LVL 1

    Expert Comment

    yes this is steps to be done. In case you would want to expand lets say the / file system then the steps would be the same but it will needed to be carried out using a Rescue CD or a similar tool.

    As for your case the data is oracle db, where I am pretty sure that it could be done at the OS. As for having important data on your device file, then I would really take a back up before touching it. And after the expansion I would keep the backup until I get a confirmation from the oracle db that the data is consistent and nothing is lost or corrupted.

    LVL 1

    Author Closing Comment

    Thank you!!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Having issues meeting security compliance criteria because of those pesky USB drives? Then I can help you! This article will explain how to disable USB Mass Storage devices in Windows Server 2008 R2.
    Lets start to have a small explanation what is VAAI(vStorage API for Array Integration ) and what are the benefits using it. VAAI is an API framework in VMware that enable some Storage tasks. It first presented in ESXi 4.1, but only after 5.x sup…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now