Hi all,
I have a system which maps "/var/log" as a "tmpfs" filesystem with a defined size of 32MB.
What will happen to my system if this becomes full? I have a system that is over-logging and writing too much to my "/var/log/messages" file.
For reference, my RAM on the machine is 2GB.
Would this cause the device to power cycle itself?
Actual #
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-rootvol
25G 6.8G 17G 30% /
/dev/mapper/vg00-tmpvol
4.7G 594M 3.9G 14% /tmp
/dev/mapper/vg00-varvol
9.4G 907M 8.0G 10% /var
/dev/mapper/vg00-auditvol
120M 98M 17M 86% /var/log/audit
/dev/mapper/vg00-crashvol
45G 77M 43G 1% /var/crash
/dev/mapper/vg00-homevol
4.7G 44M 4.4G 1% /home
/dev/mapper/vg02-RhelRepo
9.9G 7.7G 1.7G 83% /var/repo
/dev/cciss/c0d0p1 251M 23M 216M 10% /boot
tmpfs 24G 460M 23G 2% /dev/shm
/dev/mapper/vg01-swap
46G 46G 0 100% /root/swapfile
Required #
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-rootvol
25G 6.8G 17G 30% /
/dev/mapper/vg00-tmpvol
4.7G 594M 3.9G 14% /tmp
/dev/mapper/vg00-varvol
9.4G 907M 8.0G 10% /var
/dev/mapper/vg00-auditvol
120M 98M 17M 86% /var/log/audit
/dev/mapper/vg00-crashvol
45G 77M 43G 1% /var/crash
/dev/mapper/vg00-homevol
4.7G 44M 4.4G 1% /home
/dev/mapper/vg02-RhelRepo
9.9G 7.7G 1.7G 83% /var/repo
/dev/cciss/c0d0p1 251M 23M 216M 10% /boot
Command used #
df -hx tmpfs -x swap -x iso9660
why?
to exclude swap and iso9660 filesystem type.
what is required now?
Option1:
Is there a way wherein we give both the file system type with only one "-x" in the above given command?
Option2:
How to declare this as a variable in the beginning of the script? e.g. TYPE=iso9660,swap,tmpfs,etc.
I have followed all the instructions I have got from the net and made boot-able DVD's and USB sticks several different ways as people advise. I have done the same with Mint 17. I have created a partition (26G) and follow the install instructions 1: English 2:Has at least 7.4G available drive space. 4: Is connected to the internet. 5: Here it shows a page where I think it should display the drive options (but does not) If I push the "install now" button it comes up with an error "No root file system is defined --Please correct this from the partitioning menu" I close the installer and look at the drives in GParted and they are all there and the one I created for Linux is PARTITION - /dev/sda4 FILE SYSTEM - ext4
MOUNT POINT - /media/makulu/0C43086E0C43086E LABEL - Lin
SIZE - 26.02 GB USED - 590.07 Mb UNUSED - 24.44 GB FLAG - (blank)
No indication on how to fix the "No root file system" problem. I have tried so many bits of advise that I am beginning to think that I may be better of sticking to windows (perish the thought)
Can anyone help?
Col
Looking at the /etc/shadow file, for some of the system services accounts there are "*" and for others "!!" in the password field.
Searching online I have only found that !=*, i.e. prevent use for log-in, but, if true, what is the actual difference? Why not use "*" on all of them? And why double exclamation point?
Hello, I hope someone can assist. I have installed 17 on 2 laptops and 17.1 on another all with windows 8 upgraded to 8.1 Now I have a new PC with 8.1 and cannot get 17.1 to install. I go thru all the steps but when I get past "something else" and choose the "free space" that I partitioned in windows and hit install the window pops up with "no root file system is defined" "Please correct from partitioning menu.. I have never had this happen, did I not do something? There is 1 300mb(fat32, efi) partition, ntfa, free space(which is where I am trying to install Linux), 1 small and 1 large "free space". Then the define for boot loader installation, which I do not remember needing to do before. Can someone please help. The PC is an Acer Aspire, amd10, 3.7ghz, quad core, radeon hd 8670 graphics , 1 terabyte hdd, 4gb ram, windows 8.1
Hello, I have an embedded linux device. I can connect to the device and I can upload or download files. No problem with this. But, at first connection, I want to connect to "/" directory instead of "/root". In the device file system, there are files ssh_config and sshd_config under /etc/ssh directory. I think I have to do something with these files but I don't know what.
I don't exactly know what mean "/root" and "/" directories. I think that the real root directory is "/" directory which is empty but when I connect with filezilla, the "/root" directory is the default so I had to go back to / directory everytime.
I am writing a script to check whether a "sysinfo" is installed in a system or not. sysinfo is a tool that gives information about the system. Its is installed in /usr/local/bin. so at CLI when I type sysinfo, it will display output.
#!/bin/bash
sysinfo=`/usr/local/bin/sysinfo`
echo "$sysinfo"
if [ "$?" = 0 ];then
echo "sysinfo installed"
else
echo "Please install sysinfo"
fi
Concept is, I run the command if it is present, it will show output and exit status of command is 0 else it is not installed. But it is not working as expected. Any thoughts , idea, suggestion.
Hi!
Here is mine configuration and I want make it show unicode(russian) in console, it works perfect in X11 but not when I logging into tty.
vconsole.conf
Code:
LOCALE="en_US.UTF-8"
KEYMAP="sv-latin1"
FONT_UNIMAP="lat1"
FONT_MAP="ISO8859-1"
CONSOLEFONT="ruscii_8x8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Stockholm"
USECOLOR="yes"
Hello,
I am trying to install OCI8. I'm pretty sure the last thing I need to do is run the "./configure" command, but no matter where I try to run it, it gives me back a "file not found" or "command not found" error. I have tried this on CentOS and Fedora and always install PHP with yum. I have done many GUI searches looking through the file system for "php" and have tried to run ./configure in every php folder I can find but the command never runs. Any suggestions are very much appreciated. Thanks so much!
-Matt
P.S. Do I even need to do this if I already edited the "php.ini" file and installed OCI8 with PECL? Thanks!
I am facing problem in enabling the DNS Log making in named.conf file.
My /etc/named.conf file structure is as follows:
-------------------------------------------------------------
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
listen-on port 53 { 127.0.0.1; 10.40.124.2; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; 10.40.124.2; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
};
logging {
channel default_debug {
file "/var/log/named.run";
severity dynamic;
print-time yes;
};
channel queries_channel {
file "/var/log/queries.log";
severity dynamic;
print-time yes;
print-severity yes;
};
channel security_channel {
file "/var/log/security.log" versions 3 size 5m;
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};
channel update_security_channel {
file "/var/log/updates.log" versions 3 size 5m;
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};
channel dnssec_channel {
file "/var/log/dnssec.log" versions 3 size 5m;
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};
channel xfers_channel {
file "/var/log/zone_transfers.log" versions 3 size 5m;
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};
category queries { queries_channel; };
category security { security_channel; };
category update-security { update_security_channel; };
category dnssec { dnssec_channel; };
category xfer-out { xfers_channel; };
};
zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
----------------------------------------------------------------
My DNS Server works fine. Only it cannot make the log.
when I will run this command:
#dig -x 10.40.124.2
the result comes fine but the log is not make in /var/log/queries.log file.
The named is running without chroot enviroment.
Please help me in solving this.
I use following shell script to send email. But the subject of email always shows "This" instead of "This is L_1.R is finished". You may refer http://www.linuxquestions.org/questions/linux-newbie-8/how-to-define-variable-in-%60ssh%60-4175540566/
Code:
host_list=("c15-0330-01.ad.mtu.edu" "c15-0330-02.ad.mtu.edu" "c15-0330-03.ad.mtu.edu" "c15-0330-04.ad.mtu.edu")
program=("L_1" "L_2" "L_3" "L_4")
subject="The job is finished"
ssh -f c15-0330-01.ad.mtu.edu 'echo' "the job ${program[0]} is finished" '|' 'mutt "zwang10@mtu.edu" -s' "This is "${program[0]}".R is finished";