How to extend the datastore size

parker0909

Well-Known Member
Aug 5, 2019
82
0
46
36
Hi All,

I just setup the new Proxmox Backup Server for testing. I have created the datastore as below command. May i know it possible to extend the size when i already add more disk space in the hypervisor level for this disk?

# proxmox-backup-manager disk initialize sdb
#proxmox-backup-manager disk fs create store1 --disk sdb --filesystem xfs --add-datastore true

I checked that the datastore just any sample disk type without any LVM. May i know any suggestion for extend the size for backup datastore. Thank you.

Regards,
Parker
 
Thank you. i tried to Resize the disk by parted.but it seem the size still not grow. I tried to use xfs_growfs command to enlarge the size but i got the warning should be "/dev/sdb1 is not a mounted XFS filesystem". Thank you.

root@pbs:~# xfs_growfs /dev/sdb1
xfs_growfs: /dev/sdb1 is not a mounted XFS filesystem
root@pbs:~# fdisk -l /dev/sdb | grep ^/dev
/dev/sdb1 2048 6442450910 6442448863 3T Linux filesystem
root@pbs:~# dmesg | grep sdb
[ 2.946902] sd 2:0:1:0: [sdb] 6442450944 512-byte logical blocks: (3.30 TB/3.00 TiB)
[ 2.946958] sd 2:0:1:0: [sdb] Write Protect is off
[ 2.946961] sd 2:0:1:0: [sdb] Mode Sense: 61 00 00 00
[ 2.947019] sd 2:0:1:0: [sdb] Cache data unavailable
[ 2.947022] sd 2:0:1:0: [sdb] Assuming drive cache: write through
[ 2.989166] sdb: sdb1
[ 2.990355] sd 2:0:1:0: [sdb] Attached SCSI disk
[ 7.205699] XFS (sdb1): Mounting V5 Filesystem
[ 7.341310] XFS (sdb1): Ending clean mount
 
what does mount say in the VM?
 
Thank you. This is the result showing in mount command

/dev/sdb1 on /mnt/datastore/store1 type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
 
xfs_growfs expects the mount point, not the block device.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!