Site Tools


synology:resizing_partitions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
synology:resizing_partitions [2026/04/19 11:40] – ashleysynology:resizing_partitions [2026/04/19 11:45] (current) – [Final Recheck of VG] ashley
Line 1: Line 1:
 ====== Synology resize ====== ====== Synology resize ======
- +====Check Sizes and volumes====
   root@test:~# df -h   root@test:~# df -h
      
   /dev/mapper/cachedev_0   86G   80M   86G   1% /volume1   /dev/mapper/cachedev_0   86G   80M   86G   1% /volume1
-  +====Stop Services====
   root@test:~# synopkg onoffall stop   root@test:~# synopkg onoffall stop
   Stop SynoFinder   Stop SynoFinder
Line 33: Line 32:
   root@test:/usr/syno/etc.defaults/rc.sysv# ./usbip.sh stop   root@test:/usr/syno/etc.defaults/rc.sysv# ./usbip.sh stop
   root@test:/# umount -l /dev/mapper/cachedev_0   root@test:/# umount -l /dev/mapper/cachedev_0
-=====btrfs resize=====  +====BTFRS resize (reducing by 10G)====  
   root@test:/# btrfs filesystem resize -- -40G /volume1   root@test:/# btrfs filesystem resize -- -40G /volume1
   Resize '/volume1' of '-40G'   Resize '/volume1' of '-40G'
-=====LV Size Check=====+====LV Size Check====
   root@test:/# lvdisplay   root@test:/# lvdisplay
      
Line 55: Line 54:
   - currently set to     384   - currently set to     384
   Block device           249:1   Block device           249:1
-=====LVM Resize=====+====LVM Resize====
   root@test:/# lvm lvreduce -L -40G /dev/vg1/volume_1   root@test:/# lvm lvreduce -L -40G /dev/vg1/volume_1
   WARNING: Reducing active and open logical volume to 49.00 GiB   WARNING: Reducing active and open logical volume to 49.00 GiB
Line 62: Line 61:
   Size of logical volume vg1/volume_1 changed from 89.00 GiB (22784 extents) to 49.00 GiB (12544 extents).   Size of logical volume vg1/volume_1 changed from 89.00 GiB (22784 extents) to 49.00 GiB (12544 extents).
   Logical volume volume_1 successfully resized.   Logical volume volume_1 successfully resized.
-=====recheck VG===== + 
-  root@test:/# vgdisplay +====Finally resize BTRFS to fill LVM====
-  --- Volume group --- +
-  VG Name               vg1 +
-  System ID +
-  Format                lvm2 +
-  Metadata Areas        1 +
-  Metadata Sequence No  5 +
-  VG Access             read/write +
-  VG Status             resizable +
-  MAX LV                0 +
-  Cur LV                2 +
-  Open LV               1 +
-  Max PV                0 +
-  Cur PV                1 +
-  Act PV                1 +
-  VG Size               89.77 GiB +
-  PE Size               4.00 MiB +
-  Total PE              22981 +
-  Alloc PE / Size       12547 / 49.01 GiB +
-  Free  PE / Size       10434 / 40.76 GiB +
-  VG UUID               ugQJd0-KF7V-Syl0-34QQ-d52M-jN3F-6qvwyP +
-=====Finally resize BTRFS to fill LVM=====+
   btrfs fi resize max /volume1   btrfs fi resize max /volume1
  
synology/resizing_partitions.1776598841.txt.gz · Last modified: by ashley