Hi,
I need to adjust the swap space of my computer, and using the commands lsblk e swapon -s :
I got the following output - =-=-=-=-=-=-
[angelo_dev@localhost ~]$ *sudo lsblk*
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 0 931G 0 part
├─fedora_localhost-swap 253:0 0 7.8G 0 lvm [SWAP]
├─fedora_localhost-root 253:1 0 50G 0 lvm /
└─fedora_localhost-home 253:2 0 873.2G 0 lvm /home
sr0 11:0 1 1024M 0 rom
[angelo_dev@localhost ~]$ *swapon -s*
Filename Type Size Used Priority
/dev/dm-0 partition 8126460 0 -1
- =-=-=-=-=-=-
This makes me think that the swap space on my computer resides on the partition / dev / dm-0, which is 'managed by LVM, and' of about 8 GB.
The RAM of the computer and 'GB, and I would initially try to bring the swap space to 16 GB (after I might try other values ....).
Since the swap partition and 'managed by LVM should not be hard to change its size, but it is still fairly inexperienced *I would get a little help to do this.*
Regards
thank you
Angelo
Il giorno sab, 13/06/2015 alle 17.01 +0300, Angelo Moreschini ha scritto:
Hi, I need to adjust the swap space of my computer, and using the commands lsblk e swapon -s : I got the following output
- =-=-=-=-=-=-
[angelo_dev@localhost ~]$ sudo lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 931.5G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda2 8:2 0 931G 0 part ├─fedora_localhost-swap 253:0 0 7.8G 0 lvm [SWAP] ├─fedora_localhost-root 253:1 0 50G 0 lvm / └─fedora_localhost-home 253:2 0 873.2G 0 lvm /home sr0 11:0 1 1024M 0 rom [angelo_dev@localhost ~]$ swapon -s Filename Type Size Used Priority /dev/dm-0 partition 8126460 0 -1
- =-=-=-=-=-=-
This makes me think that the swap space on my computer resides on the partition / dev / dm-0, which is 'managed by LVM, and' of about 8 GB. The RAM of the computer and 'GB, and I would initially try to bring the swap space to 16 GB (after I might try other values ....).
Since the swap partition and 'managed by LVM should not be hard to change its size, but it is still fairly inexperienced I would get a little help to do this.
Your swap partition is /dev/fedora_localhost-swap
take a look at how much free space you have in LVM
sudo pvscan PV /dev/mapper/luks-04cb7d3f-fb60-42ca-9dbe-1ae18433f62d VG vg_dododell lvm2 [196,28 GiB / 7,72 GiB free] Total: 1 [196,28 GiB] / in use: 1 [196,28 GiB] / in no VG: 0 [0 ]
In my case 7,72 GiB free. If you have sufficient free space in LVM you can extend swap partition with:
sudo pvresize --size +6G /dev/fedora_localhost-swap
If you do not have sufficient LVM space free, you can shrink some other partition, like /home, you can do that in single user mode, or logging in with root from CTRL+Alt+F2 and without other active users, umount /home, restrict filesystem (example 11Gb) , restrict partition (example 10 Gb), extend filesystem to max partition.
At this point you can extend the swap LVM partition.
When you have extend the swap partition, you must extend the swap area with this command:
swapoff /dev/fedora_localhost-swap mkswap /dev/fedora_localhost-swap swapon /dev/fedora_localhost-swap
Hope this help
Ciao
Ciao Dario,
I need a little explanation, because I am not able to well understood about how to get of the value of the free space.
I made some tests:
using the command pvscan I get this output: ----- PV /dev/sda2 VG fedora_localhost lvm2 [931.02 GiB / 64.00 MiB free] Total: 1 [931.02 GiB] / in use: 1 [931.02 GiB]* / in no VG: 0 [0 ]* ----- what means this ? I can think this output concern ALL the Volume Group of LVM: And the row up seem to indicate that they are (only) 64 MB free *(but what means "/ in no VG: 0 [0 ]" in the row down?)*
I made the same test (inside the lvm environment) using the command lvscan: this time I got this output: ----- lvm> lvscan ACTIVE '/dev/fedora_localhost/swap' [7.75 GiB] inherit ACTIVE '/dev/fedora_localhost/home' [873.21 GiB] inherit ACTIVE '/dev/fedora_localhost/root' [50.00 GiB] inherit ----- OK! the total is 930.96 ------
that the second control confirm the former one, and it shows also more details...
But what does not enter in my head, is the fact that the (huge) quantity of free space (845449680 ) of the "home" partition is not reported when I used the command pvscan : ...
This is the output of the command line df -k: ----- [angelo_dev@localhost ~]$ df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/fedora_localhost-root 51475068 10518776 38318468 22% / devtmpfs 4046300 0 4046300 0% /dev tmpfs 4057324 152 4057172 1% /dev/shm tmpfs 4057324 904 4056420 1% /run tmpfs 4057324 0 4057324 0% /sys/fs/cgroup tmpfs 4057324 668 4056656 1% /tmp */dev/mapper/fedora_localhost-home 901125392 9878132 845449680 2% /home* /dev/sda1 487652 105670 352286 24% /boot tmpfs 811468 28 811440 1% /run/user/1001 -----
*in shor*t: I would like understand because I have to ask (shrink) free space, in order to expand the swap partition - in the moment that - the home partition (THAT BELONGS TO THE SAME VG) already has a huge amount of free space ?
Thank you
Angelo
On Sat, Jun 13, 2015 at 9:28 PM, Dario Lesca d.lesca@solinos.it wrote:
Il giorno sab, 13/06/2015 alle 17.01 +0300, Angelo Moreschini ha scritto:
Hi, I need to adjust the swap space of my computer, and using the commands lsblk e swapon -s : I got the following output
- =-=-=-=-=-=-
[angelo_dev@localhost ~]$ sudo lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 931.5G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda2 8:2 0 931G 0 part ├─fedora_localhost-swap 253:0 0 7.8G 0 lvm [SWAP] ├─fedora_localhost-root 253:1 0 50G 0 lvm / └─fedora_localhost-home 253:2 0 873.2G 0 lvm /home sr0 11:0 1 1024M 0 rom [angelo_dev@localhost ~]$ swapon -s Filename Type Size Used Priority /dev/dm-0 partition 8126460 0 -1
- =-=-=-=-=-=-
This makes me think that the swap space on my computer resides on the partition / dev / dm-0, which is 'managed by LVM, and' of about 8 GB. The RAM of the computer and 'GB, and I would initially try to bring the swap space to 16 GB (after I might try other values ....).
Since the swap partition and 'managed by LVM should not be hard to change its size, but it is still fairly inexperienced I would get a little help to do this.
Your swap partition is /dev/fedora_localhost-swap
take a look at how much free space you have in LVM
sudo pvscan PV /dev/mapper/luks-04cb7d3f-fb60-42ca-9dbe-1ae18433f62d VG
vg_dododell lvm2 [196,28 GiB / 7,72 GiB free]
Total: 1 [196,28 GiB] / in use: 1 [196,28 GiB] / in no VG: 0 [0 ]
In my case 7,72 GiB free. If you have sufficient free space in LVM you can extend swap partition with:
sudo pvresize --size +6G /dev/fedora_localhost-swap
If you do not have sufficient LVM space free, you can shrink some other partition, like /home, you can do that in single user mode, or logging in with root from CTRL+Alt+F2 and without other active users, umount /home, restrict filesystem (example 11Gb) , restrict partition (example 10 Gb), extend filesystem to max partition.
At this point you can extend the swap LVM partition.
When you have extend the swap partition, you must extend the swap area with this command:
swapoff /dev/fedora_localhost-swap mkswap /dev/fedora_localhost-swap swapon /dev/fedora_localhost-swap
Hope this help
Ciao
-- Dario Lesca (inviato dal mio Linux Fedora 22 con Gnome 3.16) -- users mailing list users@lists.fedoraproject.org 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
Il giorno dom, 14/06/2015 alle 12.29 +0300, Angelo Moreschini ha scritto:
Ciao Dario,
I need a little explanation, because I am not able to well understood about how to get of the value of the free space.
I made some tests:
using the command pvscan I get this output:
PV /dev/sda2 VG fedora_localhost lvm2 [931.02 GiB / 64.00 MiB free] Total: 1 [931.02 GiB] / in use: 1 [931.02 GiB] / in no VG: 0 [0 ]
what means this ? I can think this output concern ALL the Volume Group of LVM: And the row up seem to indicate that they are (only) 64 MB free (but what means "/ in no VG: 0 [0 ]" in the row down?)
I made the same test (inside the lvm environment) using the command lvscan: this time I got this output:
lvm> lvscan ACTIVE '/dev/fedora_localhost/swap' [7.75 GiB] inherit ACTIVE '/dev/fedora_localhost/home' [873.21 GiB] inherit ACTIVE '/dev/fedora_localhost/root' [50.00 GiB] inherit ----- OK! the total is 930.96 ------
that the second control confirm the former one, and it shows also more details...
But what does not enter in my head, is the fact that the (huge) quantity of free space (845449680 ) of the "home" partition is not reported when I used the command pvscan : ...
This is the output of the command line df -k:
[angelo_dev@localhost ~]$ df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/fedora_localhost-root 51475068 10518776 38318468 22% / devtmpfs 4046300 0 4046300 0% /dev tmpfs 4057324 152 4057172 1% /dev/shm tmpfs 4057324 904 4056420 1% /run tmpfs 4057324 0 4057324 0% /sys/fs/cgroup tmpfs 4057324 668 4056656 1% /tmp /dev/mapper/fedora_localhost-home 901125392 9878132 845449680 2% /home /dev/sda1 487652 105670 352286 24% /boot tmpfs 811468 28 811440 1% /run/user/1001
in short: I would like understand because I have to ask (shrink) free space, in order to expand the swap partition - in the moment that - the home partition (THAT BELONGS TO THE SAME VG) already has a huge amount of free space ?
The free space is into filesystem, and not into LVM. The free space into filesystem is not useful vie LVM, You must be transferred a little bit of free space from filesystem to LVM Shrink filesystem then shrink LVM partition. When you install Fedora, and do not do a manual partition, anaconda use all disk space for all default partition, swap(8Gb), /(50 Gb) and /home (all the rest), 900Gb in your case. Then now, you have a huge /home, filling for 9Gb (2%), and 0 Gb of LVM free for extend other FS or Swap. When I install, I do not allocate all space but only a little bit (or what I have need) for my filesystem. Because, after, is more simple extend rater than shrink. Now I suggest you to shrink /home to 200 Gb (or what do you want) and leave more free space to assign where it's necessary or create new volume. To do that follow the my previous generic procedure. If you have ext4 FS (blkid is your friend), after you have unmount /home, the command are:
sudo umount /dev/fedora_localhost/home # umount fs sudo fsck.ext4 -f /dev/fedora_localhost/home # check fs sudo resize2fs /dev/fedora_localhost/home 190G # shrink fs to a little bit less what you want sudo lvresize --size 200G /dev/fedora_localhost/home # Resize partition to what you want sudo resize2fs /dev/fedora_localhost/home # extend the FS to partition size, what you want. sudo mount -a sudo pvscan
At this point you'll have a lot of free space to do whatever you want. IMPORTANT: Before of all, do a full backup of your important data, if I or you have written something wrong , you will need to reinstall from scratch Ciao.
in order to grow the size of the swap partition, I already resized the file system of partition where is LVM...
(resize2fs -p /dev/mapper/fedora_localhost-home)
but now I have problems to reduce the volume of the volume group. With the command: lvm lvrdeuce -L 650G /dev/fedora_locahost ============== I get the message "path required for Logical Volume "/fedora_localhost" Please provide a volume group name. ============
also he path : dev/mapper/fedora_localhost result to be not correct ---------------- with the command : ls -l /dev/fedora_localhost give me this output: lrrwx...... root root 7 jun ... home -> ../dm-1 lrrwx...... root root 7 jun ... root -> ../dm-2 lrrwx...... root root 7 jun ... swap -> ../dm-0
I would like know what is the name of the "volume group" and what is his path (on my computer) please.
thank you
On Sun, Jun 14, 2015 at 5:40 PM, Dario Lesca d.lesca@solinos.it wrote:
Il giorno dom, 14/06/2015 alle 12.29 +0300, Angelo Moreschini ha scritto:
Ciao Dario,
I need a little explanation, because I am not able to well understood about how to get of the value of the free space.
I made some tests:
using the command pvscan I get this output:
PV /dev/sda2 VG fedora_localhost lvm2 [931.02 GiB / 64.00 MiB free] Total: 1 [931.02 GiB] / in use: 1 [931.02 GiB]* / in no VG: 0 [0 ]*
what means this ? I can think this output concern ALL the Volume Group of LVM: And the row up seem to indicate that they are (only) 64 MB free *(but what means "/ in no VG: 0 [0 ]" in the row down?)*
I made the same test (inside the lvm environment) using the command lvscan: this time I got this output:
lvm> lvscan ACTIVE '/dev/fedora_localhost/swap' [7.75 GiB] inherit ACTIVE '/dev/fedora_localhost/home' [873.21 GiB] inherit ACTIVE '/dev/fedora_localhost/root' [50.00 GiB] inherit ----- OK! the total is 930.96 ------
that the second control confirm the former one, and it shows also more details...
But what does not enter in my head, is the fact that the (huge) quantity of free space (845449680 ) of the "home" partition is not reported when I used the command pvscan : ...
This is the output of the command line df -k:
[angelo_dev@localhost ~]$ df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/fedora_localhost-root 51475068 10518776 38318468 22% / devtmpfs 4046300 0 4046300 0% /dev tmpfs 4057324 152 4057172 1% /dev/shm tmpfs 4057324 904 4056420 1% /run tmpfs 4057324 0 4057324 0% /sys/fs/cgroup tmpfs 4057324 668 4056656 1% /tmp */dev/mapper/fedora_localhost-home 901125392 9878132 845449680 2% /home* /dev/sda1 487652 105670 352286 24% /boot tmpfs 811468 28 811440 1% /run/user/1001
*in shor*t: I would like understand because I have to ask (shrink) free space, in order to expand the swap partition - in the moment that - the home partition (THAT BELONGS TO THE SAME VG) already has a huge amount of free space ?
The free space is into filesystem, and not into LVM. The free space into filesystem is not useful vie LVM, You must be transferred a little bit of free space from filesystem to LVM Shrink filesystem then shrink LVM partition.
When you install Fedora, and do not do a manual partition, anaconda use all disk space for all default partition, swap(8Gb), /(50 Gb) and /home (all the rest), 900Gb in your case.
Then now, you have a huge /home, filling for 9Gb (2%), and 0 Gb of LVM free for extend other FS or Swap.
When I install, I do not allocate all space but only a little bit (or what I have need) for my filesystem. Because, after, is more simple extend rater than shrink.
Now I suggest you to shrink /home to 200 Gb (or what do you want) and leave more free space to assign where it's necessary or create new volume.
To do that follow the my previous generic procedure. If you have ext4 FS (blkid is your friend), after you have unmount /home, the command are:
sudo umount /dev/fedora_localhost/home # umount fs sudo fsck.ext4 -f /dev/fedora_localhost/home # check fs sudo resize2fs /dev/fedora_localhost/home 190G # shrink fs to a little bit less what you want sudo lvresize --size 200G /dev/fedora_localhost/home # Resize partition to what you want sudo resize2fs /dev/fedora_localhost/home # extend the FS to partition size, what you want. sudo mount -a sudo pvscan
At this point you'll have a lot of free space to do whatever you want.
*IMPORTANT:* *Before of all, do a full backup of your important data, if I or you have written something wrong , you will need to reinstall from scratch*
Ciao.
--
Dario Lesca (inviato dal mio Linux Fedora 22 con Gnome 3.16)
-- users mailing list users@lists.fedoraproject.org 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
I did it and I found three sections (one section for each logical volume : root, home, swap).
example:
..........Logical Volume ............ LV Path /dev/fedora_localhost//root LV Name root VG Name fedora_localhost LV UUID xyz.... .... ....
---------
In each of these sections is wrote what is the path of the Logical Volume and the name of the Volume group, but not the path of the Volume Group.
The message error says that need specify the path of volume group ...
What to do ???
On Thu, Jun 25, 2015 at 3:13 PM, Ed Greshko ed.greshko@greshko.com wrote:
On 06/25/15 19:36, Angelo Moreschini wrote:
I get the message "path required for Logical Volume "/fedora_localhost" Please provide a volume group name.
Use Konsole output lvdisplay to show the LV Path and the VG Name
users mailing list users@lists.fedoraproject.org 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
On 06/25/2015 08:42 AM, Angelo Moreschini wrote:
I did it and I found three sections (one section for each logical volume : root, home, swap).
example:
..........Logical Volume ............ LV Path /dev/fedora_localhost//root LV Name root VG Name fedora_localhost LV UUID xyz.... .... ....
In each of these sections is wrote what is the path of the Logical Volume and the name of the Volume group, but not the path of the Volume Group.
In general:
/dev/VOLUMEGROUP/LOGICALVOLUME
for what you says, the path of Volume Group should be /dev/fedora_localhost...
but when I use it get the error -------------------- Path required for Logical Volume "fedora_localhost" Please provide a volume group name. --------------------
to resize the volume group I use the command: lvm lvreduce -L650 G /dev/fedora_localhost
see : http://doc.fedoraonline.it/Ridimensionare_partizioni_LVM (lvm lvreduce -L 250G /dev/mapper/VolGroup00-LogVol00)
On Thu, Jun 25, 2015 at 6:45 PM, Mike Wright nobody@nospam.hostisimo.com wrote:
On 06/25/2015 08:42 AM, Angelo Moreschini wrote:
I did it and I found three sections (one section for each logical volume : root, home, swap).
example:
..........Logical Volume ............ LV Path /dev/fedora_localhost//root LV Name root VG Name fedora_localhost LV UUID xyz.... .... ....
In each of these sections is wrote what is the path of the Logical Volume and the name of the Volume group, but not the path of the Volume Group.
In general:
/dev/VOLUMEGROUP/LOGICALVOLUME
-- users mailing list users@lists.fedoraproject.org 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
On 06/25/2015 09:55 AM, Angelo Moreschini wrote:
for what you says, the path of Volume Group should be /dev/fedora_localhost...
but when I use it get the error
Path required for Logical Volume "fedora_localhost" Please provide a volume group name.
to resize the volume group I use the command: lvm lvreduce -L650 G /dev/fedora_localhost
You are confusing "volume group" and "logical volume". Volume groups contain logical volumes.
lvreduce means to reduce a logical volume vgreduce means to reduce a volume group
You cannot arbitrarily change the size of a VOLUME GROUP from e.g. 1000G to 500G.
When using the lv... and vg... commands it is not necessary to use the full path, only VG name and LV name (/dev/ not required). When using resize2fs you must use the entire path including /dev/.
In your case the logical volumes in fedora_localhost are root,home, and swap. You would use lvreduce to reduce the size of one of them.
e.g. lvreduce -L650G fedora_localhost/root. NEVER reduce a logical volume until you have already resized it.
Il giorno gio, 25/06/2015 alle 19.55 +0300, Angelo Moreschini ha scritto:
lvm lvreduce -L650 G /dev/fedora_localhost
After you have reduce the ext4 filesystem:
# resize2fs /dev/fedora_localhost/home 650G
you can reduce the lv size:
# lvresize --size 651G /dev/fedora_localhost/home
Thank you Dario,
# 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 ?
On Fri, Jun 26, 2015 at 1:42 AM, Dario Lesca d.lesca@solinos.it wrote:
Il giorno gio, 25/06/2015 alle 19.55 +0300, Angelo Moreschini ha scritto:
lvm lvreduce -L650 G /dev/fedora_localhost
After you have reduce the ext4 filesystem:
# resize2fs /dev/fedora_localhost/home 650G
you can reduce the lv size:
# lvresize --size 651G /dev/fedora_localhost/home
-- Dario Lesca (inviato dal mio Linux Fedora 22 con Gnome 3.16) -- users mailing list users@lists.fedoraproject.org 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
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.
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@greshko.com 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@lists.fedoraproject.org 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
(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@gmail.com> 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@greshko.com 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@lists.fedoraproject.org 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
On 06/25/2015 04:36 AM, Angelo Moreschini wrote:
in order to grow the size of the swap partition, I already resized the file system of partition where is LVM...
(resize2fs -p /dev/mapper/fedora_localhost-home)
but now I have problems to reduce the volume of the volume group. With the command: lvm lvrdeuce -L 650G /dev/fedora_locahost ============== I get the message "path required for Logical Volume "/fedora_localhost" Please provide a volume group name. ============
also he path : dev/mapper/fedora_localhost result to be not correct
with the command : ls -l /dev/fedora_localhost give me this output: lrrwx...... root root 7 jun ... home -> ../dm-1 lrrwx...... root root 7 jun ... root -> ../dm-2 lrrwx...... root root 7 jun ... swap -> ../dm-0
I would like know what is the name of the "volume group" and what is his path (on my computer) please.
Salve Angelo,
The command is not lvm lvreduce, but lvreduce.
The full paths to your LVs are
/dev/fedora_localhost/home /dev/fedora_localhost/root /dev/fedora_localhost/swap
hth, Mike Wright