Fedora 25 to 27 Upgrade - Not enough space

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I am trying to upgrade from Fedora 25 to Fedora 27. I followed the instruction from the magazine, but when executing



sudo dnf system-upgrade download --releasever=27 ‐‐allowerasing


it turns out that there is not enough space to complete the upgrade.



My available disk space can be seen below



[root@pcen35240 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.8G 111M 3.7G 3% /dev/shm
tmpfs 3.8G 1.8M 3.8G 1% /run
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/mapper/fedora-root 50G 44G 2.6G 95% /
tmpfs 3.8G 32K 3.8G 1% /tmp
/dev/nvme0n1p1 477M 174M 274M 39% /boot
/dev/mapper/fedora-home 178G 91G 79G 54% /home
tmpfs 762M 64K 762M 1% /run/user/1000


Firstly it seems odd that there is so much space occupied from / (It's my work's laptop, so I didn't set it up).



What should I do to complete the upgrade?
Is it possible to reallocate some space from /home/ to /?







share|improve this question




















  • It looks like you are using LVM and so you should be able to allocate more space and resize root accordingly. I would analyse the space on root first if you are convinced that so much space shouldn't be used. The "du" command will help you do this.
    – Raman Sailopal
    Jan 5 at 11:15










  • @RamanSailopal : Thank you very much for your comment! Can you help me with that? For instance how did you realised that I am using LVM (I'll try to find out what that is)? And how to resize root?
    – Thanos
    Jan 5 at 12:30














up vote
1
down vote

favorite












I am trying to upgrade from Fedora 25 to Fedora 27. I followed the instruction from the magazine, but when executing



sudo dnf system-upgrade download --releasever=27 ‐‐allowerasing


it turns out that there is not enough space to complete the upgrade.



My available disk space can be seen below



[root@pcen35240 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.8G 111M 3.7G 3% /dev/shm
tmpfs 3.8G 1.8M 3.8G 1% /run
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/mapper/fedora-root 50G 44G 2.6G 95% /
tmpfs 3.8G 32K 3.8G 1% /tmp
/dev/nvme0n1p1 477M 174M 274M 39% /boot
/dev/mapper/fedora-home 178G 91G 79G 54% /home
tmpfs 762M 64K 762M 1% /run/user/1000


Firstly it seems odd that there is so much space occupied from / (It's my work's laptop, so I didn't set it up).



What should I do to complete the upgrade?
Is it possible to reallocate some space from /home/ to /?







share|improve this question




















  • It looks like you are using LVM and so you should be able to allocate more space and resize root accordingly. I would analyse the space on root first if you are convinced that so much space shouldn't be used. The "du" command will help you do this.
    – Raman Sailopal
    Jan 5 at 11:15










  • @RamanSailopal : Thank you very much for your comment! Can you help me with that? For instance how did you realised that I am using LVM (I'll try to find out what that is)? And how to resize root?
    – Thanos
    Jan 5 at 12:30












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am trying to upgrade from Fedora 25 to Fedora 27. I followed the instruction from the magazine, but when executing



sudo dnf system-upgrade download --releasever=27 ‐‐allowerasing


it turns out that there is not enough space to complete the upgrade.



My available disk space can be seen below



[root@pcen35240 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.8G 111M 3.7G 3% /dev/shm
tmpfs 3.8G 1.8M 3.8G 1% /run
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/mapper/fedora-root 50G 44G 2.6G 95% /
tmpfs 3.8G 32K 3.8G 1% /tmp
/dev/nvme0n1p1 477M 174M 274M 39% /boot
/dev/mapper/fedora-home 178G 91G 79G 54% /home
tmpfs 762M 64K 762M 1% /run/user/1000


Firstly it seems odd that there is so much space occupied from / (It's my work's laptop, so I didn't set it up).



What should I do to complete the upgrade?
Is it possible to reallocate some space from /home/ to /?







share|improve this question












I am trying to upgrade from Fedora 25 to Fedora 27. I followed the instruction from the magazine, but when executing



sudo dnf system-upgrade download --releasever=27 ‐‐allowerasing


it turns out that there is not enough space to complete the upgrade.



My available disk space can be seen below



[root@pcen35240 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.8G 111M 3.7G 3% /dev/shm
tmpfs 3.8G 1.8M 3.8G 1% /run
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/mapper/fedora-root 50G 44G 2.6G 95% /
tmpfs 3.8G 32K 3.8G 1% /tmp
/dev/nvme0n1p1 477M 174M 274M 39% /boot
/dev/mapper/fedora-home 178G 91G 79G 54% /home
tmpfs 762M 64K 762M 1% /run/user/1000


Firstly it seems odd that there is so much space occupied from / (It's my work's laptop, so I didn't set it up).



What should I do to complete the upgrade?
Is it possible to reallocate some space from /home/ to /?









share|improve this question











share|improve this question




share|improve this question










asked Jan 5 at 10:45









Thanos

17510




17510











  • It looks like you are using LVM and so you should be able to allocate more space and resize root accordingly. I would analyse the space on root first if you are convinced that so much space shouldn't be used. The "du" command will help you do this.
    – Raman Sailopal
    Jan 5 at 11:15










  • @RamanSailopal : Thank you very much for your comment! Can you help me with that? For instance how did you realised that I am using LVM (I'll try to find out what that is)? And how to resize root?
    – Thanos
    Jan 5 at 12:30
















  • It looks like you are using LVM and so you should be able to allocate more space and resize root accordingly. I would analyse the space on root first if you are convinced that so much space shouldn't be used. The "du" command will help you do this.
    – Raman Sailopal
    Jan 5 at 11:15










  • @RamanSailopal : Thank you very much for your comment! Can you help me with that? For instance how did you realised that I am using LVM (I'll try to find out what that is)? And how to resize root?
    – Thanos
    Jan 5 at 12:30















It looks like you are using LVM and so you should be able to allocate more space and resize root accordingly. I would analyse the space on root first if you are convinced that so much space shouldn't be used. The "du" command will help you do this.
– Raman Sailopal
Jan 5 at 11:15




It looks like you are using LVM and so you should be able to allocate more space and resize root accordingly. I would analyse the space on root first if you are convinced that so much space shouldn't be used. The "du" command will help you do this.
– Raman Sailopal
Jan 5 at 11:15












@RamanSailopal : Thank you very much for your comment! Can you help me with that? For instance how did you realised that I am using LVM (I'll try to find out what that is)? And how to resize root?
– Thanos
Jan 5 at 12:30




@RamanSailopal : Thank you very much for your comment! Can you help me with that? For instance how did you realised that I am using LVM (I'll try to find out what that is)? And how to resize root?
– Thanos
Jan 5 at 12:30










1 Answer
1






active

oldest

votes

















up vote
1
down vote













Do some housekeeping to clean-up diskspace in your root partition. 50G is usually enough - no need to resize partitions.



Try to clean your packetmanagers's cache. Just do a dnf clean all:



 dnf clean dbcache
Removes cache files generated from the repository metadata. This forces DNF to regenerate the cache files the next time it is run.

dnf clean expire-cache
Removes local cookie files saying when the metadata and mirrorlists were downloaded for each repo. DNF will re-validate the cache for each repo the next time it is used.

dnf clean metadata
Removes repository metadata. Those are the files which DNF uses to determine the remote availability of packages. Using this option will make DNF download all the metadata the next time it is
run.

dnf clean packages
Removes any cached packages from the system.

dnf clean plugins
Tells all enabled plugins to eliminate their cached data.

dnf clean all
Does all of the above.


Uninstall unused packages. Shows you what is installed: dnf list installed.



Other places to look is /root /opt /srv sometimes there are downloaded files or custom installs.



The following command will give you info how much space is used in each directory.



sudo du -sh /root /opt /srv



The next command shows the ten biggest files on your system (could take a while):



sudo du -hsx /* | sort -rh | head -10





share|improve this answer




















  • Thank you very much for your answer! The dnf clean all freed up only 300 MB. As far as the packages are concerned, there are a lot which I haven't installed so they could be necessary for the system. I removed some files from root (~180MB) but there are still 750 MB left. In opt there are ~500MB but I don't know if it's safe to remove them. For the large files /home = 91G, /var=23G, /usr=20G, /root=750MB... The thinkg is that I freed up space from /home but it's not enough, that's why I though I should've allocated some more space to /.
    – Thanos
    Jan 5 at 12:49






  • 1




    A full /var/log could be the issue... try du -had 1 /var/log | sort -h to find if there are old logs that could be deleted or maybe something is overlogging
    – baselab
    Jan 5 at 14:19










  • Also see if you have anything hogging space in /var/tmp.
    – mattdm
    Jan 6 at 1:28










  • Anything in /opt was installed from some third-party software, not Fedora itself. It should be safe to remove that as long as you know what it is and where to get it again.
    – mattdm
    Jan 6 at 1:28










  • @baselab : Thanks for your comment! I run sudo du -had 1 /var/log | sort -h and the output is there pastebin.com/9Xpb6yMu In the output I see that the /var/log/journal takes up 2.0 Gb. Is this normal?
    – Thanos
    Jan 6 at 12:29










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414963%2ffedora-25-to-27-upgrade-not-enough-space%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













Do some housekeeping to clean-up diskspace in your root partition. 50G is usually enough - no need to resize partitions.



Try to clean your packetmanagers's cache. Just do a dnf clean all:



 dnf clean dbcache
Removes cache files generated from the repository metadata. This forces DNF to regenerate the cache files the next time it is run.

dnf clean expire-cache
Removes local cookie files saying when the metadata and mirrorlists were downloaded for each repo. DNF will re-validate the cache for each repo the next time it is used.

dnf clean metadata
Removes repository metadata. Those are the files which DNF uses to determine the remote availability of packages. Using this option will make DNF download all the metadata the next time it is
run.

dnf clean packages
Removes any cached packages from the system.

dnf clean plugins
Tells all enabled plugins to eliminate their cached data.

dnf clean all
Does all of the above.


Uninstall unused packages. Shows you what is installed: dnf list installed.



Other places to look is /root /opt /srv sometimes there are downloaded files or custom installs.



The following command will give you info how much space is used in each directory.



sudo du -sh /root /opt /srv



The next command shows the ten biggest files on your system (could take a while):



sudo du -hsx /* | sort -rh | head -10





share|improve this answer




















  • Thank you very much for your answer! The dnf clean all freed up only 300 MB. As far as the packages are concerned, there are a lot which I haven't installed so they could be necessary for the system. I removed some files from root (~180MB) but there are still 750 MB left. In opt there are ~500MB but I don't know if it's safe to remove them. For the large files /home = 91G, /var=23G, /usr=20G, /root=750MB... The thinkg is that I freed up space from /home but it's not enough, that's why I though I should've allocated some more space to /.
    – Thanos
    Jan 5 at 12:49






  • 1




    A full /var/log could be the issue... try du -had 1 /var/log | sort -h to find if there are old logs that could be deleted or maybe something is overlogging
    – baselab
    Jan 5 at 14:19










  • Also see if you have anything hogging space in /var/tmp.
    – mattdm
    Jan 6 at 1:28










  • Anything in /opt was installed from some third-party software, not Fedora itself. It should be safe to remove that as long as you know what it is and where to get it again.
    – mattdm
    Jan 6 at 1:28










  • @baselab : Thanks for your comment! I run sudo du -had 1 /var/log | sort -h and the output is there pastebin.com/9Xpb6yMu In the output I see that the /var/log/journal takes up 2.0 Gb. Is this normal?
    – Thanos
    Jan 6 at 12:29














up vote
1
down vote













Do some housekeeping to clean-up diskspace in your root partition. 50G is usually enough - no need to resize partitions.



Try to clean your packetmanagers's cache. Just do a dnf clean all:



 dnf clean dbcache
Removes cache files generated from the repository metadata. This forces DNF to regenerate the cache files the next time it is run.

dnf clean expire-cache
Removes local cookie files saying when the metadata and mirrorlists were downloaded for each repo. DNF will re-validate the cache for each repo the next time it is used.

dnf clean metadata
Removes repository metadata. Those are the files which DNF uses to determine the remote availability of packages. Using this option will make DNF download all the metadata the next time it is
run.

dnf clean packages
Removes any cached packages from the system.

dnf clean plugins
Tells all enabled plugins to eliminate their cached data.

dnf clean all
Does all of the above.


Uninstall unused packages. Shows you what is installed: dnf list installed.



Other places to look is /root /opt /srv sometimes there are downloaded files or custom installs.



The following command will give you info how much space is used in each directory.



sudo du -sh /root /opt /srv



The next command shows the ten biggest files on your system (could take a while):



sudo du -hsx /* | sort -rh | head -10





share|improve this answer




















  • Thank you very much for your answer! The dnf clean all freed up only 300 MB. As far as the packages are concerned, there are a lot which I haven't installed so they could be necessary for the system. I removed some files from root (~180MB) but there are still 750 MB left. In opt there are ~500MB but I don't know if it's safe to remove them. For the large files /home = 91G, /var=23G, /usr=20G, /root=750MB... The thinkg is that I freed up space from /home but it's not enough, that's why I though I should've allocated some more space to /.
    – Thanos
    Jan 5 at 12:49






  • 1




    A full /var/log could be the issue... try du -had 1 /var/log | sort -h to find if there are old logs that could be deleted or maybe something is overlogging
    – baselab
    Jan 5 at 14:19










  • Also see if you have anything hogging space in /var/tmp.
    – mattdm
    Jan 6 at 1:28










  • Anything in /opt was installed from some third-party software, not Fedora itself. It should be safe to remove that as long as you know what it is and where to get it again.
    – mattdm
    Jan 6 at 1:28










  • @baselab : Thanks for your comment! I run sudo du -had 1 /var/log | sort -h and the output is there pastebin.com/9Xpb6yMu In the output I see that the /var/log/journal takes up 2.0 Gb. Is this normal?
    – Thanos
    Jan 6 at 12:29












up vote
1
down vote










up vote
1
down vote









Do some housekeeping to clean-up diskspace in your root partition. 50G is usually enough - no need to resize partitions.



Try to clean your packetmanagers's cache. Just do a dnf clean all:



 dnf clean dbcache
Removes cache files generated from the repository metadata. This forces DNF to regenerate the cache files the next time it is run.

dnf clean expire-cache
Removes local cookie files saying when the metadata and mirrorlists were downloaded for each repo. DNF will re-validate the cache for each repo the next time it is used.

dnf clean metadata
Removes repository metadata. Those are the files which DNF uses to determine the remote availability of packages. Using this option will make DNF download all the metadata the next time it is
run.

dnf clean packages
Removes any cached packages from the system.

dnf clean plugins
Tells all enabled plugins to eliminate their cached data.

dnf clean all
Does all of the above.


Uninstall unused packages. Shows you what is installed: dnf list installed.



Other places to look is /root /opt /srv sometimes there are downloaded files or custom installs.



The following command will give you info how much space is used in each directory.



sudo du -sh /root /opt /srv



The next command shows the ten biggest files on your system (could take a while):



sudo du -hsx /* | sort -rh | head -10





share|improve this answer












Do some housekeeping to clean-up diskspace in your root partition. 50G is usually enough - no need to resize partitions.



Try to clean your packetmanagers's cache. Just do a dnf clean all:



 dnf clean dbcache
Removes cache files generated from the repository metadata. This forces DNF to regenerate the cache files the next time it is run.

dnf clean expire-cache
Removes local cookie files saying when the metadata and mirrorlists were downloaded for each repo. DNF will re-validate the cache for each repo the next time it is used.

dnf clean metadata
Removes repository metadata. Those are the files which DNF uses to determine the remote availability of packages. Using this option will make DNF download all the metadata the next time it is
run.

dnf clean packages
Removes any cached packages from the system.

dnf clean plugins
Tells all enabled plugins to eliminate their cached data.

dnf clean all
Does all of the above.


Uninstall unused packages. Shows you what is installed: dnf list installed.



Other places to look is /root /opt /srv sometimes there are downloaded files or custom installs.



The following command will give you info how much space is used in each directory.



sudo du -sh /root /opt /srv



The next command shows the ten biggest files on your system (could take a while):



sudo du -hsx /* | sort -rh | head -10






share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 5 at 11:28









Michael D.

1,489715




1,489715











  • Thank you very much for your answer! The dnf clean all freed up only 300 MB. As far as the packages are concerned, there are a lot which I haven't installed so they could be necessary for the system. I removed some files from root (~180MB) but there are still 750 MB left. In opt there are ~500MB but I don't know if it's safe to remove them. For the large files /home = 91G, /var=23G, /usr=20G, /root=750MB... The thinkg is that I freed up space from /home but it's not enough, that's why I though I should've allocated some more space to /.
    – Thanos
    Jan 5 at 12:49






  • 1




    A full /var/log could be the issue... try du -had 1 /var/log | sort -h to find if there are old logs that could be deleted or maybe something is overlogging
    – baselab
    Jan 5 at 14:19










  • Also see if you have anything hogging space in /var/tmp.
    – mattdm
    Jan 6 at 1:28










  • Anything in /opt was installed from some third-party software, not Fedora itself. It should be safe to remove that as long as you know what it is and where to get it again.
    – mattdm
    Jan 6 at 1:28










  • @baselab : Thanks for your comment! I run sudo du -had 1 /var/log | sort -h and the output is there pastebin.com/9Xpb6yMu In the output I see that the /var/log/journal takes up 2.0 Gb. Is this normal?
    – Thanos
    Jan 6 at 12:29
















  • Thank you very much for your answer! The dnf clean all freed up only 300 MB. As far as the packages are concerned, there are a lot which I haven't installed so they could be necessary for the system. I removed some files from root (~180MB) but there are still 750 MB left. In opt there are ~500MB but I don't know if it's safe to remove them. For the large files /home = 91G, /var=23G, /usr=20G, /root=750MB... The thinkg is that I freed up space from /home but it's not enough, that's why I though I should've allocated some more space to /.
    – Thanos
    Jan 5 at 12:49






  • 1




    A full /var/log could be the issue... try du -had 1 /var/log | sort -h to find if there are old logs that could be deleted or maybe something is overlogging
    – baselab
    Jan 5 at 14:19










  • Also see if you have anything hogging space in /var/tmp.
    – mattdm
    Jan 6 at 1:28










  • Anything in /opt was installed from some third-party software, not Fedora itself. It should be safe to remove that as long as you know what it is and where to get it again.
    – mattdm
    Jan 6 at 1:28










  • @baselab : Thanks for your comment! I run sudo du -had 1 /var/log | sort -h and the output is there pastebin.com/9Xpb6yMu In the output I see that the /var/log/journal takes up 2.0 Gb. Is this normal?
    – Thanos
    Jan 6 at 12:29















Thank you very much for your answer! The dnf clean all freed up only 300 MB. As far as the packages are concerned, there are a lot which I haven't installed so they could be necessary for the system. I removed some files from root (~180MB) but there are still 750 MB left. In opt there are ~500MB but I don't know if it's safe to remove them. For the large files /home = 91G, /var=23G, /usr=20G, /root=750MB... The thinkg is that I freed up space from /home but it's not enough, that's why I though I should've allocated some more space to /.
– Thanos
Jan 5 at 12:49




Thank you very much for your answer! The dnf clean all freed up only 300 MB. As far as the packages are concerned, there are a lot which I haven't installed so they could be necessary for the system. I removed some files from root (~180MB) but there are still 750 MB left. In opt there are ~500MB but I don't know if it's safe to remove them. For the large files /home = 91G, /var=23G, /usr=20G, /root=750MB... The thinkg is that I freed up space from /home but it's not enough, that's why I though I should've allocated some more space to /.
– Thanos
Jan 5 at 12:49




1




1




A full /var/log could be the issue... try du -had 1 /var/log | sort -h to find if there are old logs that could be deleted or maybe something is overlogging
– baselab
Jan 5 at 14:19




A full /var/log could be the issue... try du -had 1 /var/log | sort -h to find if there are old logs that could be deleted or maybe something is overlogging
– baselab
Jan 5 at 14:19












Also see if you have anything hogging space in /var/tmp.
– mattdm
Jan 6 at 1:28




Also see if you have anything hogging space in /var/tmp.
– mattdm
Jan 6 at 1:28












Anything in /opt was installed from some third-party software, not Fedora itself. It should be safe to remove that as long as you know what it is and where to get it again.
– mattdm
Jan 6 at 1:28




Anything in /opt was installed from some third-party software, not Fedora itself. It should be safe to remove that as long as you know what it is and where to get it again.
– mattdm
Jan 6 at 1:28












@baselab : Thanks for your comment! I run sudo du -had 1 /var/log | sort -h and the output is there pastebin.com/9Xpb6yMu In the output I see that the /var/log/journal takes up 2.0 Gb. Is this normal?
– Thanos
Jan 6 at 12:29




@baselab : Thanks for your comment! I run sudo du -had 1 /var/log | sort -h and the output is there pastebin.com/9Xpb6yMu In the output I see that the /var/log/journal takes up 2.0 Gb. Is this normal?
– Thanos
Jan 6 at 12:29












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414963%2ffedora-25-to-27-upgrade-not-enough-space%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?