Skip to content
Luca Dell'Oca Principal Cloud Architect @Veeam
Virtual To The Core Virtual To The Core

Virtualization blog, the italian way.

  • Media
  • About me
Virtual To The Core
Virtual To The Core

Virtualization blog, the italian way.

Il limite teorico dei 2 Tb per LUN

Luca Dell'Oca, June 9, 2010June 3, 2010

Avete mai provato a far vedere a un nodo ESX una lun di 2 Tb? Io sì, e ogni volta il sistema si rifiutava di vederla e sputava fuori dal log di vkernel messaggi oltraggiosi…

Sebbene il limite appunto teorico sia di 2 Tb, il limite reale è lievemente più basso. Ho letto qualche giorno fa la spiegazione tecnica, e se vi interessa eccovela.

ESX e ESXi usano lo standard scsi-2. Questo protocollo usa il comando READ_CAPACITY per farsi dire da uno storage quanto è grande, e ritorna un messaggio che può essere grande 32 bit. 2^32 bit darebbe appunto 2 Tb, MA nello standard scsi-2 il valore 0xffffffff è riservato.

Ecco perchè la dimensione massima di una lun non può essere 2 Tb esatti, ma (2^32) – 1 settori. Praticamente il calcolo è:

(2^32) = 4294967296
4294967296 – 1 = 4294967295

4294967295 x 512 bytes = 2199023255040 bytes di limite

Tradotto

4294967295 settori di limite
2199023254528 bytes di limite, che diviso per 1024 da 2047.999999046325684, ovvero poco meno dei 2048 attesi.

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
Tecnologia lun

Post navigation

Previous post
Next post

Search

Sponsors

Latest Posts

  • Migrate WSL (Windows Subsystem for Linux) to a new computer
  • Pass keystrokes to a pfSense virtual machine to install it automatically
  • Automatically deploy pfSense with Terraform and Ansible
  • My Automated Lab project: #6 Create a S3 Bucket with Terraform
  • My Automated Lab project: #5 Deploy a Linux vSphere VM with Terraform and custom disks
©2025 Virtual To The Core | WordPress Theme by SuperbThemes
We use cookies to ensure that we give you the best experience on our website, and to collect anonymous data regarding navigations stats using 3rd party plugins; they all adhere to the EU Privacy Laws. If you continue to use this site we will assume that you are ok with it.OkNoPrivacy Policy