Skip to content

Commit

Permalink
fix: storage revision 5
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-freeman committed Jan 31, 2024
1 parent 61e3b87 commit 2384373
Show file tree
Hide file tree
Showing 19 changed files with 1,200 additions and 1,144 deletions.
131 changes: 66 additions & 65 deletions sap_bw4hana_single_node_install/gcp_ce_vm/variable_map_hosts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,73 +9,74 @@ variable "map_host_specifications" {

small_256gb = {

hana01 = {
virtual_machine_profile = "n2-highmem-32" // 32 vCPU, 256GB Memory

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

disk_volume_count_hana_data = 1
disk_volume_type_hana_data = "pd-ssd"
disk_volume_capacity_hana_data = 384
#disk_volume_iops_hana_data =
lvm_enable_hana_data = false // 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 = 1
disk_volume_type_hana_log = "pd-ssd"
disk_volume_capacity_hana_log = 128
#disk_volume_iops_hana_log =
lvm_enable_hana_log = false // 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 = "pd-balanced" // 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 = 320
#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 = 0 // max of 1
disk_volume_type_usr_sap = "pd-standard"
disk_volume_capacity_usr_sap = 64
filesystem_usr_sap = "xfs"

disk_volume_count_sapmnt = 0 // max of 1
disk_volume_type_sapmnt = "pd-standard"
disk_volume_capacity_sapmnt = 50
filesystem_sapmnt = "xfs"
nfs_boolean_sapmnt = false

#disk_swapfile_size_gb = 2 // not required if disk volume set
disk_volume_count_swap = 1 // max of 1
disk_volume_type_swap = "pd-standard"
disk_volume_capacity_swap = 32
filesystem_swap = "xfs"

disk_volume_type_software = "pd-standard"
disk_volume_capacity_software = 100
hana01 = { // Hostname
virtual_machine_profile = "n2-highmem-32" // 32 vCPU, 256GB Memory
storage_definition = [
{
name = "hana_data"
mountpoint = "/hana/data"
disk_size = 384
disk_type = "pd-ssd"
#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_size = 128
disk_type = "pd-ssd"
filesystem_type = "xfs"
},
{
name = "hana_shared"
mountpoint = "/hana/shared"
disk_size = 320
disk_type = "pd-balanced" // 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)
filesystem_type = "xfs"
},
{
name = "usr_sap"
mountpoint = "/usr/sap"
disk_size = 96
disk_type = "pd-standard"
filesystem_type = "xfs"
},
{
name = "sapmnt"
mountpoint = "/sapmnt"
disk_size = 96
disk_type = "pd-standard"
filesystem_type = "xfs"
},
{
name = "swap"
swap_path = "/swapfile"
disk_size = 2
filesystem_type = "swap"
},
{
name = "software"
mountpoint = "/software"
disk_size = 100
disk_type = "pd-standard"
filesystem_type = "xfs"
}
]
}

}

}
}

}

131 changes: 66 additions & 65 deletions sap_ecc_hana_single_node_install/gcp_ce_vm/variable_map_hosts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,73 +9,74 @@ variable "map_host_specifications" {

small_256gb = {

hana01 = {
virtual_machine_profile = "n2-highmem-32" // 32 vCPU, 256GB Memory

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

disk_volume_count_hana_data = 1
disk_volume_type_hana_data = "pd-ssd"
disk_volume_capacity_hana_data = 384
#disk_volume_iops_hana_data =
lvm_enable_hana_data = false // 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 = 1
disk_volume_type_hana_log = "pd-ssd"
disk_volume_capacity_hana_log = 128
#disk_volume_iops_hana_log =
lvm_enable_hana_log = false // 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 = "pd-balanced" // 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 = 320
#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 = 0 // max of 1
disk_volume_type_usr_sap = "pd-standard"
disk_volume_capacity_usr_sap = 64
filesystem_usr_sap = "xfs"

disk_volume_count_sapmnt = 0 // max of 1
disk_volume_type_sapmnt = "pd-standard"
disk_volume_capacity_sapmnt = 50
filesystem_sapmnt = "xfs"
nfs_boolean_sapmnt = false

#disk_swapfile_size_gb = 2 // not required if disk volume set
disk_volume_count_swap = 1 // max of 1
disk_volume_type_swap = "pd-standard"
disk_volume_capacity_swap = 32
filesystem_swap = "xfs"

disk_volume_type_software = "pd-standard"
disk_volume_capacity_software = 100
hana01 = { // Hostname
virtual_machine_profile = "n2-highmem-32" // 32 vCPU, 256GB Memory
storage_definition = [
{
name = "hana_data"
mountpoint = "/hana/data"
disk_size = 384
disk_type = "pd-ssd"
#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_size = 128
disk_type = "pd-ssd"
filesystem_type = "xfs"
},
{
name = "hana_shared"
mountpoint = "/hana/shared"
disk_size = 320
disk_type = "pd-balanced" // 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)
filesystem_type = "xfs"
},
{
name = "usr_sap"
mountpoint = "/usr/sap"
disk_size = 96
disk_type = "pd-standard"
filesystem_type = "xfs"
},
{
name = "sapmnt"
mountpoint = "/sapmnt"
disk_size = 96
disk_type = "pd-standard"
filesystem_type = "xfs"
},
{
name = "swap"
swap_path = "/swapfile"
disk_size = 2
filesystem_type = "swap"
},
{
name = "software"
mountpoint = "/software"
disk_size = 100
disk_type = "pd-standard"
filesystem_type = "xfs"
}
]
}

}

}
}

}

101 changes: 53 additions & 48 deletions sap_ecc_ibmdb2_single_node_install/gcp_ce_vm/variable_map_hosts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,61 @@ variable "map_host_specifications" {

small_32vcpu = {

ecc01 = { // Hostname
virtual_machine_profile = "n2-standard-32" // 32 vCPU, 128GB Memory

// 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 = 0

disk_volume_count_anydb = 2
disk_volume_type_anydb = "pd-standard" // 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 = 320
#disk_volume_iops_anydb =
lvm_enable_anydb = true // 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 = "pd-standard"
disk_volume_capacity_usr_sap = 256
filesystem_usr_sap = "xfs"

disk_volume_count_sapmnt = 1 // max of 1
disk_volume_type_sapmnt = "pd-standard"
disk_volume_capacity_sapmnt = 56
filesystem_sapmnt = "xfs"
nfs_boolean_sapmnt = true

#disk_swapfile_size_gb = 2 // not required if disk volume set
disk_volume_count_swap = 1 // max of 1
disk_volume_type_swap = "pd-standard"
disk_volume_capacity_swap = 64
filesystem_swap = "xfs"

disk_volume_type_software = "pd-standard"
disk_volume_capacity_software = 100
ecc01 = { // Hostname
virtual_machine_profile = "n2-standard-32" // 32 vCPU, 128GB Memory
storage_definition = [
{
name = "db2"
mountpoint = "/db2"
disk_count = 2
disk_size = 320
disk_type = "pd-standard" // 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_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 = 96
disk_type = "pd-standard"
filesystem_type = "xfs"
},
{
name = "sapmnt"
mountpoint = "/sapmnt"
disk_size = 96
disk_type = "pd-standard"
filesystem_type = "xfs"
},
{
name = "swap"
mountpoint = "/swap"
disk_size = 136 // minimum 128GB swap for IBM DB2 LUW
filesystem_type = "swap"
},
{
name = "software"
mountpoint = "/software"
disk_size = 100
disk_type = "pd-standard"
filesystem_type = "xfs"
}
]
}

}

}
}

}

Loading

0 comments on commit 2384373

Please sign in to comment.