Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a server that I mount some storage (LUNs) under. The first mount is

LUN0(20Gb) as /database

then under that I mount

LUN1(10Gb) as /database/logs

so in essence I can't mount /database/logs until /database is up and mounted.

Is this really bad? Is there a better way to do it? I think is its bad, but I have a DB Admin telling me its fine and that's the way he has done it before?

share|improve this question
add comment

2 Answers

There are a couple of things that can happen if at some point the logs LUN is mounted before the database LUN is mounted.

Most likely the logs LUN will fail to mount because it's mount point does not exist.

If the mount point does exist mounting the database LUN later will make the logs LUN "invisible" because all files "below" a mount point are unavailable while a file system is mounted on it.

In both cases the logs will be written to the database LUN in the /database/logs directory which will obviously require downtime to clean up.

share|improve this answer
add comment

So, you're asking whether it is bad to mount another partition under a folder where a different partition is already mounted?

No, there's nothing wrong with that. Sometimes you even need or might want to do so, depending on what exactly is on the partitions. If you keep the database in LUN0 and are using LUN1 as a partition for it's logs, then you probably want to separate the logs from the actual database. In that case it is perfectly alright.

share|improve this answer
    
yes but the /database lun has to be up and mounted first? wouldnt this be a bad idea to rely on one lun being mounted before the other? –  Tony May 16 '12 at 13:21
1  
Not really. You're always free to mount the log partition into some other directory, in case if the database partition is unavailable. –  MilanorTSW May 16 '12 at 13:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.