This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
aix:vios_ssp [2023/08/16 22:56] manu |
aix:vios_ssp [2023/08/16 23:31] (current) manu [Convert a LU thick to thin in a SSP] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Using Shared Storage Pools on VIOS ====== | ====== Using Shared Storage Pools on VIOS ====== | ||
+ | |||
+ | https://github.com/nigelargriffiths/Shared-Storage-Pool-Tools | ||
+ | |||
+ | https://www.ibm.com/support/pages/shared-storage-pool-ssp-best-practice | ||
So here is a quick one line script "ncluster" | So here is a quick one line script "ncluster" | ||
Line 266: | Line 270: | ||
In the folder | In the folder | ||
/var/vio/SSP/ | /var/vio/SSP/ | ||
+ | |||
+ | ===== Convert a LU thick to thin in a SSP ===== | ||
+ | |||
+ | Use nslim ... | ||
+ | |||
+ | https://www.ibm.com/support/pages/shared-storage-pools-hands-fun-virtual-disks-lu-example | ||
+ | |||
+ | <code> | ||
+ | $ ./nslim -? | ||
+ | Usage: ./nslim (v4) is a filter style program using stdin & stdout | ||
+ | It will thinly write a file (only copy non-zero blocks) | ||
+ | It uses 1MB blocks | ||
+ | If a block is zero-filled then it is skipped using lseek() | ||
+ | If a block has data then it will write() the block unchanged | ||
+ | Example: | ||
+ | ./nslim <AIX.lu >SSP-LU-name | ||
+ | Flags: | ||
+ | -v for verbose output for every block you get a W=write or .=lseek on stderr | ||
+ | -V for verbose output on each GB you get count of written or skipped blocks | ||
+ | ./nslim -v <AIX.lu >SSP-LU-name | ||
+ | this gives you visual feedback on progress | ||
+ | -t like verbose but does NOT actually write anything to stdout | ||
+ | this lets you passively see the mix of used and unused blocks | ||
+ | ./nslim -t <AIX.lu | ||
+ | -h or -? outputs this helpful message! | ||
+ | Warning: | ||
+ | Get the redirection wrong and you will destroy your LU data | ||
+ | </code> |