Skip to content

Commit

Permalink
fix: storage revision 7
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-freeman committed Jan 31, 2024
1 parent 89c183e commit 5978337
Show file tree
Hide file tree
Showing 19 changed files with 1,207 additions and 1,002 deletions.
127 changes: 68 additions & 59 deletions sap_bw4hana_single_node_install/msazure_vm/variable_map_hosts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,68 +9,77 @@ variable "map_host_specifications" {

small_256gb = {

bwh01 = { // Hostname
bwh01 = { // Hostname
vm_instance = "Standard_M32ls"

// N.B. all capacities must be different from each other, due to Shell loop searching based on capacity GB

disk_volume_count_hana_data = 4
disk_volume_type_hana_data = "P6"
disk_volume_capacity_hana_data = 64
#disk_volume_iops_hana_data =
lvm_enable_hana_data = true // if false, then disk volume count should be 1
lvm_pv_data_alignment_hana_data = "1M" //default 1MiB offset from disk start before first LVM PV Physical Extent.
lvm_vg_data_alignment_hana_data = "1M" //default 1MiB offset from disk start before first LVM VG Physical Extent.
lvm_vg_physical_extent_size_hana_data = "4M" //default 4MiB, difficult to change once set. Akin to Physical Block Size.
lvm_lv_stripe_size_hana_data = "64K" //default 64KiB. Akin to Virtualized Block Size.
filesystem_hana_data = "xfs"
#physical_partition_filesystem_block_size_hana_data = "4k" // only if LVM is set to false; if XFS then only 4k value allowed otherwise will be overridden (see README about XFS and Page Size)

disk_volume_count_hana_log = 3
disk_volume_type_hana_log = "P10"
disk_volume_capacity_hana_log = 128
#disk_volume_iops_hana_log =
lvm_enable_hana_log = true // if false, then disk volume count should be 1
lvm_pv_data_alignment_hana_log = "1M" //default 1MiB offset from disk start before first LVM PV Physical Extent.
lvm_vg_data_alignment_hana_log = "1M" //default 1MiB offset from disk start before first LVM VG Physical Extent.
lvm_vg_physical_extent_size_hana_log = "4M" //default 4MiB, difficult to change once set. Akin to Physical Block Size.
lvm_lv_stripe_size_hana_log = "64K" //default 64KiB. Akin to Virtualized Block Size.
filesystem_hana_log = "xfs"
#physical_partition_filesystem_block_size_hana_log = "4k" // only if LVM is set to false; if XFS then only 4k value allowed otherwise will be overridden (see README about XFS and Page Size)

disk_volume_count_hana_shared = 1
disk_volume_type_hana_shared = "P15" // Uses Burst IOPS for storage. May increase costs if there is consistent heavy usage (e.g. longer than 30mins burst, such as 200GB+ DB Backup Restore)
disk_volume_capacity_hana_shared = 256
#disk_volume_iops_hana_shared =
lvm_enable_hana_shared = false // if false, then disk volume count should be 1
#lvm_pv_data_alignment_hana_shared = "1M" //default 1MiB offset from disk start before first LVM PV Physical Extent.
#lvm_vg_data_alignment_hana_shared = "1M" //default 1MiB offset from disk start before first LVM VG Physical Extent.
#lvm_vg_physical_extent_size_hana_shared = "4M" //default 4MiB, difficult to change once set. Akin to Physical Block Size.
#lvm_lv_stripe_size_hana_shared = "64K" //default 64KiB. Akin to Virtualized Block Size.
filesystem_hana_shared = "xfs"
physical_partition_filesystem_block_size_hana_shared = "4k" // only if LVM is set to false; if XFS then only 4k value allowed otherwise will be overridden (see README about XFS and Page Size)

disk_volume_count_anydb = 0

disk_volume_count_usr_sap = 1 // max of 1
disk_volume_type_usr_sap = "E20"
disk_volume_capacity_usr_sap = 512 // bad sizing, but use this so each drive size is unique
filesystem_usr_sap = "xfs"

disk_volume_count_sapmnt = 1 // max of 1
disk_volume_type_sapmnt = "E4"
disk_volume_capacity_sapmnt = 32 // bad sizing, but use this so each drive size is unique
filesystem_sapmnt = "xfs"

#disk_swapfile_size_gb = 2 // not required if disk volume set
disk_volume_count_swap = 1 // max of 1
disk_volume_type_swap = "E3"
disk_volume_capacity_swap = 16 // bad sizing, but use this so each drive size is unique
filesystem_swap = "xfs"
storage_definition = [
{
name = "hana_data"
mountpoint = "/hana/data"
disk_count = 4
disk_size = 64
disk_type = "P6"
#disk_iops =
filesystem_type = "xfs"
#lvm_lv_name =
#lvm_lv_stripes =
#lvm_lv_stripe_size =
#lvm_vg_name =
#lvm_vg_options =
#lvm_vg_physical_extent_size =
#lvm_pv_device =
#lvm_pv_options =
#nfs_path =
#nfs_server =
#nfs_filesystem_type =
#nfs_mount_options =
},
{
name = "hana_log"
mountpoint = "/hana/log"
disk_count = 3
disk_size = 128
disk_type = "P10"
filesystem_type = "xfs"
},
{
name = "hana_shared"
mountpoint = "/hana/shared"
disk_size = 256
disk_type = "P15"
filesystem_type = "xfs"
},
{
name = "usr_sap"
mountpoint = "/usr/sap"
disk_size = 128
disk_type = "E10"
filesystem_type = "xfs"
},
{
name = "sapmnt"
mountpoint = "/sapmnt"
disk_size = 128
disk_type = "E10"
filesystem_type = "xfs"
},
{
name = "swap"
mountpoint = "/swap"
disk_size = 32
disk_type = "E4"
filesystem_type = "swap"
},
{
name = "software"
mountpoint = "/software"
disk_size = 128
disk_type = "E10"
filesystem_type = "xfs"
}
]
}

}

}
}

}
127 changes: 68 additions & 59 deletions sap_ecc_hana_single_node_install/msazure_vm/variable_map_hosts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,68 +9,77 @@ variable "map_host_specifications" {

small_256gb = {

ecc01 = { // Hostname
ecc01 = { // Hostname
vm_instance = "Standard_M32ls"

// N.B. all capacities must be different from each other, due to Shell loop searching based on capacity GB

disk_volume_count_hana_data = 4
disk_volume_type_hana_data = "P6"
disk_volume_capacity_hana_data = 64
#disk_volume_iops_hana_data =
lvm_enable_hana_data = true // if false, then disk volume count should be 1
lvm_pv_data_alignment_hana_data = "1M" //default 1MiB offset from disk start before first LVM PV Physical Extent.
lvm_vg_data_alignment_hana_data = "1M" //default 1MiB offset from disk start before first LVM VG Physical Extent.
lvm_vg_physical_extent_size_hana_data = "4M" //default 4MiB, difficult to change once set. Akin to Physical Block Size.
lvm_lv_stripe_size_hana_data = "64K" //default 64KiB. Akin to Virtualized Block Size.
filesystem_hana_data = "xfs"
#physical_partition_filesystem_block_size_hana_data = "4k" // only if LVM is set to false; if XFS then only 4k value allowed otherwise will be overridden (see README about XFS and Page Size)

disk_volume_count_hana_log = 3
disk_volume_type_hana_log = "P10"
disk_volume_capacity_hana_log = 128
#disk_volume_iops_hana_log =
lvm_enable_hana_log = true // if false, then disk volume count should be 1
lvm_pv_data_alignment_hana_log = "1M" //default 1MiB offset from disk start before first LVM PV Physical Extent.
lvm_vg_data_alignment_hana_log = "1M" //default 1MiB offset from disk start before first LVM VG Physical Extent.
lvm_vg_physical_extent_size_hana_log = "4M" //default 4MiB, difficult to change once set. Akin to Physical Block Size.
lvm_lv_stripe_size_hana_log = "64K" //default 64KiB. Akin to Virtualized Block Size.
filesystem_hana_log = "xfs"
#physical_partition_filesystem_block_size_hana_log = "4k" // only if LVM is set to false; if XFS then only 4k value allowed otherwise will be overridden (see README about XFS and Page Size)

disk_volume_count_hana_shared = 1
disk_volume_type_hana_shared = "P15" // Uses Burst IOPS for storage. May increase costs if there is consistent heavy usage (e.g. longer than 30mins burst, such as 200GB+ DB Backup Restore)
disk_volume_capacity_hana_shared = 256
#disk_volume_iops_hana_shared =
lvm_enable_hana_shared = false // if false, then disk volume count should be 1
#lvm_pv_data_alignment_hana_shared = "1M" //default 1MiB offset from disk start before first LVM PV Physical Extent.
#lvm_vg_data_alignment_hana_shared = "1M" //default 1MiB offset from disk start before first LVM VG Physical Extent.
#lvm_vg_physical_extent_size_hana_shared = "4M" //default 4MiB, difficult to change once set. Akin to Physical Block Size.
#lvm_lv_stripe_size_hana_shared = "64K" //default 64KiB. Akin to Virtualized Block Size.
filesystem_hana_shared = "xfs"
physical_partition_filesystem_block_size_hana_shared = "4k" // only if LVM is set to false; if XFS then only 4k value allowed otherwise will be overridden (see README about XFS and Page Size)

disk_volume_count_anydb = 0

disk_volume_count_usr_sap = 1 // max of 1
disk_volume_type_usr_sap = "E20"
disk_volume_capacity_usr_sap = 512 // bad sizing, but use this so each drive size is unique
filesystem_usr_sap = "xfs"

disk_volume_count_sapmnt = 1 // max of 1
disk_volume_type_sapmnt = "E4"
disk_volume_capacity_sapmnt = 32 // bad sizing, but use this so each drive size is unique
filesystem_sapmnt = "xfs"

#disk_swapfile_size_gb = 2 // not required if disk volume set
disk_volume_count_swap = 1 // max of 1
disk_volume_type_swap = "E3"
disk_volume_capacity_swap = 16 // bad sizing, but use this so each drive size is unique
filesystem_swap = "xfs"
storage_definition = [
{
name = "hana_data"
mountpoint = "/hana/data"
disk_count = 4
disk_size = 64
disk_type = "P6"
#disk_iops =
filesystem_type = "xfs"
#lvm_lv_name =
#lvm_lv_stripes =
#lvm_lv_stripe_size =
#lvm_vg_name =
#lvm_vg_options =
#lvm_vg_physical_extent_size =
#lvm_pv_device =
#lvm_pv_options =
#nfs_path =
#nfs_server =
#nfs_filesystem_type =
#nfs_mount_options =
},
{
name = "hana_log"
mountpoint = "/hana/log"
disk_count = 3
disk_size = 128
disk_type = "P10"
filesystem_type = "xfs"
},
{
name = "hana_shared"
mountpoint = "/hana/shared"
disk_size = 256
disk_type = "P15"
filesystem_type = "xfs"
},
{
name = "usr_sap"
mountpoint = "/usr/sap"
disk_size = 128
disk_type = "E10"
filesystem_type = "xfs"
},
{
name = "sapmnt"
mountpoint = "/sapmnt"
disk_size = 128
disk_type = "E10"
filesystem_type = "xfs"
},
{
name = "swap"
mountpoint = "/swap"
disk_size = 32
disk_type = "E4"
filesystem_type = "swap"
},
{
name = "software"
mountpoint = "/software"
disk_size = 128
disk_type = "E10"
filesystem_type = "xfs"
}
]
}

}

}
}

}
92 changes: 52 additions & 40 deletions sap_ecc_ibmdb2_single_node_install/msazure_vm/variable_map_hosts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,61 @@ variable "map_host_specifications" {

small_32vcpu = {

ecc01 = { // Hostname
ecc01 = { // Hostname
vm_instance = "Standard_D32s_v5"

// N.B. all capacities must be different from each other, due to Shell loop searching based on capacity GB

disk_volume_count_hana_data = 0

disk_volume_count_hana_log = 0

disk_volume_count_hana_shared = 0

disk_volume_count_anydb = 1
disk_volume_type_anydb = "P20" // Uses Burst IOPS for storage. May increase costs if there is consistent heavy usage (e.g. longer than 30mins burst, such as 200GB+ DB Backup Restore)
disk_volume_capacity_anydb = 512
#disk_volume_iops_anydb =
lvm_enable_anydb = false // if false, then disk volume count should be 1
#lvm_pv_data_alignment_anydb = "1M" //default 1MiB offset from disk start before first LVM PV Physical Extent.
#lvm_vg_data_alignment_anydb = "1M" //default 1MiB offset from disk start before first LVM VG Physical Extent.
#lvm_vg_physical_extent_size_anydb = "4M" //default 4MiB, difficult to change once set. Akin to Physical Block Size.
#lvm_lv_stripe_size_anydb = "64K" //default 64KiB. Akin to Virtualized Block Size.
filesystem_mount_path_anydb = "/db2"
filesystem_anydb = "xfs"
physical_partition_filesystem_block_size_anydb = "4k" // only if LVM is set to false; if XFS then only 4k value allowed otherwise will be overridden (see README about XFS and Page Size)

disk_volume_count_usr_sap = 1 // max of 1
disk_volume_type_usr_sap = "E15"
disk_volume_capacity_usr_sap = 256
filesystem_usr_sap = "xfs"

disk_volume_count_sapmnt = 1 // max of 1
disk_volume_type_sapmnt = "E6"
disk_volume_capacity_sapmnt = 64 // bad sizing, but use this so each drive size is unique
filesystem_sapmnt = "xfs"

#disk_swapfile_size_gb = 2 // not required if disk volume set
disk_volume_count_swap = 1 // max of 1
disk_volume_type_swap = "E10"
disk_volume_capacity_swap = 128 // minimum 128GB swap for IBM DB2 LUW
filesystem_swap = "xfs"
storage_definition = [
{
name = "db2"
mountpoint = "/db2"
disk_size = 512
disk_type = "P20"
#disk_iops =
filesystem_type = "xfs"
#lvm_lv_name =
#lvm_lv_stripes =
#lvm_lv_stripe_size =
#lvm_vg_name =
#lvm_vg_options =
#lvm_vg_physical_extent_size =
#lvm_pv_device =
#lvm_pv_options =
#nfs_path =
#nfs_server =
#nfs_filesystem_type =
#nfs_mount_options =
},
{
name = "usr_sap"
mountpoint = "/usr/sap"
disk_size = 128
disk_type = "E10"
filesystem_type = "xfs"
},
{
name = "sapmnt"
mountpoint = "/sapmnt"
disk_size = 128
disk_type = "E10"
filesystem_type = "xfs"
},
{
name = "swap"
mountpoint = "/swap"
disk_size = 256 // minimum 128GB swap for IBM DB2 LUW
disk_type = "E15"
filesystem_type = "swap"
},
{
name = "software"
mountpoint = "/software"
disk_size = 128
disk_type = "E10"
filesystem_type = "xfs"
}
]
}

}

}
}

}
Loading

0 comments on commit 5978337

Please sign in to comment.