PostgreSQL - Could not extend file No space left on device. HINT: Check free disk space Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Come Celebrate our 10 Year Anniversary!fsck on LVM snapshots/tmp used 100% where is files?CentOS partitioningUnexpected behaviour from dfLinux LVM: move free space from a volume group to anotherRoot volume /dev/mapper/centos-root fullResize Centos 7 Root partition set up as xfs file system.Virtualbox disk in CentOS mount/format issuePostgreSQL - Clear space on Linux machineAWS E2 Instance : How to Resize Disk

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

Suing a Police Officer Instead of the Police Department

std::is_constructible on incomplete types

How to open locks without disable device?

A faster way to compute the largest prime factor

Seek and ye shall find

With indentation set to `0em`, when using a line break, there is still an indentation of a size of a space

Married in secret, can marital status in passport be changed at a later date?

Additive group of local rings

Is accepting an invalid credit card number a security issue?

Why isn't everyone flabbergasted about Bran's "gift"?

How to keep bees out of canned beverages?

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

What *exactly* is electrical current, voltage, and resistance?

Can you stand up from being prone using Skirmisher outside of your turn?

Could moose/elk survive in the Amazon forest?

How do I check if a string is entirely made of the same substring?

As an international instructor, should I openly talk about my accent?

The art of proof summarizing. Are there known rules, or is it a purely common sense matter?

"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?

c++ diamond problem - How to call base method only once

Will I lose my paid in full property

My bank got bought out, am I now going to have to start filing tax returns in a different state?

Is Diceware more secure than a long passphrase?



PostgreSQL - Could not extend file No space left on device. HINT: Check free disk space



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Come Celebrate our 10 Year Anniversary!fsck on LVM snapshots/tmp used 100% where is files?CentOS partitioningUnexpected behaviour from dfLinux LVM: move free space from a volume group to anotherRoot volume /dev/mapper/centos-root fullResize Centos 7 Root partition set up as xfs file system.Virtualbox disk in CentOS mount/format issuePostgreSQL - Clear space on Linux machineAWS E2 Instance : How to Resize Disk



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I've been inserting data into PostgreSQL DB, and got the error message:



psycopg2.OperationalError: could not extend file "base/16384/61892": No space left on device
HINT: Check free disk space


I am using CentOS 7, and I've checked some of my status on my linux machine:



df -h



enter image description here



I'm pretty new to Linux, and based on the result of my df -h command, I could see that Linux storage system works differently than Windows.



It looks like PostgreSQL is pushing to /dev/mapper/centos-root, but it has only 50 GB available.



Question 1: How can I change it? How can I assign the extra free space that's available in /dev/mapper/centos-home to my ~/centos-root directory?



Question 2: My machine has two Hard disk, 200 GB each. But according to my df-h command, it looked like I only have 200GB available. Why is this the case? How can I take advantage of full 400GB space?



It looks like the problem is that my /dev/mapper/centos-root is all filled up. I have inserted nearly 10,000,000 rows of data with 12 columns in PostgreSQL.



Question 3: Is this big enough to take up 50GB of space?



Thanks!



Edit: output of pvs, vgs, lvs



enter image description here










share|improve this question
























  • Please post the output of pvs; vgs; lvs

    – shodanshok
    Oct 1 '18 at 5:44











  • @shodanshok please check the update. Also, what are the significance of each commands?

    – Eric Kim
    Oct 1 '18 at 6:05






  • 1





    @EricKim (almost) every command comes with an online manual that will give you between a hint and an encyclopaedia's worth of information on what the command does and supported switches etc.; try man pvs , man lvs and the manual for the manual system man man - but the relevant output of the command sequence shows how much of your physical disk(s) , physical volume and logical volume space is assigned and available

    – HBruijn
    Oct 1 '18 at 7:15

















0















I've been inserting data into PostgreSQL DB, and got the error message:



psycopg2.OperationalError: could not extend file "base/16384/61892": No space left on device
HINT: Check free disk space


I am using CentOS 7, and I've checked some of my status on my linux machine:



df -h



enter image description here



I'm pretty new to Linux, and based on the result of my df -h command, I could see that Linux storage system works differently than Windows.



It looks like PostgreSQL is pushing to /dev/mapper/centos-root, but it has only 50 GB available.



Question 1: How can I change it? How can I assign the extra free space that's available in /dev/mapper/centos-home to my ~/centos-root directory?



Question 2: My machine has two Hard disk, 200 GB each. But according to my df-h command, it looked like I only have 200GB available. Why is this the case? How can I take advantage of full 400GB space?



