Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[AIX] AIX boot automatically mounts NFS shares

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

AIX boot automatically mounts NFS shares

When Oracle is built on the AIX system for centralized backup, it may be necessary to backup the data to the storage device by connecting the Backup server to mount the NFS share.

In Linux environment, if you want to automatically mount NFS on boot, you only need to add the corresponding record in / etc/fstab.

In the AIX system, even if the corresponding mount information is added to the corresponding directory / etc/filesystems and the mount parameter is set to true, it is sometimes difficult to boot and mount automatically.

Through experiments, this paper solves the problem of AIX mounting NFS sharing error: Vmount:Not owner, and realizes the automatic mount Linux NFS sharing under the AIX environment.

[experimental environment]

NFS client operating system: AIX 5300-09

NFS server operating system: RHEL 5.4

[experimental background]

When you perform a centralized backup of the oracle database, the Backup Server (rhel) connects to the disk array. Then share the storage space through NFS for each database server to store backup files.

Each database server (AIX system) mounts the corresponding NFS share as the client, so that the backup files can be stored on the array through Backup Server during backup.

Different from the Linux system, when AIX is used as a NFS client and NFS shares are mounted, the default network parameters of AIX need to be adjusted.

If you want to boot, you must write the network parameter values to nextboot file.

[experimental process]

1. View NFS shares

Showmount-e rhel152 | grep aix227

The location of shared storage is rhel152:/backup/cuug02/storage03

2. Edit / etc/filesystems

Vi / etc/filesystems

Mount=true is booted and mounted automatically.

3. Manual mount error report

Mount / backup

Huh? As long as you make a similar configuration in the linux system, you can mount it successfully, but why not in the AIX system?

Is there something wrong with the editor's configuration?

4. Use smit to view the appropriate configuration

To verify the configuration information of NFS, delete the information added in / etc/filesystems and reconfigure it using smit nfs

In the following figure, the accompanying configuration information

/ etc/filesystems entry will mount the directory on system restart option is set to yes

That is, power on and mount automatically.

Enter to display failed after configuration.

Still reporting an error, Not owner

5. Adjust the default network parameters

Check the relevant information. If this error message appears, you need to adjust the default network parameters of AIX.

Nfso-o nfs_use_reserved_ports=1

After the adjustment, manually mount the no error message again.

Mount / backup

Df-g view, NFS server shared directory has been successfully mounted to the local file system

6. Restart AIX system verification

After the above manual mount is successful, you still need to restart the AIX system to see if it can be automatically mounted on boot.

Shutdown-Fr restart AIX system

7. Manual mount fails again after restart

After restart, check that NFS is not mounted successfully. Manual mount fails, but the same error is still reported.

Smit nfs looks at the relevant information. The boot mount option is indeed yes.

From the above error message, we can see that the network parameters need to be adjusted.

If you need to adjust before each mount, you will not be able to boot and mount automatically.

Can you set this parameter to take effect permanently?

8. Check the parameters related to nfso

Man nfso views the nfso command manual where the-o and-p parameters are described as follows

-o Tunable [= NewValue]

Displays the value or sets Tunable to NewValue. If a tunable needs to be changed (the specified value is different

Than current value), and is of type Bosboot or Reboot, or if it is of type Incremental and its current value is bigger

Than the specified value, and-r is not used in combination, it will not be changed but a warning displays instead.

When-r is used in combination without a new value, the nextboot value for the Tunable displays. When-p is used in

Combination without a NewValue, a value displays only if the current and next boot values for the Tunable are the

Same. Otherwise NONE displays as the value.

-p

Makes changes apply to both current and reboot values, when used in combination with-o,-d or-D, that is, it turns

On the updating of the / etc/tunables/nextboot file in addition to the updating of the current value. These

Combinations cannot be used on Reboot and Bosboot type parameters because their current value cannot be changed.

When used with-an or-o without specifying a new value, values are displayed only if the current and next boot values

For a parameter are the same. Otherwise NONE displays as the value.

As you can see from the above, using the-p parameter combined with-o or-d,-D, you can not only update the current value, but also write to the / etc/tunables/nextboot file, and modify the current value and the value after reboot.

9. Reset network parameters

Nfso-p-o nfs_use_reserved_ports=1

The prompt is displayed and written to nextboot file.

Check / etc/tunables/nextboot to add the parameters we just set

Manual mount. If the NFS is mounted successfully, no error is reported.

10. Restart the verification and mount it automatically.

Shutdonw-Fr restart AIX system check again

The automatic mount of NFS is successful, and the automatic mount of NFS is realized when the AIX system is started.

11. View network parameters and nextbootfile

Looking at the / etc/tunables/nextboot file, we found the parameters we adjusted to install oracle and the nfs_use_reserved_ports parameters we just set to mount nfs

Use the nfso-L command to view the network parameters graphically

The network parameter nfs_use_reserved_ports parameter to be modified for mounting nfs. The current value is 1, and the default value is 0.

[root@aix227:/] # nfso-L

NAME CUR DEF BOOT MIN MAX UNIT TYPE

DEPENDENCIES

Portcheck 0 0 0 1 On/Off D

Udpchecksum 1 1 1 0 1 On/Off D

Nfs_socketsize 600000 600000 600000 40000 1280K Bytes D

Nfs_tcp_socketsize 600000 600000 600000 40000 1280K Bytes D

Nfs_setattr_error 0 0 0 1 On/Off D

Nfs_gather_threshold 4K 4K 4K 512 8K+1 Bytes D

Nfs_repeat_messages 0 0 0 1 On/Off D

Nfs_udp_duplicate_cache_size

5000 5000 5000 100000 Req I

Nfs_tcp_duplicate_cache_size

5000 5000 5000 100000 Req I

Nfs_server_base_priority 0 0 0 31 125 Pri D

Nfs_dynamic_retrans 1 1 1 0 1 On/Off D

Nfs_iopace_pages 0 0 0 64K-1 Pages D

Nfs_max_connections 0000 10000 Number D

Nfs_max_threads 3891 3891 3891 5 3891 Threads D

Nfs_use_reserved_ports 1 0 1 0 1 On/Off D

Nfs_device_specific_bufs 1 1 1 0 1 On/Off D

Nfs_server_clread 1 1 1 0 1 On/Off D

Nfs_rfc1323 0 0 0 1 On/Off D

Nfs_max_write_size 32K 32K 32K 512 64K Bytes D

Nfs_max_read_size 32K 32K 32K 512 64K Bytes D

Nfs_allow_all_signals 0 0 0 1 On/Off D

Nfs_v2_pdts 1 1 1 8 PDTs M

Nfs_v3_pdts 1 1 1 8 PDTs M

Nfs_v2_vm_bufs 10000 10000 10000 512 50000 Bufs I

Nfs_v3_vm_bufs 10000 10000 10000 512 50000 Bufs I

Nfs_securenfs_authtimeout 0 0 0 60 Seconds D

Nfs_v3_server_readdirplus 1 1 1 0 1 On/Off D

Lockd_debug_level 0 0 0 10 Level D

Statd_debug_level 0 0 0 10 Level D

Statd_max_threads 50 50 50 1 1000 Threads D

Nfs_v4_fail_over_timeout 00 00 3600 Seconds D

Utf8_validation 1 1 1 0 1 On/Off D

Nfs_v4_pdts 1 1 1 8 PDTs M

Nfs_v4_vm_bufs 10000 10000 10000 512 50000 Bufs I

Server_delegation 1 1 1 0 1 On/Off D

Nfs_auto_rbr_trigger 0 000-1 1m MB D

Client_delegation 1 1 1 0 1 On/Off D

N/a means parameter not supported by the current platform or kernel

Parameter types:

S = Static: cannot be changed

D = Dynamic: can be freely changed

B = Bosboot: can only be changed using bosboot and reboot

R = Reboot: can only be changed during reboot

C = Connect: changes are only effective for future socket connections

M = Mount: changes are only effective for future mountings

I = Incremental: can only be incremented

Value conventions:

K = Kilo: 2 ^ 10 G = Giga: 2 ^ 30 P = Peta: 2 ^ 50

M = Mega: 2 ^ 20 T = Tera: 2 ^ 40 E = Exa: 2 ^ 60

[root@aix227:/] #

[summary of experiments]

1. To mount NFS shares on AIX system, you need to set the default network parameter nfs_use_reserved_ ports value to 1. 0.

2. If you want to automatically mount NFS on AIX, you need not only to set mount=true in / etc/filesystems, but also to write nfs_use_reserved_ports=1 to nextboot file/etc/tunables/nextboot.

3. The default value of nfs_use_reserved_ports parameter in Linux system is 1. In the Aix system, the default value of this parameter is 0; therefore, you only need to configure / etc/fstab in the linux system to realize automatic mount on boot.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report