Re: [asterisk-users] HDD FULLL

2009-02-24 Thread Tzafrir Cohen
On Tue, Feb 24, 2009 at 02:40:35AM +, Jeff LaCoursiere wrote:
 
 On Mon, 23 Feb 2009, David fire wrote:
 
 [snip]
 
 
  cd /some dir/maybe other dir
  rm * -r -f
 
  PLEASE DONT DO THIS AT THE ROOT DIR OR YOU WILL ERASE ALL THE DISK.
  CD TO THE TARGET DIRECTORY OR YOU WILL DESTROY YOUR SERVER.
 
 
 Nah, you will only get as far as some shared libraries before the system 
 crashes :)

Reminder: what rm does is actually unlink(2). That is: it doesn't remove
a file from the disk. It merely removes one link from the file system to
it. A file is removed only when its reference count is down to 0.

When a program uses a library, the copy of that library is still kept on
the disk. Even if it is unlinked from the filesystem already.

$ echo whatever file
$ sleep 1000 file 
[2] 9959
$ rm file

Oh no! What have I done?!

$ cat /proc/9959/fd/0
whatever
$ cp /proc/9959/fd/0 restored
$ ls -l
total 4
-rw-r--r-- 1 tzafrir tzafrir 9 2009-02-24 13:17 restored
$ cat restored
whatever

 
 Odd syntax you have there.  Most would destroy things with rm -rf * .

The '.' in the end adds some extra power. ;-)


So the bad news are that there is nothing to stop an rm -rf //#. Not 
even when system libraries are deleted.

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] HDD FULLL

2009-02-24 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David @ULC wrote:
 When I am trying to delete voice logs, 
 
 [r...@vicidialnow monitor]# rm * -r -f
 -bash: /bin/rm: Argument list too long
 [r...@vicidialnow monitor]#
 
 Argument list too long is coming as a road block.
 
 Now way to forcefully delete files ?
 


Use:
cd /path/to/monitor
find . -type f | xargs rm


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFJo+4sCFu3bIiwtTARAmtlAJ9ZSHjMUTFogxjV1+R3SVai46PxtQCgifkJ
m18j5pNazt3YBytO3rUV/NU=
=djs8
-END PGP SIGNATURE-

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] HDD FULLL

2009-02-23 Thread Darren Wiebe
Just restarting it won't do anything.  You could use the following 
command to find any files over 200mb on the system.  Be careful about 
blindly deleting stuff though

*find / -type f -size +200M

Darren Wiebe
dar...@aleph-com.net
*
David @ULC wrote:
 I have 320 GB SATA HDD. 

 When I checked my phpsysinfo, it shows 95% HDD is filled. 

 [r...@vicidialnow mailto:r...@vicidialnow ~]# df 
 Filesystem 1K-blocks Used Available Use% Mounted on 
 /dev/sda2 301924504 285002780 1337472 100% / 
 /dev/sda1 101086 11062 84805 12% /boot 
 tmpfs 1553832 0 1553832 0% /dev/shm 
 [r...@vicidialnow mailto:r...@vicidialnow ~]# du 
 16896 . 
 You have new mail in /var/spool/mail/root 

 [r...@vicidialnow mailto:r...@vicidialnow ~]# df -i 
 Filesystem Inodes IUsed IFree IUse% Mounted on 
 /dev/sda2 77922304 528483 77393821 1% / 
 /dev/sda1 26104 34 26070 1% /boot 
 tmpfs 219910 1 219909 1% /dev/shm 
 You have new mail in /var/spool/mail/root 


 But my concern is how to solve it

 I even tried restarting the server , though it will kill unwanted 
 process and will release the space but no ho
 

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] HDD FULLL

2009-02-23 Thread David fire
try format c:
and get a book about linux! or a course!

this is an asterisk mailing list not a linux/centos/vicidial now mailing
list.

and to solve that you need to delete some files.
probably the recorded audios.

cd /some dir/maybe other dir
rm * -r -f

PLEASE DONT DO THIS AT THE ROOT DIR OR YOU WILL ERASE ALL THE DISK.
CD TO THE TARGET DIRECTORY OR YOU WILL DESTROY YOUR SERVER.


or you can use lvm and add more disks.



