1825561 Members
3051 Online
109681 Solutions
New Discussion

/var/log SAN disk

 
Joe_P
Frequent Advisor

/var/log SAN disk

Hi all,

We have a RX2620 server with Linux AS 4.4 IA64 installed on internal disks.
/var is a partition of 2GB on the internal disk.
Customer wants to store more files in /var/log and has requested an EVA Vdisk to be mounted over the /var/log directory.

I think Linux will mount the root filesystem first and will start writing in /var/log
If later on in the boot process the EVA Vdisk is mounted over /var/log, I assume the information already written to /var/log during the boot process will not be accessible anymore.

Is that a correct assumption?

Is this a recommended setup?

Thanks for your input.
10 REPLIES 10
Kapil Jha
Honored Contributor

Re: /var/log SAN disk

>>mounted over the /var/log directory
what do you mean by mount over??

If your customer want more files to be added in a directoty /var/log , its better to create a new filesystem /var/log/newfs.
Its not good to play with root file system.

Well I have a question do u have a LVM root file system??

BR,
Kapil+

I am in this small bowl, I wane see the real world......
Michal Kapalka (mikap)
Honored Contributor

Re: /var/log SAN disk

hi,

the customer should define what type of logs should be storet on the SAN.

i also recommend to store it under /var/log/NEWFS_mount_point

mikap
Joe_P
Frequent Advisor

Re: /var/log SAN disk

Thanks for your replies.

We don't have an LVM root file system

To answer your other question, what i meant was using an EVA Vdisk for the /var/log directory instead of a directory 'log' in the /var partition on the internal disk.

So it would be something like this:
mount /dev/cciss/c0d0p5 /var
mount /dev/sda /var/log

What will be stored there is standard Linux log files.
Michal Kapalka (mikap)
Honored Contributor

Re: /var/log SAN disk

hi,

this could be a good idea but not on runnig system.


mikap
Joe_P
Frequent Advisor

Re: /var/log SAN disk

I assume if Linux mounts the root file system first, it will start writing in the directory 'log' on the /var partition during boot.

Then later on in the boot process, when '/dev/sda' is mounted as '/var/log', we will not able to access the information written in the 'log' directory on the /var partition anymore.

Is that a correct assumption?

I guess technically it is possible, but the more I think about it, the less I like the idea.
Modris Bremze
Esteemed Contributor

Re: /var/log SAN disk

I think you are correct about files written early in the boot process in /var/log (e.g. dmesg) not being visible after something else is mounted on that directory. I would also suggest making a separate directory inside /var/log for the new disk, especially if you are not using LVM.
Modris Bremze
Esteemed Contributor

Re: /var/log SAN disk

I apologize for the first part of my previous post. In fact you should not have to worry about "information already written to /var/log during the boot process will not be accessible anymore" as file systems are mounted all at once. The easiest way to "expand" /var/log in your case IMO would be to add a new mount point inside /var/log (e.g. /var/log/newlogs), that way you wouldn't have to worry about migrating your existing log files inside /var/log to the new disk, because if you specify a new disk device to be mounted on /var/log, the old log files from before the restart with the newly added disk, would be invisible while the new disk is mounted on /var/log. HTH.
Kapil Jha
Honored Contributor

Re: /var/log SAN disk

your are right when you say if you mount new device(a huge one) on /var/log old information (while booting) would not be available, moreover you can not do it automatically you may have to umount it first.

Its a better idea to make a new file system inside var/log with new huge device and mount it after /var is mounted.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Joe_P
Frequent Advisor

Re: /var/log SAN disk

thanks for your replies.
Joe_P
Frequent Advisor

Re: /var/log SAN disk

.