Hi, I?m running a CentOS server in a VPS. Backups of the VPS take quite much space if I don?t claim unused space. Currently I?m using dd if=/dev/zero of=/mytempfile and remove that file to claim that unused space. Any automatic way of doing a similar thing in CentOS? I have googled for it but I have only found Debian commands. Thanks in advance! Miguel
I realize this is wandering off-topic but, if you have found Debian commands, you're doing better than me. What are they? Also, are you allowing dd to totally fill the partition (what I have found on the web as a recommendation)? If so, is the OS surviving acceptably? ----- Original Message ----- From: "Miguel Gonz?lez" <miguel_3_gonzalez at yahoo.es> To: "centos" <centos at centos.org> Sent: Saturday, July 29, 2017 5:11:33 AM Subject: [CentOS] claiming unsused space back Hi, I?m running a CentOS server in a VPS. Backups of the VPS take quite much space if I don?t claim unused space. Currently I?m using dd if=/dev/zero of=/mytempfile and remove that file to claim that unused space. Any automatic way of doing a similar thing in CentOS? I have googled for it but I have only found Debian commands. Thanks in advance! Miguel _______________________________________________ CentOS mailing list CentOS at centos.org https://lists.centos.org/mailman/listinfo/centos
On Mon, Jul 31, 2017 at 08:28:49AM -0500, Leroy Tennison wrote:> I realize this is wandering off-topic but, if you have found Debian commands, you're doing better than me. What are they? Also, are you allowing dd to totally fill the partition (what I have found on the web as a recommendation)? If so, is the OS surviving acceptably? > > ----- Original Message ----- > From: "Miguel Gonz?lez" <miguel_3_gonzalez at yahoo.es> > To: "centos" <centos at centos.org> > Sent: Saturday, July 29, 2017 5:11:33 AM > Subject: [CentOS] claiming unsused space back > > Hi, > > I?m running a CentOS server in a VPS. Backups of the VPS take quite > much space if I don?t claim unused space. > > Currently I?m using dd if=/dev/zero of=/mytempfile and remove that file > to claim that unused space. Any automatic way of doing a similar thing > in CentOS? I have googled for it but I have only found Debian commands. > > Thanks in advance!I may be blind, but I don't seehow that technique can "reclaim" any space. all it does is fill up all the space not allocated to other files by creating one large file that occupies all otherwise unused disk space. presumably you'll delete that file once it is created, but you won't have any more free disk space than you had before. the only difference will be that that unused space will then be filled with zeroes. what are you actually wanting to do here? -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------- The eyes of the Lord are everywhere, keeping watch on the wicked and the good. ----------------------------- Proverbs 15:3 (niv) -----------------------------
On Jul 31, 2017, at 7:28 AM, Leroy Tennison <leroy at datavoiceint.com> wrote:> > if you have found Debian commands, you're doing better than me. What are they?I?m not aware of a generic Debian-to-CentOS command translation dictionary. You?ll have to be specific about the commands you?re not finding. Almost all of the commands you can run on a Debian system apply to a CentOS system, and vice versa. The main differences today are in the packaging system. Prior to the systemd takeover of the world, there were also significant command differences in the init system. (See, haters, there?s actual value in systemd!) Anyway, your `dd` command will run just fine on CentOS. The only thing I?d look at changing is that it will only affect the root filesystem, which may not include all of the other filesystems you want to affect. Post your mount table (i.e. output of the `mount` command) if you want advice here.
Hi, Why wandering off-topic? This is about CentOS on VPSes. I can?t remember which Debian or Ubuntu commands I found since I didn?t use them. I?m allowing dd to totally fill the partition and the OS is surviving perfectly (It?s a web server and works fine as long as I don?t keep it "full" too long). Regarding other comments that I have read: I?m using qcow2, I don?t need to shrink the HD size since sometimes it grows temporarily (backups). Regards, Miguel On 07/31/17 3:28 PM, Leroy Tennison wrote:> I realize this is wandering off-topic but, if you have found Debian commands, you're doing better than me. What are they? Also, are you allowing dd to totally fill the partition (what I have found on the web as a recommendation)? If so, is the OS surviving acceptably? > > ----- Original Message ----- > From: "Miguel Gonz?lez" <miguel_3_gonzalez at yahoo.es> > To: "centos" <centos at centos.org> > Sent: Saturday, July 29, 2017 5:11:33 AM > Subject: [CentOS] claiming unsused space back > > Hi, > > I?m running a CentOS server in a VPS. Backups of the VPS take quite > much space if I don?t claim unused space. > > Currently I?m using dd if=/dev/zero of=/mytempfile and remove that file > to claim that unused space. Any automatic way of doing a similar thing > in CentOS? I have googled for it but I have only found Debian commands. > > Thanks in advance! > > Miguel > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >