Skip to content

Commit 2bf5807

Browse files
Apply suggestions from code review
Co-authored-by: Alex Moreno <[email protected]>
1 parent 3fd0ae7 commit 2bf5807

File tree

4 files changed

+38
-38
lines changed

4 files changed

+38
-38
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ often repeated and in need of automation.
114114
- [Security validation](zos_management/zosmf_security_configuration_assistant)
115115
- [Security audit](zos_management/zosmf_security_configuration_assistant)
116116
- [Security provision](zos_management/zosmf_security_configuration_assistant)
117-
- [Shrink ZFS and see full verbose](zos_concepts/zfsadm/shrink_zfs_different_size_and_verbose)
117+
- [Shrink ZFS and see full verbose output](zos_concepts/zfsadm/shrink_zfs_different_size_and_verbose)
118118

119119

120120
## Blogs

zos_concepts/zfsadm/grow_zfs_fetch_full_trace_back/grow_zfs_fetch_trace_back.yml

+17-17
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
tasks:
3636
# ##########################################################################
37-
# Generate a temporary data set names
37+
# Generate temporary data set names
3838
# ##########################################################################
3939
- name: Create temp data set name
4040
command: "mvstmp {{ ansible_user | upper }}"
@@ -53,19 +53,19 @@
5353
# Modules: zos_data_set, zos_zfs_resize, zos_fetch
5454
# ##########################################################################
5555
# +-------------------------------------------------------------------------
56-
# | - Using zos_data_set, create zfs data set {{ zfs_data_set }}.
57-
# | - Using zos_mount, mount zfs {{ zfs_data_set }} on {{ mount_point }}.
58-
# | - Using zos_data_set, create pds data set to generate a member.
59-
# | - Using zos_data_set, create a member to get the full trace back.
56+
# | - Using zos_data_set, create zFS data set {{ zfs_data_set }}.
57+
# | - Using zos_mount, mount zFS {{ zfs_data_set }} on {{ mount_point }}.
58+
# | - Using zos_data_set, create a PDSE.
59+
# | - Using zos_data_set, create a member in the PDSE to get the full trace back.
6060
# | - Using zos_zfs_resize, resize data set {{ zfs_data_set }}.
6161
# | - Using zos_fetch, to fetch the trace back member of the grow operation.
6262
# +-------------------------------------------------------------------------
6363

6464
# ##########################################################################
65-
# Create and Mount ZFS data set.
65+
# Create and mount zFS data set.
6666
# ##########################################################################
6767

68-
- name: "Create ZFS."
68+
- name: "Create zFS."
6969
zos_data_set:
7070
name: "{{ zfs_data_set }}"
7171
type: zfs
@@ -78,7 +78,7 @@
7878
path: "{{ mount_point }}"
7979
state: directory
8080

81-
- name: "Mount ZFS data set."
81+
- name: "Mount zFS data set."
8282
zos_mount:
8383
src: "{{ zfs_data_set | upper }}"
8484
path: "{{ mount_point }}"
@@ -94,10 +94,10 @@
9494
msg: "{{ df_output.stdout_lines }}"
9595

9696
# ##########################################################################
97-
# Create PDS data set and member for get the full trace back.
97+
# Create PDSE and member for the full trace back.
9898
# ##########################################################################
9999

100-
- name: "Create data set to trace."
100+
- name: "Create data set that will contain the trace back."
101101
zos_data_set:
102102
name: "{{ trace_back_data_set }}"
103103
record_length: 400
@@ -106,25 +106,25 @@
106106
space_type: k
107107
space_primary: 42000
108108

109-
- name: "Create member of data set to trace."
109+
- name: "Create member for the trace."
110110
zos_data_set:
111111
name: "{{ trace_back_data_set_mem }}"
112112
type: member
113113

114114
# ##########################################################################
115-
# Fill up ZFS aggregate with random data.
115+
# Fill up zFS aggregate with random data.
116116
# ##########################################################################
117117

118-
- name: "Write 1 million bytes to ZFS."
118+
- name: "Write 1 million bytes to zFS."
119119
shell: head -c 1000000 /dev/urandom > {{ mount_point }}/test.txt
120120

121121
# ##########################################################################
122-
# Grow ZFS aggregate.
122+
# Grow zFS aggregate.
123123
# See the full stdout.
124124
# Fetch the full trace back
125125
# ##########################################################################
126126

127-
- name: "Grow ZFS aggregate and get trace back on data set {{ trace_back_data_set }}."
127+
- name: "Grow zFS aggregate and get trace back on data set {{ trace_back_data_set }}."
128128
zos_zfs_resize:
129129
target: "{{ zfs_data_set }}"
130130
size: "{{ aggr_growth_size }}"
@@ -149,10 +149,10 @@
149149
# clean up - unmount and delete ZFS data sets
150150
# ##########################################################################
151151

152-
- name: Unmount ZFS data set.
152+
- name: Unmount zFS data set.
153153
command: "/usr/sbin/unmount {{ mount_point }}"
154154

155-
- name: Delete ZFS data set.
155+
- name: Delete zFS data set.
156156
zos_data_set:
157157
name: "{{ zfs_data_set }}"
158158
state: absent

