Skip to content

Commit

Permalink
special partition size handling for FBPN 01-005817, 01-005959
Browse files Browse the repository at this point in the history
Summary:
eag-prod-2 has three different kinds of T16, each with slightly different storage capacities.

This diff makes such that each of the smaller capacity machines will format its disks to have
partitions passed to the VM that are the same size as the largest machine.

Confirmed we currently have only one of these machines for each FBPN. Other anvils
should not be impacted.

Had to add "s" to the allowed suffixes that can be passed for partition start/end in fb_storage
so that we can be precise in partition sizing.

Differential Revision: D58845625

fbshipit-source-id: a63b8fb28170053845e66423d27e15d89cd40bec
  • Loading branch information
Brandon Adams authored and facebook-github-bot committed Jun 21, 2024
1 parent f41af66 commit 1eba098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/fb_storage/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
'It must be a number with an optional suffix of %%kmgt'
%w{start end}.each do |disp|
unless partition["partition_#{disp}"].match(
/^\d+(\.\d+)?([KkMmGgTt%](iB)?)?$/,
/^\d+(\.\d+)?([KkMmGgsTt%](iB)?)?$/,
)
fail format(pmsg, partition["partition_#{disp}"])
end
Expand Down

0 comments on commit 1eba098

Please sign in to comment.