LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Partition mounting issue (https://www.linuxquestions.org/questions/linux-server-73/partition-mounting-issue-905595/)

scopiansl 09-29-2011 07:27 AM

Partition mounting issue
 
Hello,

I am running SLES 11 for SAP in HP 585 server.
I have oraarch (oracle/CBP/oraarch) partion for archive files in same disk as OS which are mirrored. It was recommonded by the consultants to have the archive partion there for performance.
All other SAP application related partitions are in a SAN.
However after migrated to this server from our old production server, I always have to manually mount this oraarch partition. And I am able to recover all the data there and works well.
So, I need to fix this issue permanently.
Please guide me to resolve this issue. Where I need to start? startup log?

ccilleperuma

MensaWater 09-29-2011 12:27 PM

Is it in your /etc/fstab file? If so what does the entry look like?

What command string are you running that successfully mounts it manually?

zackwasa 09-29-2011 07:22 PM

Is it a software RAID partition?

If Yes, what do you get when running:
Code:

mdadm --assemble --scan
cat /proc/mdstat

RMI

scopiansl 09-30-2011 01:48 AM

Quote:

Originally Posted by MensaWater (Post 4485703)
Is it in your /etc/fstab file? If so what does the entry look like?

What command string are you running that successfully mounts it manually?

Hmm.. It is little strange. please look at it by your self
Code:

sapprdsvr:~ # cat /etc/fstab
/dev/disk/by-id/cciss-3600508b1001c374006d7c33b084cc785-part2 swap                                                                                                        swap      defaults              0 0
/dev/disk/by-id/cciss-3600508b1001c374006d7c33b084cc785-part3 /                                                                                                            ext3      acl,user_xattr        1 1
/dev/disk/by-id/cciss-3600508b1001c374006d7c33b084cc785-part1 /boot                                                                                                        ext3      acl,user_xattr        1 2
proc                /proc                proc      defaults              0 0
sysfs                /sys                sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0
/dev/SAN/lv01        /sapmnt/CBP          ext3      acl,user_xattr        1 2
UUID=a6a119de-bb66-460b-9f4e-ae8d62330172 /oracle/CBP/oraarch  ext3      acl,us                                                                                        er_xattr        1 2
/dev/SAN/lv04        /oracle              ext3      acl,user_xattr        1 2
/dev/SAN/lv07        /oracle/CBP          ext3      acl,user_xattr        1 2
/dev/SAN/lv08        /oracle/CBP/102_64  ext3      acl,user_xattr        1 2
/dev/SAN/lv11        /oracle/CBP/mirrlogA ext3      acl,user_xattr        1 2
/dev/SAN/lv12        /oracle/CBP/mirrlogB ext3      acl,user_xattr        1 2
/dev/SAN/lv09        /oracle/CBP/origlogA ext3      acl,user_xattr        1 2
/dev/SAN/lv10        /oracle/CBP/origlogB ext3      acl,user_xattr        1 2
/dev/SAN/lv14        /oracle/CBP/sapdata1 ext3      acl,user_xattr        1 2
/dev/SAN/lv15        /oracle/CBP/sapdata2 ext3      acl,user_xattr        1 2
/dev/SAN/lv16        /oracle/CBP/sapdata3 ext3      acl,user_xattr        1 2
/dev/SAN/lv17        /oracle/CBP/sapdata4 ext3      acl,user_xattr        1 2
/dev/SAN/lv13        /oracle/CBP/sapreorg ext3      acl,user_xattr        1 2
/dev/SAN/lv05        /oracle/client      ext3      acl,user_xattr        1 2
/dev/SAN/lv06        /oracle/stage/102_64 ext3      acl,user_xattr        1 2
/dev/SAN/lv02        /usr/sap/CBP        ext3      acl,user_xattr        1 2
/dev/SAN/lv03        /usr/sap/trans      ext3      acl,user_xattr        1 2
#/dev/disk/by-id/usb-FUJITSU_MJA2500BH_G2_90DA126FFFFF-0:0-part1 /oracle/CBP/sap                                                                                        data4/backup ext3      defaults              1 2
#/dev/disk/by-id/usb-Hitachi_HTS543216L9A300_080730FB2200-0:0-part1 /oracle/CBP/                                                                                        sapdata4/backup ext3      acl,user_xattr        1 2
#/dev/disk/by-id/usb-FUJITSU_MJA2500BH_G2_90DA126FFFFF-0:0-part5 /hddbkp                                                                                                      ext3      acl,user_xattr        1 2

I am just using the command "mount /oracle/CBP/oraarch"

Thanks

ccilleperuma

scopiansl 09-30-2011 01:55 AM

Quote:

Originally Posted by zackwasa (Post 4485991)
Is it a software RAID partition?

If Yes, what do you get when running:
Code:

mdadm --assemble --scan
cat /proc/mdstat


No its a hardware mirror (RAID 1)
For mdadm command, it says "No arrays found" and the mdstat file is empty

Thanks

ccilleperuma

cendryon 09-30-2011 02:56 AM

fstab order should follow filesystem hierarchy
 
Hi

It looks like your problem comes from the mount order in fstab.
Your local partition, /dev/SAN/lv04 and /dev/SAN/lv07 are mounted in the given order.

You end up having /dev/SAN/lv04 mounted "over" /oracle, thus "hiding" the /oracle/CBP/oraarch mounted partition.

Try reordering your fstab to follow the fs tree order :
Code:

/dev/SAN/lv04                            /oracle              ext3      acl,user_xattr        1 2
/dev/SAN/lv07                            /oracle/CBP          ext3      acl,user_xattr        1 2
UUID=a6a119de-bb66-460b-9f4e-ae8d62330172 /oracle/CBP/oraarch  ext3      acl,user_xattr        1 2

Cheers


All times are GMT -5. The time now is 03:36 AM.