Sponsored Content
Top Forums UNIX for Beginners Questions & Answers CentOS 6 ran out of space, need to reclaim it Post 303038170 by DannyBoyCentOS on Tuesday 27th of August 2019 11:34:03 AM
Old 08-27-2019
Quote:
Originally Posted by Peasant

I was about to be walked through extending ext4 partition as a suggestion from one of the forums - which would've worked too (if done correctly), but ....
Yeah, I would not have done the "extend the root partition" approach. It would work but it is suboptimal.

It would be better to create a new partition for the mysql data and move it off the root partition. I try to keep as much user data, dumps and backups off the root partition as I can, generally speaking.


You might still consider doing this, as you are still have your main apps data directory on your root partition.

My suggestion to you, after you got mysqld running again on the (temp) /home partition, was to ask you to create a new partition for your db data. Normally I call this, not surprisingly:

Code:
/data

Anyway, you are well on your way now. Well done.
This User Gave Thanks to DannyBoyCentOS For This Post:
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Ran out of space on /dev/root partition

hi, I have a SCO unix server which has a 36gb hard drive, but the IT company who supplied it assigned 1gb to /dev/root, 15mb to /dev/boot and 33gb to /dev/u. The /dev/root partition is now full, is there a way I can use the 33gb assigned to /dev/u without loosing any data, preferably... (2 Replies)
Discussion started by: Martyn
2 Replies

2. Shell Programming and Scripting

which user ran which command

can we come to know all the command ran bya user for last 1 day (1 Reply)
Discussion started by: narang.mohit
1 Replies

3. UNIX for Dummies Questions & Answers

Reclaim deleted disk space

I have a disk space issue on one of my unix servers. it is showing 98% full.. i found the offending folder and removed it. but i have not reclaimed the disk space. is there another command that i need ? thank you in advance for any assistance. (4 Replies)
Discussion started by: JanSP
4 Replies

4. Shell Programming and Scripting

Identify if ran by su or sudo?

Recently I was on an operational call and heard the people running my code placing the code in the /tmp directory and running as root. I had not planned on that. So I want to add some checks to my code (using ksh93): # ---------- ---------- ---------- # root not allowed to run this #... (3 Replies)
Discussion started by: ericdp63
3 Replies

5. Shell Programming and Scripting

how to find whether a script ran or not

Hi, I have written a script and placed in an application and the script can be executed manually only. But somehow one of the method in the script is being called and bringing the application down. But we are not able to find any instance of script running. Is there a way to findout whether the... (1 Reply)
Discussion started by: Satyak
1 Replies

6. Linux

How to reclaim the space which i used to increse the swap space on Xen,

Hi, i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :- 1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 1057 ls -l /root/myswapfile 1058 chmod 600 /root/myswapfile 1059 mkswap /root/myswapfile 1060 swapon /root/myswapfile ... (1 Reply)
Discussion started by: apm
1 Replies

7. Red Hat

On CentOS, moving space from large free directory to another

Hi. My "/usr" folder is running out of space. My "/home" folder is quite large and has a lot of free space. As follows: Filesystem Type Size Used Avail Use% Mounted on ... /dev/sda5 ext3 9.7G 2.6G 6.7G 28% / /dev/sda7 ext3 152G 16G 128G 11% /home /dev/sda3 ... (7 Replies)
Discussion started by: pkiula
7 Replies

8. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

9. AIX

How to reclaim hard disks and IP's in AIX?

Hello I recently received a request to reclaim hard disks and IP addresses within an AIX system(s). THe file systems are no longer in use and the client has indicated that it is OK to remove them and reclaim the disks and release the IP's. Now, since the file systems belong to a Volume group I... (8 Replies)
Discussion started by: Joseph Sabo
8 Replies

10. UNIX for Beginners Questions & Answers

Safe way to shrink lvm vg_*-lv_swap partition and reclaim freed space on Linux?

Hello, # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom sda 8:0 0 38.2G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda2 8:2 ... (2 Replies)
Discussion started by: centosadmin
2 Replies
vparremove(1M)															    vparremove(1M)

NAME
vparremove - remove a virtual partition SYNOPSIS
vp_name db_file] DESCRIPTION
The command deletes a virtual partition previously created using the command. All resources associated with the virtual partition are made available for allocation to other partitions. Unintentional use of this command has serious consequences; therefore the user is prompted to confirm the operation unless the (force) option is specified. Options recognizes the following command line options and arguments: Specifies the unique name of the virtual partition which is to be removed. Required. Removes a virtual partition from the partition database contained in db_file. If this option is omitted, the virtual partition is removed from the monitor's database. In this case, the partition must be in the state to be removed. Thus it is an error to try to remove the current virtual partition, the one in which the command is executing. Specifies the force option. Omits the confirmation dialog before removing the virtual partition. This option is intended for use by scripts and other non-interactive applications. SECURITY RESTRICTIONS
This command is restricted to processes owned by superuser. When virtual partition flexible administrative capability is enabled, a virtual partition can only be removed from within a Designated- Admin vPar. RETURN VALUE
The command exits with one of the following values: Successful completion. One or more error conditions occurred. EXAMPLES
Destroy the virtual partition in the partition database currently running in the monitor: Destroy the virtual partition in the partition database currently running in the monitor using the force option: Delete partition in partition database file ERRORS
displays error messages on standard error for any of the following conditions: o db_file does not exist, cannot be accessed, is not a virtual partition database file, or is corrupt. o vp_name does not exist in the monitor's database or in db_file. o vp_name in the monitor's database is in some state other than o The command and the virtual partition monitor are at different revision levels. o When the virtual partition flexible administrative capability is enabled and the local virtual partition is not a Designated- Admin vPar. AUTHOR
was developed by the Hewlett-Packard Company. SEE ALSO
vparadmin(1M), vparboot(1M), vparconfig(1M), vparcreate(1M), vpardump(1M), vparefiutil(1M), vparenv(1M), vparextract(1M), vparmodify(1M), vparreloc(1M), vparreset(1M), vparstatus(1M), vparutil(1M), vparresources(5), vpartition(5), vpmon(5). vparremove(1M)
All times are GMT -4. The time now is 01:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy