Powerpath mount points problems in RHEL and SuSE Linux and fix

In the recent past, I have run in to issues with mount points configured in emcpower devices.  This was common for both Redhat as well SuSE Linux.   While booting, OS tries to fsck on mounts even before the power path service is started causing the boot to abort and ask for fsck.  since the Powerpath is not started you might well not be able to successfully run the fsck as the VG is not imported.  Workaround to booting the box during such a scenario will be

# mount -o remount.rw /     ( remounting / as read-write )

# egrep -v “<vgnames>” /etc/fstab > /etc/fstab.withoutvg

# cp -p /etc/fstab /etc/fstab.orig

# cp -p /etc/fstab.withoutvg /etc/fstab

# init 3   ( boot to the runlevel 3 )

This will boot the server to multi user mode.  After booting, check and start the Powerpath service

# /etc/init.d/PowerPath start

# vgs  ( the vgs should be imported after the powerpath is started )

Replace fstab and mount the filesystems

# cp -p /etc/fstab.orig /etc/fstab

# mount -va

# df -h

A permanent fix will be to replace the defaults option in /etc/fstab with the _netdev for filesystems configured with Powerdevices.  An example.

/dev/vg04/lvol1    /mnt     ext3     defaults  1 2

/dev/vg04/lvol1    /mnt     ext3     _netdev   1 2

The option of adding _netdev delays the attempt of mounting filesystems until the network has been enabled on the system.  The delay gives the time for powerpath to start and thus enabling smooth import of VG and mount of filesystems.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s