2009/2/23 David @ULC ucoms2...@gmail.com

 I have 320 GB SATA HDD.

 When I checked my phpsysinfo, it shows 95% HDD is filled.

 [r...@vicidialnow ~]# df
 Filesystem 1K-blocks Used Available Use% Mounted on
 /dev/sda2 301924504 285002780 1337472 100% /
 /dev/sda1 101086 11062 84805 12% /boot
 tmpfs 1553832 0 1553832 0% /dev/shm
 [r...@vicidialnow ~]# du
 16896 .
 You have new mail in /var/spool/mail/root

 [r...@vicidialnow ~]# df -i
 Filesystem Inodes IUsed IFree IUse% Mounted on
 /dev/sda2 77922304 528483 77393821 1% /
 /dev/sda1 26104 34 26070 1% /boot
 tmpfs 219910 1 219909 1% /dev/shm
 You have new mail in /var/spool/mail/root


 But my concern is how to solve it

 I even tried restarting the server , though it will kill unwanted process
 and will release the space but no ho

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] HDD FULLL

2009-02-23 Thread David @ULC
[r...@vicidialnow ~]# find / -type f -size +200M
/proc/kcore
/var/log/httpd/error_log.3
/var/log/httpd/access_log.3
/var/log/httpd/access_log.1
/var/log/httpd/error_log.2
/var/log/httpd/error_log.4
/var/log/httpd/access_log.2
/var/log/httpd/access_log.4
/var/log/httpd/error_log.1

I believe I can easily delete Log file.



On Tue, Feb 24, 2009 at 7:05 AM, David @ULC ucoms2...@gmail.com wrote:

 I have 320 GB SATA HDD.

 When I checked my phpsysinfo, it shows 95% HDD is filled.

 [r...@vicidialnow ~]# df
 Filesystem 1K-blocks Used Available Use% Mounted on
 /dev/sda2 301924504 285002780 1337472 100% /
 /dev/sda1 101086 11062 84805 12% /boot
 tmpfs 1553832 0 1553832 0% /dev/shm
 [r...@vicidialnow ~]# du
 16896 .
 You have new mail in /var/spool/mail/root

 [r...@vicidialnow ~]# df -i
 Filesystem Inodes IUsed IFree IUse% Mounted on
 /dev/sda2 77922304 528483 77393821 1% /
 /dev/sda1 26104 34 26070 1% /boot
 tmpfs 219910 1 219909 1% /dev/shm
 You have new mail in /var/spool/mail/root


 But my concern is how to solve it

 I even tried restarting the server , though it will kill unwanted process
 and will release the space but no ho

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] HDD FULLL

2009-02-23 Thread Steve Edwards
On Tue, 24 Feb 2009, David @ULC wrote:

 I have 320 GB SATA HDD.

 When I checked my phpsysinfo, it shows 95% HDD is filled.

Please find a more appropriate forum for beginning Linux|Unix user 
questions.

Thanks in advance,

Steve Edwards  sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] HDD FULLL

2009-02-23 Thread David @ULC
When I am trying to delete voice logs,
[r...@vicidialnow monitor]# rm * -r -f
-bash: /bin/rm: Argument list too long
[r...@vicidialnow monitor]#

Argument list too long is coming as a road block.

Now way to forcefully delete files ?

On Tue, Feb 24, 2009 at 7:30 AM, David @ULC ucoms2...@gmail.com wrote:


 [r...@vicidialnow ~]# find / -type f -size +200M
 /proc/kcore
 /var/log/httpd/error_log.3
 /var/log/httpd/access_log.3
 /var/log/httpd/access_log.1
 /var/log/httpd/error_log.2
 /var/log/httpd/error_log.4
 /var/log/httpd/access_log.2
 /var/log/httpd/access_log.4
 /var/log/httpd/error_log.1

 I believe I can easily delete Log file.



 On Tue, Feb 24, 2009 at 7:05 AM, David @ULC ucoms2...@gmail.com wrote:

 I have 320 GB SATA HDD.

 When I checked my phpsysinfo, it shows 95% HDD is filled.

 [r...@vicidialnow ~]# df
 Filesystem 1K-blocks Used Available Use% Mounted on
 /dev/sda2 301924504 285002780 1337472 100% /
 /dev/sda1 101086 11062 84805 12% /boot
 tmpfs 1553832 0 1553832 0% /dev/shm
 [r...@vicidialnow ~]# du
 16896 .
 You have new mail in /var/spool/mail/root

 [r...@vicidialnow ~]# df -i
 Filesystem Inodes IUsed IFree IUse% Mounted on
 /dev/sda2 77922304 528483 77393821 1% /
 /dev/sda1 26104 34 26070 1% /boot
 tmpfs 219910 1 219909 1% /dev/shm
 You have new mail in /var/spool/mail/root


 But my concern is how to solve it

 I even tried restarting the server , though it will kill unwanted process
 and will release the space but no ho