zos_concepts/zfsadm/shrink_zfs_different_size_and_verbose/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Create, shrink ZFS aggregate with different size and see verbose.
2-
This playbook demonstrates how to grow a ZFS aggregate on z/OS using Red Hat
1+
# Create and shrink a zFS aggregate with different sizes and see verbose output.
2+
This playbook demonstrates how to grow a zFS aggregate on z/OS using Red Hat
33
Ansible Certified Content for IBM Z.
44

55
This playbook uses:

zos_concepts/zfsadm/shrink_zfs_different_size_and_verbose/shrink_zfs_different_size_and_verbose.yml

+18-18
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
###############################################################################
44

55
###############################################################################
6-
# This sample playbook demonstrates how create a zfs aggregate, mount a zfs
7-
# aggregate shrink the zfs aggregate with a size on megabytes and shrink a zfs
8-
# aggregate on kilobytes with verbose mode to get the full trace back.
6+
# This sample playbook demonstrates how to create a zFS aggregate, mount it,
7+
# shrink it with different size options,
8+
# and use the module's verbose mode to get the full trace back.
99
#
1010
# Usage:
1111
# ansible-playbook -i <inventory> <playbook>
@@ -48,17 +48,17 @@
4848
# Modules: zos_data_set, zos_zfs_resize
4949
# ##########################################################################
5050
# +-------------------------------------------------------------------------
51-
# | - Using zos_data_set, create zfs data set {{ zfs_data_set }}.
52-
# | - Using zos_mount, mount zfs {{ zfs_data_set }} on {{ mount_point }}.
53-
# | - Using zos_zfs_resize, resize data set {{ zfs_data_set }} on m size.
51+
# | - Using zos_data_set, create zFS data set {{ zfs_data_set }}.
52+
# | - Using zos_mount, mount zFS {{ zfs_data_set }} on {{ mount_point }}.
53+
# | - Using zos_zfs_resize, resize data set {{ zfs_data_set }} using the space_type option with m.
5454
# | - Using zos_zfs_resize, resize data set {{ zfs_data_set }}.
5555
# +-------------------------------------------------------------------------
5656

5757
# ##########################################################################
58-
# Create and Mount ZFS data set.
58+
# Create and mount zFS data set.
5959
# ##########################################################################
6060

61-
- name: "Create ZFS."
61+
- name: "Create zFS."
6262
zos_data_set:
6363
name: "{{ zfs_data_set }}"
6464
type: zfs
@@ -71,7 +71,7 @@
7171
path: "{{ mount_point }}"
7272
state: directory
7373

74-
- name: "Mount ZFS data set."
74+
- name: "Mount zFS data set."
7575
zos_mount:
7676
src: "{{ zfs_data_set | upper }}"
7777
path: "{{ mount_point }}"
@@ -87,18 +87,18 @@
8787
msg: "{{ df_output.stdout_lines }}"
8888

8989
# ##########################################################################
90-
# Fill up ZFS aggregate with random data.
90+
# Fill up zFS aggregate with random data.
9191
# ##########################################################################
9292

93-
- name: "Write 1 million bytes to ZFS."
93+
- name: "Write 1 million bytes to zFS."
9494
shell: head -c 1000000 /dev/urandom > {{ mount_point }}/test.txt
9595

9696
# ##########################################################################
97-
# Shrink ZFS aggregate on tracks size.
98-
# Shrink ZFS aggregate with verbose mode.
97+
# Shrink zFS aggregate by changing its number of tracks.
98+
# Shrink zFS aggregate with verbose mode enabled.
9999
# ##########################################################################
100100

101-
- name: "Shrink ZFS aggregate data set {{ zfs_data_set }} on track size."
101+
- name: "Shrink zFS aggregate data set {{ zfs_data_set }} on track size."
102102
zos_zfs_resize:
103103
target: "{{ zfs_data_set }}"
104104
size: "{{ aggr_shrink_size_on_m }}"
@@ -109,7 +109,7 @@
109109
debug:
110110
msg: "{{ shrink_output }}"
111111

112-
- name: "Shrink ZFS aggregate data set {{ zfs_data_set }} and verbose mode."
112+
- name: "Shrink zFS aggregate data set {{ zfs_data_set }} and enable verbose mode."
113113
zos_zfs_resize:
114114
target: "{{ zfs_data_set }}"
115115
size: "{{ aggr_shrink_size }}"
@@ -121,13 +121,13 @@
121121
msg: "{{ shrink_output }}"
122122

123123
# ##########################################################################
124-
# clean up - unmount and delete ZFS data sets
124+
# clean up - unmount and delete zFS data sets
125125
# ##########################################################################
126126

127-
- name: Unmount ZFS data set.
127+
- name: Unmount zFS data set.
128128
command: "/usr/sbin/unmount {{ mount_point }}"
129129

130-
- name: Delete ZFS data set.
130+
- name: Delete zFS data set.
131131
zos_data_set:
132132
name: "{{ zfs_data_set }}"
133133
state: absent

0 commit comments

Comments
 (0)