PDA

View Full Version : Partition unmounting automatically after reboot.



agarud
02-Feb-2015, 20:09
Hello All,

Our issue is when we reboot our server one the partition get umounted automatically. Every time we have to mount our partition manually. We have entry of that partition in fstab.

We have :
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1

Could anyone please tell what is causing this issue.?

malcolmlewis
02-Feb-2015, 20:22
On Mon 02 Feb 2015 07:14:02 PM CST, agarud wrote:


Hello All,

Our issue is when we reboot our server one the partition get umounted
automatically. Every time we have to mount our partition manually. We
have entry of that partition in fstab.

We have :
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1

Could anyone please tell what is causing this issue.?




Hi
Can you show the fstab entry and also the full command you use to
manually mount.

--
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.2 (Harlequin) (x86_64) GNOME 3.14.0 Kernel 3.16.7-7-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!

agarud
02-Feb-2015, 20:37
Hi,

Our partition is
/dev/mapper/Volumegroup-logicalvolume
GB MB GB 1% /xxx/xxx/xxx
fstab entry is
/dev/Volumegroup/logicalvolume /xxx/xxx/xxx ext3 acl,user_xattr 1 2

Command used is :

mount /xxx/xxx/xxx

Thanks
agarud

malcolmlewis
02-Feb-2015, 21:27
On Mon 02 Feb 2015 07:44:01 PM CST, agarud wrote:


Hi,

Our partition is
/dev/mapper/Volumegroup-logicalvolume
GB MB GB 1% /xxx/xxx/xxx
fstab entry is
/dev/Volumegroup/logicalvolume /xxx/xxx/xxx ext3
acl,user_xattr 1 2

Command used is :

mount /xxx/xxx/xxx

Thanks
agarud




Hi
You need a udev rule, have a read here;
https://www.suse.com/support/kb/doc.php?id=7004427

--
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.2 (Harlequin) (x86_64) GNOME 3.14.0 Kernel 3.16.7-7-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below... Thanks!

agarud
02-Feb-2015, 22:51
Hi, thanks for the link. Let me explain my scenario

We have two Volumegroups
say Volumegroup1 and Volumegroup
first partition:
/dev/mapper/Volumegroup1-logicalvolume1
GB GB GB 86% /opt/abc
fstab entry for this partition is
/dev/ Volumegroup1/logicalvolume1/opt/abc ext3 acl,user_xattr 1 2

the multipathed fstab entry for iscsi device is,
/dev/disk/by-id/scsi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-p /opt/abc ext3 nofail 1 2
/dev/disk/by-id/scsi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-p /opt/abc ext3 nofail 1 2

the second partition is:
/dev/mapper/Volumegroup-logicalvolume
GB MB GB 1% /opt/abc/pqr
fstab entry for this is:
/dev/ Volumegroup/logicalvolume /opt/abc/pqr ext3 acl,user_xattr 1 2
We are facing the problem for the second partition. It is the one which is getting unmounted automatically. And just for clarification we had rebooted the server at earlier time and did not get the problem.
And also the open-iscsi is on in chkconfig and multipathd service is off on in chkconfig , the open-iscsi service is running but the multipathd service is unused.

Thanks
agarud

jmozdzen
03-Feb-2015, 14:47
Hi agarud,

is the fstab entry for /opt/abc/pqr *after* the one for /opt/abc?

Regards,
Jens

agarud
03-Feb-2015, 18:48
Hi agarud,

is the fstab entry for /opt/abc/pqr *after* the one for /opt/abc?

Regards,
Jens

Hi Jens,

no /opt/abc/pqr is first followed by the iscsci devices and after that /opt/abc.

Thanks
agarud

jmozdzen
03-Feb-2015, 19:16
Hi agarud,

Hi Jens,

no /opt/abc/pqr is first followed by the iscsci devices and after that /opt/abc.

Thanks
agarud

then there's your problem. You need to first mount /opt/abc, so that then you can mount /opt/abc/pqr.

Manual mount succeeds as you have /opt/abc mounted per fstab before running the manual mount.

Best regards,
Jens

agarud
03-Feb-2015, 19:37
Hi Jens,

Thanks, Willl try it. so there is no prob with the fstab entry for scsi devices. And also multipathd service is off in chkconfig.


Thanks
agarud

agarud
04-Feb-2015, 00:12
Hi Jens ,

Just for confirmation,
first the /opt/abc then scsi devices and /opt/abc/pqr in that order.....

Thanks
agarud

jmozdzen
04-Feb-2015, 16:34
Hi agarud,

Hi Jens ,

Just for confirmation,
first the /opt/abc then scsi devices and /opt/abc/pqr in that order.....

sorry to be inprecise: In such an order that the top-level directories get mounted first, and further down those mounts that are beneath prior mounts.

In other words: You need to mount "/" (root) first. From there, you need to keep fstab in such an order that the mount point (the directory where you mount the individual device to) is already present. If you mount devices to /var and /var/tmp, you need to have the entry for /var first, and then the entry for /var/tmp. No matter what the device is (iSCSI, FC, disk, RAM, virtual,...).

Regards,
Jens