___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] HDD FULLL

2009-02-23 Thread David @ULC
My server is down :-(
Thats why posted here

On Tue, Feb 24, 2009 at 7:05 AM, David @ULC ucoms2...@gmail.com wrote:

 I have 320 GB SATA HDD.

 When I checked my phpsysinfo, it shows 95% HDD is filled.

 [r...@vicidialnow ~]# df
 Filesystem 1K-blocks Used Available Use% Mounted on
 /dev/sda2 301924504 285002780 1337472 100% /
 /dev/sda1 101086 11062 84805 12% /boot
 tmpfs 1553832 0 1553832 0% /dev/shm
 [r...@vicidialnow ~]# du
 16896 .
 You have new mail in /var/spool/mail/root

 [r...@vicidialnow ~]# df -i
 Filesystem Inodes IUsed IFree IUse% Mounted on
 /dev/sda2 77922304 528483 77393821 1% /
 /dev/sda1 26104 34 26070 1% /boot
 tmpfs 219910 1 219909 1% /dev/shm
 You have new mail in /var/spool/mail/root


 But my concern is how to solve it

 I even tried restarting the server , though it will kill unwanted process
 and will release the space but no ho

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] HDD FULLL

2009-02-23 Thread Steve Edwards
On Tue, 24 Feb 2009, David @ULC wrote:

 When I am trying to delete voice logs,
 [r...@vicidialnow monitor]# rm * -r -f
 -bash: /bin/rm: Argument list too long

In the past 30 days, you've asked questions about

configuring Apache to process PHP files, 
Vicidial,
Ntework Cards,
Auto Detecting hardware,
BAT files on CentOS,
Root Password not taking,
How to find a file,
Looking for a Free VOIP Billing and Soft Switch,
What is a VPN,
How do delete files,
oh, and a couple of Asterisk questions.

This is an Asterisk users list. We're here to help each other with 
Asterisk questions and problems, not to be your personal, for free, life 
coach.

If you are being paid to work on an Asterisk system, you are in over your 
head. You are defrauding your boss and most likely will give him and 
everyone in the company a bad impression of Asterisk.

Continuing to answer your questions will only continue to enable you.

Please take a step back, buy some books, take some courses, practice on 
your own systems on your own time.

I will continue to read your posts, but only for comic relief.

Thanks in advance,

Steve Edwards  sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] HDD FULLL

2009-02-23 Thread Jeff LaCoursiere

On Mon, 23 Feb 2009, David fire wrote:

[snip]


 cd /some dir/maybe other dir
 rm * -r -f

 PLEASE DONT DO THIS AT THE ROOT DIR OR YOU WILL ERASE ALL THE DISK.
 CD TO THE TARGET DIRECTORY OR YOU WILL DESTROY YOUR SERVER.


Nah, you will only get as far as some shared libraries before the system 
crashes :)

Odd syntax you have there.  Most would destroy things with rm -rf * .

j

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] HDD FULLL

2009-02-23 Thread David fire
go to the previos dir and do
ls -lha target dir
write somewhere the owner and the attributes
rm target dir -r -f

you will erase all the target directory and all the sub directorys.

then
mkdir target dir
chmod atributes target dir

chown owner.group target dir

if you have problems use man command

and use the off topics only for emergencys if not  some day no one will
answer you.

you are new on this i am newby too but is very importat to know where ask
what...
and download any free linux book and READ IT!!!
David


2009/2/24 David @ULC ucoms2...@gmail.com

 When I am trying to delete voice logs,
 [r...@vicidialnow monitor]# rm * -r -f
 -bash: /bin/rm: Argument list too long
 [r...@vicidialnow monitor]#

 Argument list too long is coming as a road block.

 Now way to forcefully delete files ?

 On Tue, Feb 24, 2009 at 7:30 AM, David @ULC ucoms2...@gmail.com wrote:


 [r...@vicidialnow ~]# find / -type f -size +200M
 /proc/kcore
 /var/log/httpd/error_log.3
 /var/log/httpd/access_log.3
 /var/log/httpd/access_log.1
 /var/log/httpd/error_log.2
 /var/log/httpd/error_log.4
 /var/log/httpd/access_log.2
 /var/log/httpd/access_log.4
 /var/log/httpd/error_log.1

 I believe I can easily delete Log file.



 On Tue, Feb 24, 2009 at 7:05 AM, David @ULC ucoms2...@gmail.com wrote:

 I have 320 GB SATA HDD.

 When I checked my phpsysinfo, it shows 95% HDD is filled.

 [r...@vicidialnow ~]# df
 Filesystem 1K-blocks Used Available Use% Mounted on
 /dev/sda2 301924504 285002780 1337472 100% /
 /dev/sda1 101086 11062 84805 12% /boot
 tmpfs 1553832 0 1553832 0% /dev/shm
 [r...@vicidialnow ~]# du
 16896 .
 You have new mail in /var/spool/mail/root

 [r...@vicidialnow ~]# df -i
 Filesystem Inodes IUsed IFree IUse% Mounted on
 /dev/sda2 77922304 528483 77393821 1% /
 /dev/sda1 26104 34 26070 1% /boot
 tmpfs 219910 1 219909 1% /dev/shm
 You have new mail in /var/spool/mail/root


 But my concern is how to solve it

 I even tried restarting the server , though it will kill unwanted process
 and will release the space but no ho




 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] HDD FULLL