It looks like the problem is that my /dev/mapper/centos-root is all filled up. I have inserted nearly 10,000,000 rows of data with 12 columns in PostgreSQL.



Question 3: Is this big enough to take up 50GB of space?



Thanks!



Edit: output of pvs, vgs, lvs



enter image description here










share|improve this question
























  • Please post the output of pvs; vgs; lvs

    – shodanshok
    Oct 1 '18 at 5:44











  • @shodanshok please check the update. Also, what are the significance of each commands?

    – Eric Kim
    Oct 1 '18 at 6:05






  • 1





    @EricKim (almost) every command comes with an online manual that will give you between a hint and an encyclopaedia's worth of information on what the command does and supported switches etc.; try man pvs , man lvs and the manual for the manual system man man - but the relevant output of the command sequence shows how much of your physical disk(s) , physical volume and logical volume space is assigned and available

    – HBruijn
    Oct 1 '18 at 7:15













0












0








0








I've been inserting data into PostgreSQL DB, and got the error message:



psycopg2.OperationalError: could not extend file "base/16384/61892": No space left on device
HINT: Check free disk space


I am using CentOS 7, and I've checked some of my status on my linux machine:



df -h



enter image description here



I'm pretty new to Linux, and based on the result of my df -h command, I could see that Linux storage system works differently than Windows.



It looks like PostgreSQL is pushing to /dev/mapper/centos-root, but it has only 50 GB available.



Question 1: How can I change it? How can I assign the extra free space that's available in /dev/mapper/centos-home to my ~/centos-root directory?



Question 2: My machine has two Hard disk, 200 GB each. But according to my df-h command, it looked like I only have 200GB available. Why is this the case? How can I take advantage of full 400GB space?



It looks like the problem is that my /dev/mapper/centos-root is all filled up. I have inserted nearly 10,000,000 rows of data with 12 columns in PostgreSQL.



Question 3: Is this big enough to take up 50GB of space?



Thanks!



Edit: output of pvs, vgs, lvs



enter image description here










share|improve this question
















I've been inserting data into PostgreSQL DB, and got the error message:



psycopg2.OperationalError: could not extend file "base/16384/61892": No space left on device
HINT: Check free disk space


I am using CentOS 7, and I've checked some of my status on my linux machine:



df -h



enter image description here



I'm pretty new to Linux, and based on the result of my df -h command, I could see that Linux storage system works differently than Windows.



It looks like PostgreSQL is pushing to /dev/mapper/centos-root, but it has only 50 GB available.



Question 1: How can I change it? How can I assign the extra free space that's available in /dev/mapper/centos-home to my ~/centos-root directory?



Question 2: My machine has two Hard disk, 200 GB each. But according to my df-h command, it looked like I only have 200GB available. Why is this the case? How can I take advantage of full 400GB space?



It looks like the problem is that my /dev/mapper/centos-root is all filled up. I have inserted nearly 10,000,000 rows of data with 12 columns in PostgreSQL.



Question 3: Is this big enough to take up 50GB of space?



Thanks!



Edit: output of pvs, vgs, lvs



enter image description here







linux centos centos7 storage postgresql






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 1 '18 at 6:05







Eric Kim

















asked Oct 1 '18 at 5:32









Eric KimEric Kim

10815




10815












  • Please post the output of pvs; vgs; lvs

    – shodanshok
    Oct 1 '18 at 5:44











  • @shodanshok please check the update. Also, what are the significance of each commands?

    – Eric Kim
    Oct 1 '18 at 6:05






  • 1





    @EricKim (almost) every command comes with an online manual that will give you between a hint and an encyclopaedia's worth of information on what the command does and supported switches etc.; try man pvs , man lvs and the manual for the manual system man man - but the relevant output of the command sequence shows how much of your physical disk(s) , physical volume and logical volume space is assigned and available

    – HBruijn
    Oct 1 '18 at 7:15

















  • Please post the output of pvs; vgs; lvs

    – shodanshok
    Oct 1 '18 at 5:44











  • @shodanshok please check the update. Also, what are the significance of each commands?

    – Eric Kim
    Oct 1 '18 at 6:05






  • 1





    @EricKim (almost) every command comes with an online manual that will give you between a hint and an encyclopaedia's worth of information on what the command does and supported switches etc.; try man pvs , man lvs and the manual for the manual system man man - but the relevant output of the command sequence shows how much of your physical disk(s) , physical volume and logical volume space is assigned and available

    – HBruijn
    Oct 1 '18 at 7:15
















