Re: managing the swap space size on fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(the previous message is not good -   ....it started because of my error... )

In order to grow the swap partition, I made this:

============
resize2fs -p /dev/mapper/fedora_localhost-home
resize2fs -p /dev/mapper/localhost-home 700G
lvresize --size 651G /dev/fedoralocalhost-home
----------- the command pvscan gave me this output:
PV /dev/sda2   VG  fedora_localhost   lvm2 931 GB 227 GB free

============

After I  gained the space,

...I had to resize the sawp partition, to finish my job ...
...but instead I restarted the computer.


At the boot the computer started in emergency mode, and
in the file journalctl  I learned that fsck failed and the /home directory wasn't mounted...


I used e2fsck to check the file system and got this message :
***** FILE SYSTEM WAS MODIFIED *****
/dev/sda: xxx/yyy files (0.3% non-contiguous), zzzz/wwww blocks

I know  what mean file not contiguous but : why this could happen ?
Can I do something to repair this file system and to get the computer to boot ?

Thank you

On Sat, Jun 27, 2015 at 4:38 PM, Angelo Moreschini <mrangelo.fedora@xxxxxxxxx> wrote:
in order to grow the swap partition, I made this:

============
resize2fs -p /dev/mapper/fedora_localhost-home
resize2fs -p /dev/mapper/localhost-home 700G
lvresize --size 651G /dev/fedoralocalhost-home
----------- the command pvscan gave me this output:
PvV /dev/sda2   VG  fedora_localhost   lvm2[


On Fri, Jun 26, 2015 at 7:58 AM, Ed Greshko <ed.greshko@xxxxxxxxxxx> wrote:
On 06/26/15 12:57, Angelo Moreschini wrote:
> # lvresize --size 651G /dev/fedora_localhost/home    worked fine..
>
>
> And now pvscan give me 220 G free .
>
> --------------------
> But now I have also problem growing  the swap partition:
>
> The command
> pvresize --size 20G /dev/fedora_localhost-swap
>
> give me another error :
> "prvresize unrecognized option --size"
>
> What is wrong there ?

man prvresize  will show an example.

--
Sorta what I want to say when folks habitually complain about Fedora - https://youtu.be/ZArl8fTfub4
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux