Skip to content

Commit f2b2f55

Browse files
committed
nfs share
1 parent 2075942 commit f2b2f55

File tree

1 file changed

+81
-4
lines changed

1 file changed

+81
-4
lines changed

README.md

Lines changed: 81 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ Create a snapshot from adminVM OS disk. If you have snapshot of adminVM, skip th
246246
- Open Azure portal, stop adminVM.
247247
- Create a snapshot from OS disk, make sure you are selecting the right availability zone, see above table.
248248
249+
Keep the snapshot, you will use it for scaling.
250+
249251
Create VMs for Forms and Reports replicas based on the snapshot:
250252
251253
1. Create a disk from the snapshot.
@@ -1118,23 +1120,98 @@ The following table lists some difference between two approaches:
11181120
11191121
| Difference | [Use a pre-defined backup machine](#use-a-pre-defined-backup-machine) | [Use Azure Site Recovery](#use-azure-site-recovery) |
11201122
|------------|------------|------------|
1121-
| Share domain configuration | YES.<br> Use Azure NFS File share. | NO. |
1123+
| Share domain configuration | Yes.<br> Use Azure NFS File share. | No. |
11221124
| Auxiliary Azure Services | Azure Automation Account for automation. | Azure Site Recovery for Azure VM Zone to Zone recovery. <br> Azure Automation Account for automation. |
11231125
| Additional infrastructure | Azure NFS File Share for shared domain configuration. <br> Azure Virtual Machine, Azure Network Interface and Azure Disk for backup host. | No. |
11241126
| RTO | 3-9 min. <br> Need not shutdown the primary machine: 3-5 min. <br> Have to shutdown the primary machine: 8-9 min. | 8-20 min.<br> Need not shutdown the primary machine: 8-12 min. <br> Have to shutdown the primary machine: 15-20 min. |
1125-
| Pros and Cons | **Pros**:<br> 1. Save time to provision a new machine. <br> **Cons**: <br> 1. Domain configuration in NFS share may cause longer network latency and effect the performance of Admin Server. <br>2. Extra cost for the pre-defined machine. | **Pros**:<br> 1. No additional infrastructure. 2. Leverage ASR to backup and protect the running machine. <br> **Cons**: <br> 1. Takes longer to failover as it has to provison target resources. 2. Extra cost for ASR. |
1127+
| Pros and Cons | **Pros**:<br> 1. Save time to provision a new machine. <br> **Cons**: <br> 1. Domain configuration in NFS share may cause longer network latency and effect the performance of Admin Server. <br>2. Extra cost for the pre-defined machine. | **Pros**:<br> 1. No additional infrastructure. <br>2. Leverage ASR to backup and protect the running machine. <br> **Cons**: <br> 1. Takes longer to failover as it has to provison target resources. 2. Extra cost for ASR. |
1128+
1129+
To move on, make sure you have enable secondary IP for Admin Server, see [Configure Virtual IP for Admin Server](#configure-virtual-ip-for-admin-server).
11261130
11271131
### Use a pre-defined backup machine
11281132
11291133
To make sure the domain configuration is the same in both machines, this approach move the domain configuration to shared storage, Azure File NFS share.
11301134
1131-
Let's create an Azure Storage Account and NFS share from Azure Portal:
1135+
#### Create NFS share
1136+
1137+
Let's create an Azure Storage Account and NFS share from Azure Portal, you must select **Premium** sku to enable NFS share.
1138+
1139+
- Expand the portal menu and select Create a resource.
1140+
- Select Storage and Storage account.
1141+
- Basics
1142+
- Create a new resource group or select your resource group.
1143+
- Input storage account name, e.g. `stgwlsdomain`.
1144+
- Region: East US
1145+
- Performance: Premium
1146+
- Premium account type: File share
1147+
- Networking
1148+
- Connectivity method: Private endpoint
1149+
- Add Private endpoint
1150+
- Name: stg-wls-privateendpoint
1151+
- Storage sub-resource: file
1152+
- Networking:
1153+
- Virtual network: select the vnet of Forms and Reports clusters
1154+
- Subnet: select the subnet of Forms and Reports clusters
1155+
- Private DNS integration
1156+
- Integrate with private DNS zone: yes
1157+
- Private DNS Zone: select New DNS Zone.
1158+
- Click OK
1159+
- Data protection
1160+
- Enable soft delete for file share.
1161+
- Click **Review + create**
1162+
1163+
After the deployment finishes, you have enable the private access from your WebLogic machines to the storage account.
1164+
1165+
Let's create the NFS share.
1166+
1167+
- Open your storage account created with above steps from Azure Portal.
1168+
- Select Data storage → File shares → Add file share
1169+
- Name: `wlsdomain`
1170+
- Provisioned capacity: 100GiB
1171+
- Protocol: NFS
1172+
- Root Squash: No Root Squash
1173+
- Click Create
1174+
1175+
After the NFS share deployment completes, you are able to mount it to adminVM.
1176+
1177+
#### Mount NFS share to adminVM
1178+
1179+
This sample saves the domain configuration in `/u02`. You will move all the data in this directory to NFS share. Before you move the data, you are required to back up the data in the directory and then create a mount point with directory `/u02`. To avoid conflict between the mounted file system and the OS disk, let's delete the directory before mounting the NFS share.
1180+
1181+
- SSH to adminVM with command `ssh weblogic@adminVM`, switch to `root` user `sudo su -`
1182+
- Stop Admin server and node manager
1183+
1184+
```bash
1185+
sudo systemctl stop wls_nodemanager
1186+
sudo systemctl stop wls_admin
1187+
kill -9 `ps -ef | grep 'Dweblogic.Name=admin' | grep -v grep | awk '{print $2}'`
1188+
```
1189+
1190+
- Bake up domain configuration and remove `/u02`
1191+
1192+
```bash
1193+
zip -r /u01/oracle/u02.zip /u02
1194+
1195+
rm /u02 -f -r
1196+
```
11321197
1133-
-
1198+
- Mount NFS share. Install nfs-utils.
11341199
1200+
```bash
1201+
sudo yum update
1202+
sudo yum install -y nfs-utils
1203+
```
11351204
1205+
Edit `/etc/fstab` and add a mount point. Replace the variable value with yours.
11361206
1207+
```bash
1208+
storageAccountName=stgwlsdomain
1209+
nfsShareName=wlsdomain
1210+
mkdir /u02
1211+
echo "${storageAccountName}.file.core.windows.net:/${storageAccountName}/wlsdomain /u02 nfs defaults 0 0" >> /etc/fstab
11371212
1213+
mount /u02
1214+
```
11381215
11391216
### Use Azure Site Recovery
11401217

0 commit comments

Comments
 (0)