Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2022 10:08:13 +0000
From:      Pete French <pete@twisted.org.uk>
To:        Chuck Tuffli <ctuffli@gmail.com>
Cc:        stable@freebsd.org
Subject:   Re: Instance drives in AWS comming up with the wrong size
Message-ID:  <39008acb-6bb6-bc4f-db0a-ef97ea3212dc@twisted.org.uk>
In-Reply-To: <CAKAYmML2=j84Vq__Zn4qJaqFkgNVGAaCPk9qa=hvYX13kFSnjw@mail.gmail.com>
References:  <b6fae531-edaf-d7c1-f6be-32c966fd711c@twisted.org.uk> <CANCZdfrye3mBj5Ej=vjoUUtKx%2BqNX%2BXBXq15j6B0FCnZDZw54Q@mail.gmail.com> <82956746-91aa-4744-c12f-40c5ff7c3f39@twisted.org.uk> <CAKAYmML2=j84Vq__Zn4qJaqFkgNVGAaCPk9qa=hvYX13kFSnjw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 24/02/2022 21:18, Chuck Tuffli wrote:
> On Tue, Feb 22, 2022 at 1:16 PM Pete French <pete@twisted.org.uk> wrote:
> ...
>> root@serpentine-vgay:/usr/home/webadmin # nvmecontrol identify nda2
>> Size:                        292968750 blocks
>> Capacity:                    292968750 blocks
>> Utilization:                 292968750 blocks
> ...
>> LBA Format #00: Data Size:   512  Metadata Size:     0  Performance: Best
> 
> This says the capacity is 140GB which matches with your expectations
> if I'm understanding correctly. Can you run:
>      nvmecontrol identify nvme2 | grep "Serial Number"
> via both ssh and from the serial console?

Serial Number:               AWS26C9F8A45429C4403

in both cases

But I found an easier way to reporduce the bug. On ssh, if I do 'su -' 
instead of 'su' then the wrong value appears:


$ su
Password:
root@serpentine-vgay:/usr/home/webadmin # diskinfo nda2
nda2	512	150000000000	292968750	131072	0
root@serpentine-vgay:/usr/home/webadmin # exit
$ su -
Password:
root@serpentine-vgay:~ # diskinfo nda2
nda2	512	1072431104	2094592	131072	0
root@serpentine-vgay:~ # logout
$

That makes sense - as 'su -' simulates a login, which is what I am doing 
on the serial console. But I was under the impresison that the main 
differences between the two were in the environment variables which get 
set, and they seem to be identical.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39008acb-6bb6-bc4f-db0a-ef97ea3212dc>