Skip to content

Commit

Permalink
replace lun1 with lun0
Browse files Browse the repository at this point in the history
  • Loading branch information
craddm committed Nov 10, 2023
1 parent 4c17d2b commit 85aefc3
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#cloud-config

# We know that exactly one data disk will be attached to this VM and we currently start numbering from lun1
# We know that exactly one data disk will be attached to this VM and we currently start numbering from lun0
disk_setup:
/dev/disk/azure/scsi1/lun1:
/dev/disk/azure/scsi1/lun0:
table_type: gpt
layout: true
overwrite: true

fs_setup:
- device: /dev/disk/azure/scsi1/lun1
- device: /dev/disk/azure/scsi1/lun0
partition: auto
filesystem: ext4

mounts:
- [/dev/disk/azure/scsi1/lun1-part1, /datadrive, ext4, "defaults,nofail"]
- [/dev/disk/azure/scsi1/lun0-part1, /datadrive, ext4, "defaults,nofail"]

# Configure apt repositories
apt:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#cloud-config

# We know that exactly one data disk will be attached to this VM and we currently start numbering from lun1
# We know that exactly one data disk will be attached to this VM and we currently start numbering from lun0
disk_setup:
/dev/disk/azure/scsi1/lun1:
/dev/disk/azure/scsi1/lun0:
table_type: gpt
layout: true
overwrite: true

fs_setup:
- device: /dev/disk/azure/scsi1/lun1
- device: /dev/disk/azure/scsi1/lun0
partition: auto
filesystem: ext4

mounts:
- [/dev/disk/azure/scsi1/lun1-part1, /datadrive, ext4, "defaults,nofail"]
- [/dev/disk/azure/scsi1/lun0-part1, /datadrive, ext4, "defaults,nofail"]

# Configure apt repositories
apt:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,18 @@ packages:
package_update: true
package_upgrade: true

# We know that exactly one data disk will be attached to this VM and it will be attached as lun1
# We know that exactly one data disk will be attached to this VM and it will be attached as lun0
disk_setup:
/dev/disk/azure/scsi1/lun1:
/dev/disk/azure/scsi1/lun0:
table_type: gpt
layout: true
overwrite: true
fs_setup:
- device: /dev/disk/azure/scsi1/lun1
- device: /dev/disk/azure/scsi1/lun0
partition: auto
filesystem: ext4
mounts:
- [/dev/disk/azure/scsi1/lun1-part1, /data, ext4, "defaults,nofail"]
- [/dev/disk/azure/scsi1/lun0-part1, /data, ext4, "defaults,nofail"]

# Set hostname
fqdn: {{sre.webapps.codimd.fqdn}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,18 @@ packages:
package_update: true
package_upgrade: true

# We know that exactly one data disk will be attached to this VM and it will be attached as lun1
# We know that exactly one data disk will be attached to this VM and it will be attached as lun0
disk_setup:
/dev/disk/azure/scsi1/lun1:
/dev/disk/azure/scsi1/lun0:
table_type: gpt
layout: true
overwrite: true
fs_setup:
- device: /dev/disk/azure/scsi1/lun1
- device: /dev/disk/azure/scsi1/lun0
partition: auto
filesystem: ext4
mounts:
- [/dev/disk/azure/scsi1/lun1-part1, /data, ext4, "defaults,nofail"]
- [/dev/disk/azure/scsi1/lun0-part1, /data, ext4, "defaults,nofail"]

# Set hostname
fqdn: {{sre.webapps.gitlab.fqdn}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ apt:
source: "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main"
keyid: 7FCC7D46ACCC4CF8

# We know that exactly one data disk will be attached to this VM and it will therefore use lun1 as lun0 is the OS disk
# We know that exactly one data disk will be attached to this VM and it will therefore use lun0
disk_setup:
/dev/disk/azure/scsi1/lun1:
/dev/disk/azure/scsi1/lun0:
table_type: gpt
layout: true
overwrite: true

fs_setup:
- device: /dev/disk/azure/scsi1/lun1
- device: /dev/disk/azure/scsi1/lun0
partition: auto
filesystem: ext4

mounts:
- [/dev/disk/azure/scsi1/lun1-part1, /data, ext4, "defaults,nofail"]
- [/dev/disk/azure/scsi1/lun0-part1, /data, ext4, "defaults,nofail"]

write_files:
- path: "/etc/apt/apt.conf.d/00proxy"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
package_upgrade: false

disk_setup:
/dev/disk/azure/scsi1/lun1:
/dev/disk/azure/scsi1/lun0:
table_type: gpt
layout: true
overwrite: true

fs_setup:
- device: /dev/disk/azure/scsi1/lun1
- device: /dev/disk/azure/scsi1/lun0
filesystem: ext4
partition: auto

# Note that we do not include the blobfuse mounts here as these are controlled by systemd
mounts:
- ["/dev/disk/azure/scsi1/lun1-part1", /scratch, ext4, "rw,user,exec"]
- ["/dev/disk/azure/scsi1/lun0-part1", /scratch, ext4, "rw,user,exec"]
- ["{{sre.storage.userdata.account.name}}.file.core.windows.net:/{{sre.storage.userdata.account.name}}/shared", /shared, nfs, "_netdev,sec=sys"]
- ["{{sre.storage.userdata.account.name}}.file.core.windows.net:/{{sre.storage.userdata.account.name}}/home", /home, nfs, "_netdev,sec=sys"]

Expand Down

0 comments on commit 85aefc3

Please sign in to comment.