Topics: AIX, Backup & restore, NIM, System Admin
Creating an image_data resource without preserving mirrors for use with NIM
Transfer the /image.data file to the NIM master and store it in the location you desire. It is a good idea to place the file, or any NIM resource for that matter, in a descriptive manor, for example: /export/nim/image_data. This will ensure you can easily identify your "image_data" NIM resource file locations, should you have the need for multiple "image_data" resources.
Make sure your image.data filenames are descriptive also. A common way to name the file would be in relation to your clientname, for example: server1_image_data.
Run the nim command, or use smitty and the fast path 'nim_mkres' to define the file that you have edited using the steps above:
From command line on the NIM master:
# nim -o define -t image_data -a server=master -a location=/export/nim/image_data/server1_image_data -a comments="image.data file with broken mirror for server1" server1_image_dataNOTE: "server1_image_data" is the name given to the 'image_data' resource.
Using smit on the NIM master:
# smit nim_mkresSelect 'image_data' as the Resource Type. Then complete the following screen:
Run the following command to make sure the 'image_data' resource was created:Define a Resource Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] * Resource Name [server1_image_data] * Resource Type image_data * Server of Resource [master] * Location of Resource [/export/nim/image_data/server1_image_data] Comments [] Source for Replication []
# lsnim -t image_dataThe command will give output similar to the following:
Run the following command to get information about the 'image_data' resource:# lsnim -t image_data server1_image_data resources image_data
# lsnim -l server1_image_data server1_image_data: class = resources type = image_data Rstate = ready for use prev_state = unavailable for use location = /export/nim/image_data/server1_image_data alloc_count = 0 server = master
If you found this useful, here's more on the same topic(s) in our blog:
- Linux Extended File System Attributes
- Increase the size of a tmpfs file system
- Change the PuTTY title
- Finding files with no defined user or group
- Line numbers in VI
Interested in learning more?