Re: Transfer storage from home to var
Hi Dashamir,
The reassigning seemed to finally work using:
sudo lvresize -r -L-10G /dev/vg_system/skole+tjener+home0
sudo lvresize -r -L+10G /dev/vg_system/var
Then I'm getting the following output:
root@tjener:/skole/tjener/home0/roman# sudo vgdisplay
--- Volume group ---
VG Name vg_system
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 79
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 10
Open LV 10
Max PV 0
Cur PV 1
Act PV 1
VG Size 930.55 GiB
PE Size 4.00 MiB
Total PE 238222
Alloc PE / Size 238088 / 930.03 GiB
Free PE / Size 134 / 536.00 MiB
VG UUID 1Ekw6T-kY0s-iJjc-HV4x-ldxG-kQNh-ZTAATE
root@tjener:/skole/tjener/home0/roman# sudo lvdisplay
--- Logical volume ---
LV Path /dev/vg_system/root
LV Name root
VG Name vg_system
LV UUID Km3Z2m-ei4I-zPaG-AanS-oPsF-4y1u-BmGGag
LV Write Access read/write
LV Creation host, time localhost, 2019-12-22 00:17:48 +0000
LV Status available
# open 1
LV Size <38.36 GiB
Current LE 9820
Segments 7
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0
--- Logical volume ---
LV Path /dev/vg_system/usr
LV Name usr
VG Name vg_system
LV UUID yhlCZE-cqhZ-DvAd-aHBc-Mdhr-nwDS-abfPMN
LV Write Access read/write
LV Creation host, time localhost, 2019-12-22 00:17:49 +0000
LV Status available
# open 1
LV Size 25.00 GiB
Current LE 6400
Segments 4
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2
--- Logical volume ---
LV Path /dev/vg_system/var
LV Name var
VG Name vg_system
LV UUID FcNFe9-yd08-DKtF-u3Cl-OGvr-mF48-USUnAV
LV Write Access read/write
LV Creation host, time localhost, 2019-12-22 00:17:49 +0000
LV Status available
# open 1
LV Size <27.26 GiB
Current LE 6978
Segments 5
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:3
--- Logical volume ---
LV Path /dev/vg_system/var+log
LV Name var+log
VG Name vg_system
LV UUID MYTIao-Vio4-jRik-0gb3-Egg7-sQbc-UMaeNe
LV Write Access read/write
LV Creation host, time localhost, 2019-12-22 00:17:49 +0000
LV Status available
# open 1
LV Size <4.77 GiB
Current LE 1220
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:4
--- Logical volume ---
LV Path /dev/vg_system/swap_1
LV Name swap_1
VG Name vg_system
LV UUID lQSvdd-hcUB-9bdV-LkN1-UiMI-PhqC-zLW71E
LV Write Access read/write
LV Creation host, time localhost, 2019-12-22 00:17:49 +0000
LV Status available
# open 2
LV Size 3.81 GiB
Current LE 976
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
--- Logical volume ---
LV Path /dev/vg_system/opt
LV Name opt
VG Name vg_system
LV UUID Q23PB4-n1bk-H3Xg-kjjO-NbUA-AZ8n-9TWQzw
LV Write Access read/write
LV Creation host, time localhost, 2019-12-22 00:17:50 +0000
LV Status available
# open 1
LV Size <37.52 GiB
Current LE 9604
Segments 3
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:5
--- Logical volume ---
LV Path /dev/vg_system/var+opt+ltsp+swapfiles
LV Name var+opt+ltsp+swapfiles
VG Name vg_system
LV UUID jpN2ka-TLP3-1GsX-lUlV-Khz7-7QGt-BkM8km
LV Write Access read/write
LV Creation host, time localhost, 2019-12-22 00:17:50 +0000
LV Status available
# open 1
LV Size 3.81 GiB
Current LE 976
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:6
--- Logical volume ---
LV Path /dev/vg_system/skole+tjener+home0
LV Name skole+tjener+home0
VG Name vg_system
LV UUID 731Gp2-zVjA-CgNB-3rV0-zNVJ-2NGq-BVwdtp
LV Write Access read/write
LV Creation host, time localhost, 2019-12-22 00:17:51 +0000
LV Status available
# open 1
LV Size <700.52 GiB
Current LE 179332
Segments 9
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:7
--- Logical volume ---
LV Path /dev/vg_system/var+spool+squid
LV Name var+spool+squid
VG Name vg_system
LV UUID OMuxsl-mbc7-5LjM-SOsI-3Hhc-VTgz-mWaRcg
LV Write Access read/write
LV Creation host, time localhost, 2019-12-22 00:17:51 +0000
LV Status available
# open 1
LV Size 14.30 GiB
Current LE 3662
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:8
--- Logical volume ---
LV Path /dev/vg_system/skole+backup
LV Name skole+backup
VG Name vg_system
LV UUID GdBJBF-aSMt-WXyt-LhZX-3UB4-iZ3H-7jcx5Z
LV Write Access read/write
LV Creation host, time localhost, 2019-12-22 00:17:51 +0000
LV Status available
# open 1
LV Size <74.69 GiB
Current LE 19120
Segments 3
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:9
root@tjener:/skole/tjener/home0/roman#
Kind regards,
Roman
> On 02/03/2023 1:44 PM GMT Dashamir Hoxha <dashohoxha@gmail.com> wrote:
>
>
> On Fri, Feb 3, 2023 at 9:43 AM <roman.meier@gismap.ch> wrote:
>
> >
> > sudo lvextend -L+5G /dev/vg_system/var
> > Insufficient free space: 1280 extents needed, but only 138 available
> >
>
> If you don't mind, can you share the output of the commands:
>
> sudo vgdisplay
> sudo lvdisplay
>
> If you just say "it doesn't work", without providing some context, it is
> difficult to guess what might be wrong.
>
> Dashamir
Reply to: