Show only 1/2 from secondary HDD

bit2gb

Well-Known Member
Jul 20, 2016
84
2
48
29
After reboot local2 hdd show only 98 gb from 500 (total hdd capacity)

in fdisk i recive:
Disk /dev/sdb: 500.1 GB, 500074307584 bytes
255 heads, 63 sectors/track, 60797 cylinders, total 976707632 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xa98d6fbf

Device Boot Start End Blocks Id System
/dev/sdb1 63 976707631 488353784+ 83 Linux
Partition 1 does not start on physical sector boundary.


My problme is ... big becaouse on that hdd i have 7/8 vm's and ct's !

Please tell me how can i solv this problem??
When i start an vm/ct created on this drive i recive:

local2:114/vm-114-disk-1.raw' does not exist proxmox and exitcode is 64!


p.S. until restart everything was ok!
 
fdisk -l

root@sv1:~# fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 500.1 GB, 500074307584 bytes
256 heads, 63 sectors/track, 60559 cylinders, total 976707632 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 1 976707631 488353815+ ee GPT

Disk /dev/sdb: 500.1 GB, 500074307584 bytes
255 heads, 63 sectors/track, 60797 cylinders, total 976707632 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xa98d6fbf

Device Boot Start End Blocks Id System
/dev/sdb1 63 976707631 488353784+ 83 Linux
Partition 1 does not start on physical sector boundary.

Disk /dev/mapper/pve-root: 103.1 GB, 103079215104 bytes
255 heads, 63 sectors/track, 12532 cylinders, total 201326592 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/pve-root doesn't contain a valid partition table

Disk /dev/mapper/pve-swap: 11.8 GB, 11811160064 bytes
255 heads, 63 sectors/track, 1435 cylinders, total 23068672 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/pve-swap doesn't contain a valid partition table

Disk /dev/mapper/pve-data: 367.9 GB, 367874015232 bytes
255 heads, 63 sectors/track, 44724 cylinders, total 718503936 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/pve-data doesn't contain a valid partition table


Well i can't see in proxmox bolded partition!!
 
this is output

root@sv1:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 465.7G 0 disk
└─sdb1 8:17 0 465.7G 0 part
sda 8:0 0 465.7G 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 127M 0 part
└─sda3 8:3 0 465.6G 0 part
├─pve-root (dm-0) 253:0 0 96G 0 lvm /
├─pve-swap (dm-1) 253:1 0 11G 0 lvm [SWAP]
└─pve-data (dm-2) 253:2 0 342.6G 0 lvm /var/lib/vz
root@sv1:~# vgs
VG #PV #LV #SN Attr VSize VFree
Data-Storage 1 0 0 wz--n- 465.73g 465.73g
pve 1 3 0 wz--n- 465.60g 15.99g
root@sv1:~# lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
data pve -wi-ao--- 342.61g
root pve -wi-ao--- 96.00g
swap pve -wi-ao--- 11.00g
root@sv1:~#
 
└─pve-data (dm-2) 253:2 0 342.6G 0 lvm /var/lib/vz
ok it is there, and mounted as /var/lib/vz
please make it more clear what does not work and what you expect
 
Well, i try to remount sdb drive and after that i recive this error:
wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error In some cases useful info is found in syslog

So this represent clearly an bed sectors on the drive.
HDD not appera in complet form in proxmox , only 96 gb is showed into local2 storge from 500

Solution:
e2fsck -f -b 32768 -y /dev/sdb1
mount -t ext4 /dev/sdb1 /home2
 
hello , i have a similar problem,
when i run vgs command:
1594895786056.png
0 free,
please can someone help me to fix it?
best regard