[root@mail ~]# parted /dev/sdd print
Error: The backup GPT table is not at the end of the disk, as it should be.  This might mean that another
operating system believes the disk is smaller.  Fix, by moving the backup to the end (and removing the old
backup)?
Fix/Ignore/Cancel? Fix
Warning: Not all of the space available to /dev/sdd appears to be used, you can fix the GPT to use all of the
space (an extra 1048576000 blocks) or continue with the current setting?
Fix/Ignore? Fix
Model: SYNOLOGY Storage (scsi)
Disk /dev/sdd: 4832GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name              Flags
 1      1049kB  4295GB  4295GB               Linux filesystem

[root@mail ~]#
[root@mail ~]# parted /dev/sdd print
Model: SYNOLOGY Storage (scsi)
Disk /dev/sdd: 4832GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name              Flags
 1      1049kB  4295GB  4295GB               Linux filesystem

[root@mail ~]#
[root@mail ~]# parted /dev/sdd
GNU Parted 3.1
Using /dev/sdd
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resizepart 1 100%
(parted) p
Model: SYNOLOGY Storage (scsi)
Disk /dev/sdd: 4832GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name              Flags
 1      1049kB  4832GB  4832GB               Linux filesystem

(parted) wq
  align-check TYPE N                        check partition N for TYPE(min|opt) alignment
  help [COMMAND]                           print general help, or help on COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, available devices, free space, all
        found partitions, or a particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START and END

  resizepart NUMBER END                    resize partition NUMBER
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and copyright information of GNU Parted
(parted) q
Information: You may need to update /etc/fstab.

[root@mail ~]#

[root@mail ~]# lsblk
NAME                     MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                        8:0    0   7.3T  0 disk
└─sda1                     8:1    0   7.3T  0 part
  └─md127                  9:127  0   7.3T  0 raid1 /hdd-old
sdb                        8:16   0 931.5G  0 disk
├─sdb1                     8:17   0     1G  0 part  /boot
└─sdb2                     8:18   0 930.5G  0 part
  ├─cl_labsjkt--wdd-root 253:0    0    50G  0 lvm   /
  ├─cl_labsjkt--wdd-swap 253:1    0   7.8G  0 lvm   [SWAP]
  └─cl_labsjkt--wdd-home 253:2    0 872.7G  0 lvm   /home
sdc                        8:32   0   7.3T  0 disk
└─sdc1                     8:33   0   7.3T  0 part
  └─md127                  9:127  0   7.3T  0 raid1 /hdd-old
sdd                        8:48   0   4.4T  0 disk
└─sdd1                     8:49   0   4.4T  0 part
  └─synology-zimbralv    253:3    0   3.9T  0 lvm   /opt
[root@mail dailybackup]#
[root@mail dailybackup]# pvs
  PV         VG             Fmt  Attr PSize    PFree
  /dev/sdb2  cl_dartjkt-wdd lvm2 a--  <930.51g 4.00m
  /dev/sdd1  synology       lvm2 a--    <3.91t    0
[root@mail ~]#
[root@mail ~]# pvresize /dev/sdd1
  Physical volume "/dev/sdd1" changed
  1 physical volume(s) resized or updated / 0 physical volume(s) not resized
[root@mail ~]#
[root@mail ~]# pvs
  PV         VG             Fmt  Attr PSize    PFree
  /dev/sdb2  cl_labsjkt-wdd lvm2 a--  <930.51g   4.00m
  /dev/sdd1  synology       lvm2 a--     4.39t 500.00g
[root@mail ~]#

[root@mail ~]# vgs
  VG             #PV #LV #SN Attr   VSize    VFree
  cl_labstjkt-wdd   1   3   0 wz--n- <930.51g   4.00m
  synology         1   1   0 wz--n-    4.39t 500.00g
[root@mail ~]# lvs
  LV       VG             Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home     cl_dartjkt-wdd -wi-ao---- 872.69g
  root     cl_dartjkt-wdd -wi-ao----  50.00g
  swap     cl_dartjkt-wdd -wi-ao----   7.81g
  zimbralv synology       -wi-ao----  <3.91t
[root@mail ~]#
[root@mail ~]# lvextend -l 100%FREE /dev/mapper/synology-zimbralv
  New size given (128000 extents) not larger than existing size (1023999 extents)
[root@mail ~]# lvextend -l +100%FREE /dev/mapper/synology-zimbralv
  Size of logical volume synology/zimbralv changed from <3.91 TiB (1023999 extents) to 4.39 TiB (1151999 extents).
  Logical volume synology/zimbralv successfully resized.
[root@mail ~]#
[root@mail ~]# vgs
  VG             #PV #LV #SN Attr   VSize    VFree
  cl_dartjkt-wdd   1   3   0 wz--n- <930.51g 4.00m
  synology         1   1   0 wz--n-    4.39t    0
[root@mail ~]#
[root@mail ~]# df -hT
Filesystem                       Type      Size  Used Avail Use% Mounted on
devtmpfs                         devtmpfs  7.8G     0  7.8G   0% /dev
tmpfs                            tmpfs     7.8G     0  7.8G   0% /dev/shm
tmpfs                            tmpfs     7.8G  810M  7.0G  11% /run
tmpfs                            tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/mapper/cl_labsjkt--wdd-root xfs        50G  7.1G   43G  15% /
tmpfs                            tmpfs     7.8G  168K  7.8G   1% /tmp
/dev/sdb1                        xfs      1014M  212M  803M  21% /boot
/dev/mapper/cl_labsjkt--wdd-home xfs       873G  5.5G  867G   1% /home
tmpfs                            tmpfs     1.6G   32K  1.6G   1% /run/user/1000
tmpfs                            tmpfs     1.6G     0  1.6G   0% /run/user/0
/dev/mapper/synology-zimbralv    xfs       4.0T  3.2T  743G  82% /opt
/dev/md127                       xfs       7.3T  5.4T  2.0T  74% /hdd-old
tmpfs                            tmpfs     1.6G     0  1.6G   0% /run/user/988
[root@mail ~]#
[root@mail ~]# xfs_growfs /dev/mapper/synology-zimbralv
meta-data=/dev/mapper/synology-zimbralv isize=512    agcount=4, agsize=262143744 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=1048574976, imaxpct=5
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal               bsize=4096   blocks=511999, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 1048574976 to 1179646976
[root@mail ~]#
[root@mail ~]# df -hT
Filesystem                       Type      Size  Used Avail Use% Mounted on
devtmpfs                         devtmpfs  7.8G     0  7.8G   0% /dev
tmpfs                            tmpfs     7.8G     0  7.8G   0% /dev/shm
tmpfs                            tmpfs     7.8G  810M  7.0G  11% /run
tmpfs                            tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/mapper/cl_labsjkt--wdd-root xfs        50G  7.1G   43G  15% /
tmpfs                            tmpfs     7.8G  168K  7.8G   1% /tmp
/dev/sdb1                        xfs      1014M  212M  803M  21% /boot
/dev/mapper/cl_labsjkt--wdd-home xfs       873G  5.5G  867G   1% /home
tmpfs                            tmpfs     1.6G   32K  1.6G   1% /run/user/1000
tmpfs                            tmpfs     1.6G     0  1.6G   0% /run/user/0
/dev/mapper/synology-zimbralv    xfs       4.4T  3.2T  1.3T  73% /opt
/dev/md127                       xfs       7.3T  5.4T  2.0T  74% /hdd-old
tmpfs                            tmpfs     1.6G     0  1.6G   0% /run/user/988
[root@mail ~]#

Leave a Reply

Your email address will not be published. Required fields are marked *