Please post the output of pvs; vgs; lvs

– shodanshok
Oct 1 '18 at 5:44





Please post the output of pvs; vgs; lvs

– shodanshok
Oct 1 '18 at 5:44













@shodanshok please check the update. Also, what are the significance of each commands?

– Eric Kim
Oct 1 '18 at 6:05





@shodanshok please check the update. Also, what are the significance of each commands?

– Eric Kim
Oct 1 '18 at 6:05




1




1





@EricKim (almost) every command comes with an online manual that will give you between a hint and an encyclopaedia's worth of information on what the command does and supported switches etc.; try man pvs , man lvs and the manual for the manual system man man - but the relevant output of the command sequence shows how much of your physical disk(s) , physical volume and logical volume space is assigned and available

– HBruijn
Oct 1 '18 at 7:15





@EricKim (almost) every command comes with an online manual that will give you between a hint and an encyclopaedia's worth of information on what the command does and supported switches etc.; try man pvs , man lvs and the manual for the manual system man man - but the relevant output of the command sequence shows how much of your physical disk(s) , physical volume and logical volume space is assigned and available

– HBruijn
Oct 1 '18 at 7:15










1 Answer
1






active

oldest

votes


















4














Your server is badly partitioned. This is not entirely your fault; rather, the default RHEL/CentOS settings are quite misleading in my opinion.



Let's start from the description on the pvs; vgs; lvs command entered above. They are all related to LVM2, a Logical Volume Manager which, in short, enable you to create "flexible", resizeable partitions:



  • pvs shows how the physical disks are attached to the LVM system. You had 2x 200 GB disks, but pvs only shows 1x200 GB physical device. This means your disks are in RAID1 (mirroring) and they are wholly assigned to LVM (ie: no physical space is unassigned);


  • vgs shows the Volume Group assigned to your physical devices and any usable free space. In your case free space is <4 MB, so basically you have no space free space. The next command explains what is using your space...


  • lvs shows you have two Logical Volumes (think them as partitions): a 50 GB root volume and a ~145 GB home volume. In short, your root volume (where PostgreSQL resides) is way smaller than your needs; rather, your home volume is very large considering how few data (< 5GB) it contains.


To solve the problem, you have two options:



  • relocate PostgreSQL under the home volume, for example under /home/pgsl. I would avoid this because /home is not the right place for a database and it will cause an administrative burden in the future. Moreover, you need to put SELinux into permissive mode (setenforce 0 + /etc/selinux/config editing) to let the relocation work;


  • shrink the home volume and enlarge root. This is easier said than done, especially if you are using XFS (default RHEL/CentOS filesystem), which does not support shrinking.


If and only if your data under home can be trashed / reloaded, you can follow the following steps to DELETE the home volume and enlarging root. Please note that a small error (both mine and your) WILL destroy your data (killing any cats in a ~100 KM range), and so I take NO RESPONSABILITY for the final outcome. If you are unsure, stop here and call a professional sysadmin for support. Ok, let's go ahead; I'll post a command sequence with the relative description:




  • umount /home: this unmount (ie "disable") the home volume;


  • lvremove centos/home: this permanently destroy /home and all its content;


  • lvextend centos/root -L +100G: this expand the root volume by 100 GB;


  • xfs_growfs /: assuming you are using XFS, this expand the root filesystem to match the underlying, extended volume. If you are using ext4 (which is improbable), you need to issue resize2fs /dev/centos/root.





