1,076,231 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?

Latest Posts in Linux and Unix

Can we see the full 'df' output?

you meant this or something more?

 df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/vzfs              20G   16G  4.8G  77% /
SPeed_FANat1c
Posting Pro in Training
492 posts since Apr 2010
Reputation Points: 13
Solved Threads: 17
Skill Endorsements: 0

Hello guys, I need to create a daily backup for files and save them on another server
I use

rsync -av --progress --inplace --rsh='ssh -p22' /var/www/html/product root@37.101.11.144:/var/www/html/backup/

but this ask me for password , I want to create a cron job to copy files automatically at midnight.
how can I baypass the password ?

OsaMasw
Junior Poster
160 posts since Jan 2012
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

@CimmerianX
you were right :D
thanks

OsaMasw
Junior Poster
160 posts since Jan 2012
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

CimmerianX, are you some kind of masochist? That sounds like fun though! I'll bet you could get openvz running somewhere in there too.

dihmen, I assume you are interested in using the built-in "KVM" (Kernel Virtual Machine) functionality in CentOS/RHEL 6. Here's a guide to setting up and running KVM under RHEL 6 (or CentOS 6): http://itscblog.tamu.edu/startup-guide-for-kvm-on-centos-6/

Another option that is built into the kernel is LXC (LinuX Containers). It's not full virtualization like KVM, but it's nice and lightweight. It's similar to OpenVZ if you have any experience with that. Here's a link: http://wiki.centos.org/HowTos/LXC-on-CentOS6

I hope this helps!
-G

Gromit
Posting Whiz in Training
221 posts since Sep 2008
Reputation Points: 47
Solved Threads: 33
Skill Endorsements: 0

SPeed_FANat1c,

That's interesting! I'm stumped... Can we see the full 'df' output?

Gromit
Posting Whiz in Training
221 posts since Sep 2008
Reputation Points: 47
Solved Threads: 33
Skill Endorsements: 0

rubberman,

That's one of the first things I thought about (I used to work for a company that writes backup software and this came up a lot) so I researched it to refresh my memory. The filesystem (ext2, ext3, ext4) reserves about 5% for a buffer zone by default, which is nowhere near the 20ish percent that our OP is seeing.

This does come up a lot on larger filesystems. Since the default is 5%, you lose about 50GB on a 1TB partition, or 400GB on an 8TB partition. But 5% of 20GB is only 1GB. You usually notice the difference in the space remaining in your 'df' output, but 'du' output should be correct. I suspect that whats being reported is actually correct, but we aren't seeing all the numbers.

Thanks!
-G

Gromit
Posting Whiz in Training
221 posts since Sep 2008
Reputation Points: 47
Solved Threads: 33
Skill Endorsements: 0
Hidden files should be included in du output. I'm not familiar with ncdu, but I'm checking it out now!
What do you get from this command: sudo du -sh /

And I guess ncdu works based on du. Its just more user friendly. From that command I get:

sudo du -sh /
[sudo] password for darius:
du: cannot access `/proc/10549/task/10549/fd/4': No such file or directory
du: cannot access `/proc/10549/task/10549/fdinfo/4': No such file or directory
du: cannot access `/proc/10549/fd/4': No such file or directory
du: cannot access `/proc/10549/fdinfo/4': No such file or directory
11G     /
SPeed_FANat1c
Posting Pro in Training
492 posts since Apr 2010
Reputation Points: 13
Solved Threads: 17
Skill Endorsements: 0

You are talking about the network PXE boot capability? Yes, it uses tftp to download the system image to boot.

rubberman
Posting Maven
2,576 posts since Mar 2010
Reputation Points: 365
Solved Threads: 307
Skill Endorsements: 52

Linux automatically reserves about 10% of available space for root, so when users fill up the file system(s), the admin can still get things re-arranged (backups, remove old/stale files, etc).

rubberman
Posting Maven
2,576 posts since Mar 2010
Reputation Points: 365
Solved Threads: 307
Skill Endorsements: 52

Hello Moe2!

You may want to look into using pam_passwdqc.so. If configured correctly, it should tell the user what's acceptable when the passwd command is invoked.

I hope this helps!
-G

Gromit
Posting Whiz in Training
221 posts since Sep 2008
Reputation Points: 47
Solved Threads: 33
Skill Endorsements: 0

Hidden files should be included in du output. I'm not familiar with ncdu, but I'm checking it out now!
What do you get from this command: sudo du -sh /

Thanks!
-G

Gromit
Posting Whiz in Training
221 posts since Sep 2008
Reputation Points: 47
Solved Threads: 33
Skill Endorsements: 0

hmm,then its interesting why ncdu would not include hidden files space. And btw probably thre is no recycle bin (I guess) because its without graphical enviroment, its only console. Its in anohter server.

And those MBR and paging file are also hidden?

SPeed_FANat1c
Posting Pro in Training
492 posts since Apr 2010
Reputation Points: 13
Solved Threads: 17
Skill Endorsements: 0

It could also be that it's actually just a mathematical problem with the computer. You see, most people view 1 GB as 1000 MB. In reality, it's 1024 (computers do everything in binary, which is powers of 2). This 24 mb adds up with each GB. And really, if you look at it that way it's even larger. Basically, the right click on the drive telling you the specs and the space are calculated as 1000mb per Gb. It's not gone, just not showing it to you correctly.

That in conjunction with the MBR (master boot record) and the paging file plus the reserved space for the recycle bin can add up. The paging file can range anywhere from a couple hundred MB to a couple GB (depending on how big your filing system is). All that adds u [Sometimes].

Webville312
Posting Whiz in Training
241 posts since Feb 2012
Reputation Points: 10
Solved Threads: 22
Skill Endorsements: 0

Be sure that you do not have any hidden files, coz those hidden files tend to eat up hard disk space without your knowledge.

Webville312
Posting Whiz in Training
241 posts since Feb 2012
Reputation Points: 10
Solved Threads: 22
Skill Endorsements: 0

hello

I don't get where my linux space is gone.

when i run df -h, it shows used 15 GB of total 20 GB

when I run ncdu program, to find what takes, I do sudo ncdu in my root directory. And I see sorted by size directories:

4.7GB home
4.5GB var
1.3 GB usr

and later is 19 MB lib and so on

so adding up - the space is 4.7+4.5+1.3 = 10.5. OK plus those small directoreis lets roudn to 11 GB used. So where are my 4 GB then?

SPeed_FANat1c
Posting Pro in Training
492 posts since Apr 2010
Reputation Points: 13
Solved Threads: 17
Skill Endorsements: 0

tftp server package is needed to run PXES of redhat 9.0 is?

billy.umpel
Newbie Poster
1 post since May 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

i have implemented new passwd policy and forced users to change their password the proble is they dont know what they should insert as new password. i want to display a message like this one "passwd minimum length 8, must have 1 upper, 1 lower, 1 digit) or something like this instead of "BAD PASSWRD: its WAY too short" ... any help will be appreciated
tnx in advance

moe2
Newbie Poster
1 post since May 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0
Violet_82
Master Poster
796 posts since Jan 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 1

What version are you running and what does your config file have in it?

CimmerianX
Posting Pro in Training
499 posts since Jul 2010
Reputation Points: 49
Solved Threads: 60
Skill Endorsements: 10

hello everyone
i am getting problem while configuring ntp server in rhel6
when i write nptq -p
output:- no association id's returned
what should i do

rahul pareek
Light Poster
33 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
 
© 2013 DaniWeb® LLC
Page rendered in 0.3204 seconds using 2.76MB