Page MenuHomeDevCentral

Create ZFS dataset for PostgreSQL data
ClosedPublic

Authored by dereckson on Sun, Jul 5, 13:11.

Details

Summary

The recordsize option aligns ZFS blocks with PostgreSQL page size.

Test Plan

Applied on WindRiver.

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
dereckson edited the summary of this revision. (Show Details)
dereckson edited the test plan for this revision. (Show Details)

Test on WindRiver

After upgrade per Operations grimoire procedure:

WindRiver / tmp.sls matches line 1-43 of roles/dbserver-pgsql/server/content.sls
$ head -n42 roles/dbserver-pgsql/server/content.sls > tmp.sls
$ salt-call --local state.apply tmp test=True                    
local:
----------
          ID: postgresql_data_zfs_dataset
    Function: zfs.filesystem_present
        Name: arcology/postgresql/data18
      Result: True
     Comment: filesystem arcology/postgresql/data18 is uptodate
     Started: 13:18:40.130885
    Duration: 89.456 ms
     Changes:   
----------
          ID: postgresql_data_permissions
    Function: file.directory
        Name: /var/db/postgres/data18
      Result: True
     Comment: The directory /var/db/postgres/data18 is in the correct state
     Started: 13:18:40.228514
    Duration: 19.2 ms
     Changes:   
----------
          ID: /var/db/postgres/data
    Function: file.symlink
      Result: True
     Comment: The symlink /var/db/postgres/data is present
     Started: 13:18:40.247953
    Duration: 1.81 ms
     Changes:   

Summary for local
------------
Succeeded: 3
Failed:    0
------------
Total states run:     3
Total run time: 110.466 ms
This revision is now accepted and ready to land.Sun, Jul 5, 13:25
This revision was automatically updated to reflect the committed changes.