Site Tools


synology:resizing_partitions

Differences

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

Link to this comparison view

Next revision
Previous revision
synology:resizing_partitions [2026/04/19 11:16] – created ashleysynology:resizing_partitions [2026/04/19 11:45] (current) – [Final Recheck of VG] ashley
Line 1: Line 1:
-login as: admin2 +====== Synology resize ====== 
-admin2@192.168.2.131's password: +====Check Sizes and volumes==== 
- +  root@test:~# df -h 
-Using terminal commands to modify system configs, execute external binary +   
-files, add files, or install unauthorized third-party apps may lead to system +  /dev/mapper/cachedev_0   86G   80M   86G   1% /volume1 
-root@test:~# df -h +====Stop Services====
-Filesystem              Size  Used Avail Use% Mounted on +
-/dev/md0                7.9G  1.5G  6.3G  19% / +
-devtmpfs                1.9G     0  1.9G   0% /dev +
-tmpfs                   2.0G  124K  2.0G   1% /dev/shm +
-tmpfs                   2.0G   18M  1.9G   1% /run +
-tmpfs                   2.0G     0  2.0G   0% /sys/fs/cgroup +
-tmpfs                   2.0G   28M  1.9G   2% /tmp +
-/dev/loop0               27M  767K   24M   4% /tmp/SynologyAuthService +
-/dev/mapper/cachedev_0   86G   80M   86G   1% /volume1 +
   root@test:~# synopkg onoffall stop   root@test:~# synopkg onoffall stop
   Stop SynoFinder   Stop SynoFinder
Line 42: 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 Resize=====+====LV Size Check====
   root@test:/# lvdisplay   root@test:/# lvdisplay
      
Line 64: Line 54:
   - currently set to     384   - currently set to     384
   Block device           249:1   Block device           249:1
 +====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 71: 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.
-  root@test:/# vgdisplay + 
-  --- Volume group --- +====Finally resize BTRFS to fill LVM==== 
-  VG Name               vg1 +  btrfs fi resize max /volume1
-  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+
  
synology/resizing_partitions.1776597380.txt.gz · Last modified: by ashley