share|improve this answer























  • It would be at least prudent to first have a look at what /home contains before nuking it, and recreate /home and remount it afterwards else problems will probably occur later...

    – wazoox
    Oct 1 '18 at 10:56











  • run "ls -l /home" and "du -sh /home/*" before destruction (and regrets.

    – wazoox
    Oct 1 '18 at 10:57











  • then "lvcreate -L10G centos home", "mkfs.xfs /dev/centos/home", mount "/home"

    – wazoox
    Oct 1 '18 at 10:59











  • You'll probably need to recreate the user home directory you're using to log into the system (because YOU MUST NOT LOGIN AS ROOT). "cp -r /etc/skel /home/user && chown -R user:users /home/user"

    – wazoox
    Oct 1 '18 at 11:02











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f933401%2fpostgresql-could-not-extend-file-no-space-left-on-device-hint-check-free-dis%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














Your server is badly partitioned. This is not entirely your fault; rather, the default RHEL/CentOS settings are quite misleading in my opinion.



Let's start from the description on the pvs; vgs; lvs command entered above. They are all related to LVM2, a Logical Volume Manager which, in short, enable you to create "flexible", resizeable partitions:



  • pvs shows how the physical disks are attached to the LVM system. You had 2x 200 GB disks, but pvs only shows 1x200 GB physical device. This means your disks are in RAID1 (mirroring) and they are wholly assigned to LVM (ie: no physical space is unassigned);


  • vgs shows the Volume Group assigned to your physical devices and any usable free space. In your case free space is <4 MB, so basically you have no space free space. The next command explains what is using your space...


  • lvs shows you have two Logical Volumes (think them as partitions): a 50 GB root volume and a ~145 GB home volume. In short, your root volume (where PostgreSQL resides) is way smaller than your needs; rather, your home volume is very large considering how few data (< 5GB) it contains.


To solve the problem, you have two options:



  • relocate PostgreSQL under the home volume, for example under /home/pgsl. I would avoid this because /home is not the right place for a database and it will cause an administrative burden in the future. Moreover, you need to put SELinux into permissive mode (setenforce 0 + /etc/selinux/config editing) to let the relocation work;


  • shrink the home volume and enlarge root. This is easier said than done, especially if you are using XFS (default RHEL/CentOS filesystem), which does not support shrinking.


If and only if your data under home can be trashed / reloaded, you can follow the following steps to DELETE the home volume and enlarging root. Please note that a small error (both mine and your) WILL destroy your data (killing any cats in a ~100 KM range), and so I take NO RESPONSABILITY for the final outcome. If you are unsure, stop here and call a professional sysadmin for support. Ok, let's go ahead; I'll post a command sequence with the relative description:




  • umount /home: this unmount (ie "disable") the home volume;


  • lvremove centos/home: this permanently destroy /home and all its content;


  • lvextend centos/root -L +100G: this expand the root volume by 100 GB;


  • xfs_growfs /: assuming you are using XFS, this expand the root filesystem to match the underlying, extended volume. If you are using ext4 (which is improbable), you need to issue resize2fs /dev/centos/root.





share|improve this answer























  • It would be at least prudent to first have a look at what /home contains before nuking it, and recreate /home and remount it afterwards else problems will probably occur later...

    – wazoox
    Oct 1 '18 at 10:56











  • run "ls -l /home" and "du -sh /home/*" before destruction (and regrets.

    – wazoox
    Oct 1 '18 at 10:57











  • then "lvcreate -L10G centos home", "mkfs.xfs /dev/centos/home", mount "/home"

    – wazoox
    Oct 1 '18 at 10:59











  • You'll probably need to recreate the user home directory you're using to log into the system (because YOU MUST NOT LOGIN AS ROOT). "cp -r /etc/skel /home/user && chown -R user:users /home/user"

    – wazoox
    Oct 1 '18 at 11:02















4














Your server is badly partitioned. This is not entirely your fault; rather, the default RHEL/CentOS settings are quite misleading in my opinion.



Let's start from the description on the pvs; vgs; lvs command entered above. They are all related to LVM2, a Logical Volume Manager which, in short, enable you to create "flexible", resizeable partitions:



  • pvs shows how the physical disks are attached to the LVM system. You had 2x 200 GB disks, but pvs only shows 1x200 GB physical device. This means your disks are in RAID1 (mirroring) and they are wholly assigned to LVM (ie: no physical space is unassigned);


  • vgs shows the Volume Group assigned to your physical devices and any usable free space. In your case free space is <4 MB, so basically you have no space free space. The next command explains what is using your space...


  • lvs shows you have two Logical Volumes (think them as partitions): a 50 GB root volume and a ~145 GB home volume. In short, your root volume (where PostgreSQL resides) is way smaller than your needs; rather, your home volume is very large considering how few data (< 5GB) it contains.


To solve the problem, you have two options:



  • relocate PostgreSQL under the home volume, for example under /home/pgsl. I would avoid this because /home is not the right place for a database and it will cause an administrative burden in the future. Moreover, you need to put SELinux into permissive mode (setenforce 0 + /etc/selinux/config editing) to let the relocation work;


  • shrink the home volume and enlarge root. This is easier said than done, especially if you are using XFS (default RHEL/CentOS filesystem), which does not support shrinking.


If and only if your data under home can be trashed / reloaded, you can follow the following steps to DELETE the home volume and enlarging root. Please note that a small error (both mine and your) WILL destroy your data (killing any cats in a ~100 KM range), and so I take NO RESPONSABILITY for the final outcome. If you are unsure, stop here and call a professional sysadmin for support. Ok, let's go ahead; I'll post a command sequence with the relative description:




  • umount /home: this unmount (ie "disable") the home volume;


  • lvremove centos/home: this permanently destroy /home and all its content;


  • lvextend centos/root -L +100G: this expand the root volume by 100 GB;


  • xfs_growfs /: assuming you are using XFS, this expand the root filesystem to match the underlying, extended volume. If you are using ext4 (which is improbable), you need to issue resize2fs /dev/centos/root.





share|improve this answer























  • It would be at least prudent to first have a look at what /home contains before nuking it, and recreate /home and remount it afterwards else problems will probably occur later...

    – wazoox
    Oct 1 '18 at 10:56











  • run "ls -l /home" and "du -sh /home/*" before destruction (and regrets.

    – wazoox
    Oct 1 '18 at 10:57











  • then "lvcreate -L10G centos home", "mkfs.xfs /dev/centos/home", mount "/home"

    – wazoox
    Oct 1 '18 at 10:59











  • You'll probably need to recreate the user home directory you're using to log into the system (because YOU MUST NOT LOGIN AS ROOT). "cp -r /etc/skel /home/user && chown -R user:users /home/user"

    – wazoox
    Oct 1 '18 at 11:02













4












4








4







Your server is badly partitioned. This is not entirely your fault; rather, the default RHEL/CentOS settings are quite misleading in my opinion.



Let's start from the description on the pvs; vgs; lvs command entered above. They are all related to LVM2, a Logical Volume Manager which, in short, enable you to create "flexible", resizeable partitions:



  • pvs shows how the physical disks are attached to the LVM system. You had 2x 200 GB disks, but pvs only shows 1x200 GB physical device. This means your disks are in RAID1 (mirroring) and they are wholly assigned to LVM (ie: no physical space is unassigned);


  • vgs shows the Volume Group assigned to your physical devices and any usable free space. In your case free space is <4 MB, so basically you have no space free space. The next command explains what is using your space...


  • lvs shows you have two Logical Volumes (think them as partitions): a 50 GB root volume and a ~145 GB home volume. In short, your root volume (where PostgreSQL resides) is way smaller than your needs; rather, your home volume is very large considering how few data (< 5GB) it contains.


To solve the problem, you have two options:



  • relocate PostgreSQL under the home volume, for example under /home/pgsl. I would avoid this because /home is not the right place for a database and it will cause an administrative burden in the future. Moreover, you need to put SELinux into permissive mode (setenforce 0 + /etc/selinux/config editing) to let the relocation work;


  • shrink the home volume and enlarge root. This is easier said than done, especially if you are using XFS (default RHEL/CentOS filesystem), which does not support shrinking.


If and only if your data under home can be trashed / reloaded, you can follow the following steps to DELETE the home volume and enlarging root. Please note that a small error (both mine and your) WILL destroy your data (killing any cats in a ~100 KM range), and so I take NO RESPONSABILITY for the final outcome. If you are unsure, stop here and call a professional sysadmin for support. Ok, let's go ahead; I'll post a command sequence with the relative description:




  • umount /home: this unmount (ie "disable") the home volume;


  • lvremove centos/home: this permanently destroy /home and all its content;


  • lvextend centos/root -L +100G: this expand the root volume by 100 GB;


  • xfs_growfs /: assuming you are using XFS, this expand the root filesystem to match the underlying, extended volume. If you are using ext4 (which is improbable), you need to issue resize2fs /dev/centos/root.





share|improve this answer













Your server is badly partitioned. This is not entirely your fault; rather, the default RHEL/CentOS settings are quite misleading in my opinion.



Let's start from the description on the pvs; vgs; lvs command entered above. They are all related to LVM2, a Logical Volume Manager which, in short, enable you to create "flexible", resizeable partitions:



  • pvs shows how the physical disks are attached to the LVM system. You had 2x 200 GB disks, but pvs only shows 1x200 GB physical device. This means your disks are in RAID1 (mirroring) and they are wholly assigned to LVM (ie: no physical space is unassigned);


  • vgs shows the Volume Group assigned to your physical devices and any usable free space. In your case free space is <4 MB, so basically you have no space free space. The next command explains what is using your space...


  • lvs shows you have two Logical Volumes (think them as partitions): a 50 GB root volume and a ~145 GB home volume. In short, your root volume (where PostgreSQL resides) is way smaller than your needs; rather, your home volume is very large considering how few data (< 5GB) it contains.


To solve the problem, you have two options:



  • relocate PostgreSQL under the home volume, for example under /home/pgsl. I would avoid this because /home is not the right place for a database and it will cause an administrative burden in the future. Moreover, you need to put SELinux into permissive mode (setenforce 0 + /etc/selinux/config editing) to let the relocation work;


  • shrink the home volume and enlarge root. This is easier said than done, especially if you are using XFS (default RHEL/CentOS filesystem), which does not support shrinking.


If and only if your data under home can be trashed / reloaded, you can follow the following steps to DELETE the home volume and enlarging root. Please note that a small error (both mine and your) WILL destroy your data (killing any cats in a ~100 KM range), and so I take NO RESPONSABILITY for the final outcome. If you are unsure, stop here and call a professional sysadmin for support. Ok, let's go ahead; I'll post a command sequence with the relative description:




  • umount /home: this unmount (ie "disable") the home volume;


  • lvremove centos/home: this permanently destroy /home and all its content;


  • lvextend centos/root -L +100G: this expand the root volume by 100 GB;


  • xfs_growfs /: assuming you are using XFS, this expand the root filesystem to match the underlying, extended volume. If you are using ext4 (which is improbable), you need to issue resize2fs /dev/centos/root.






share|improve this answer












share|improve this answer



share|improve this answer










answered Oct 1 '18 at 7:24









shodanshokshodanshok

26.8k34788




26.8k34788












  • It would be at least prudent to first have a look at what /home contains before nuking it, and recreate /home and remount it afterwards else problems will probably occur later...

    – wazoox
    Oct 1 '18 at 10:56











  • run "ls -l /home" and "du -sh /home/*" before destruction (and regrets.

    – wazoox
    Oct 1 '18 at 10:57











  • then "lvcreate -L10G centos home", "mkfs.xfs /dev/centos/home", mount "/home"

    – wazoox
    Oct 1 '18 at 10:59











  • You'll probably need to recreate the user home directory you're using to log into the system (because YOU MUST NOT LOGIN AS ROOT). "cp -r /etc/skel /home/user && chown -R user:users /home/user"

    – wazoox
    Oct 1 '18 at 11:02

















  • It would be at least prudent to first have a look at what /home contains before nuking it, and recreate /home and remount it afterwards else problems will probably occur later...

    – wazoox
    Oct 1 '18 at 10:56











  • run "ls -l /home" and "du -sh /home/*" before destruction (and regrets.

    – wazoox
    Oct 1 '18 at 10:57











  • then "lvcreate -L10G centos home", "mkfs.xfs /dev/centos/home", mount "/home"

    – wazoox
    Oct 1 '18 at 10:59











  • You'll probably need to recreate the user home directory you're using to log into the system (because YOU MUST NOT LOGIN AS ROOT). "cp -r /etc/skel /home/user && chown -R user:users /home/user"

    – wazoox
    Oct 1 '18 at 11:02
















It would be at least prudent to first have a look at what /home contains before nuking it, and recreate /home and remount it afterwards else problems will probably occur later...

– wazoox
Oct 1 '18 at 10:56





It would be at least prudent to first have a look at what /home contains before nuking it, and recreate /home and remount it afterwards else problems will probably occur later...

– wazoox
Oct 1 '18 at 10:56













run "ls -l /home" and "du -sh /home/*" before destruction (and regrets.

– wazoox
Oct 1 '18 at 10:57





run "ls -l /home" and "du -sh /home/*" before destruction (and regrets.

– wazoox
Oct 1 '18 at 10:57













then "lvcreate -L10G centos home", "mkfs.xfs /dev/centos/home", mount "/home"

– wazoox
Oct 1 '18 at 10:59





then "lvcreate -L10G centos home", "mkfs.xfs /dev/centos/home", mount "/home"

– wazoox
Oct 1 '18 at 10:59













You'll probably need to recreate the user home directory you're using to log into the system (because YOU MUST NOT LOGIN AS ROOT). "cp -r /etc/skel /home/user && chown -R user:users /home/user"

– wazoox
Oct 1 '18 at 11:02





You'll probably need to recreate the user home directory you're using to log into the system (because YOU MUST NOT LOGIN AS ROOT). "cp -r /etc/skel /home/user && chown -R user:users /home/user"

– wazoox
Oct 1 '18 at 11:02

















draft saved

draft discarded
















































Thanks for contributing an answer to Server Fault!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f933401%2fpostgresql-could-not-extend-file-no-space-left-on-device-hint-check-free-dis%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020