2009-02-23 Thread Matt Watson
On Mon, Feb 23, 2009 at 9:38 PM, Steve Edwards asterisk@sedwards.comwrote:

 On Tue, 24 Feb 2009, David @ULC wrote:

  When I am trying to delete voice logs,
  [r...@vicidialnow monitor]# rm * -r -f
  -bash: /bin/rm: Argument list too long

 In the past 30 days, you've asked questions about

 configuring Apache to process PHP files,
 Vicidial,
 Ntework Cards,
 Auto Detecting hardware,
 BAT files on CentOS,
 Root Password not taking,
 How to find a file,
 Looking for a Free VOIP Billing and Soft Switch,
 What is a VPN,
 How do delete files,
 oh, and a couple of Asterisk questions.

 This is an Asterisk users list. We're here to help each other with
 Asterisk questions and problems, not to be your personal, for free, life
 coach.

 If you are being paid to work on an Asterisk system, you are in over your
 head. You are defrauding your boss and most likely will give him and
 everyone in the company a bad impression of Asterisk.

 Continuing to answer your questions will only continue to enable you.

 Please take a step back, buy some books, take some courses, practice on
 your own systems on your own time.



Just have to say it: I totally agree with you and was thinking the same
thing as soon as I read that they tried rebooting the machine thinking that
would free up space on the HD... didn;t even realize this was the same
person that had posted some of those other threads

--
Matt
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] HDD FULLL

2009-02-23 Thread Paul Hales

 If you are being paid to work on an Asterisk system, you are in over your 
 head. You are defrauding your boss and most likely will give him and 
 everyone in the company a bad impression of Asterisk.

 Continuing to answer your questions will only continue to enable you.

 Please take a step back, buy some books, take some courses, practice on 
 your own systems on your own time.

 I will continue to read your posts, but only for comic relief.

 Thanks in advance,
 
 Steve Edwards  sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
 Newline Fax: +1-760-731-3000

 ___
   

That was the funniest thing I have read in a while - thanks!

PaulH

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] HDD FULLL

2009-02-23 Thread Roderick A. Anderson
Steve Edwards wrote:
 On Tue, 24 Feb 2009, David @ULC wrote:
 
 When I am trying to delete voice logs,
 [r...@vicidialnow monitor]# rm * -r -f
 -bash: /bin/rm: Argument list too long
 
 In the past 30 days, you've asked questions about
 
 configuring Apache to process PHP files, 
 Vicidial,
 Ntework Cards,
 Auto Detecting hardware,
 BAT files on CentOS,
 Root Password not taking,
 How to find a file,
 Looking for a Free VOIP Billing and Soft Switch,
 What is a VPN,
 How do delete files,
 oh, and a couple of Asterisk questions.

if header :contains From ucoms2...@gmail.com {
fileinto humor;
stop;
}

Like Matt I had missed that this was the same person.  Thanks for the 
reminder.


Rod
--
 This is an Asterisk users list. We're here to help each other with 
 Asterisk questions and problems, not to be your personal, for free, life 
 coach.
 
 If you are being paid to work on an Asterisk system, you are in over your 
 head. You are defrauding your boss and most likely will give him and 
 everyone in the company a bad impression of Asterisk.
 
 Continuing to answer your questions will only continue to enable you.
 
 Please take a step back, buy some books, take some courses, practice on 
 your own systems on your own time.
 
 I will continue to read your posts, but only for comic relief.
 
 Thanks in advance,
 
 Steve Edwards  sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
 Newline Fax: +1-760-731-3000
 
 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users