InfoScale™ 9.0 Solutions Guide - Linux
- Section I. Introducing Veritas InfoScale
- Section II. Solutions for Veritas InfoScale products
- Solutions for Veritas InfoScale products
- Solutions for Veritas InfoScale products
- Section III. Stack-level migration to IPv6 or dual stack
- Section IV. Improving database performance
- Overview of database accelerators
- Improving database performance with Veritas Concurrent I/O
- Improving database performance with atomic write I/O
- Section V. Using point-in-time copies
- Understanding point-in-time copy methods
- Backing up and recovering
- Preserving multiple point-in-time copies
- Online database backups
- Backing up on an off-host cluster file system
- Database recovery using Storage Checkpoints
- Backing up and recovering in a NetBackup environment
- Off-host processing
- Creating and refreshing test environments
- Creating point-in-time copies of files
- Section VI. Maximizing storage utilization
- Optimizing storage tiering with SmartTier
- Optimizing storage with Flexible Storage Sharing
- Optimizing storage tiering with SmartTier
- Section VII. Migrating data
- Understanding data migration
- Offline migration from LVM to VxVM
- Offline conversion of native file system to VxFS
- Online migration of a native file system to the VxFS file system
- Migrating a source file system to the VxFS file system over NFS v4
- VxFS features not available during online migration
- Migrating storage arrays
- Migrating data between platforms
- Overview of the Cross-Platform Data Sharing (CDS) feature
- CDS disk format and disk groups
- Setting up your system to use Cross-platform Data Sharing (CDS)
- Maintaining your system
- Disk tasks
- Disk group tasks
- Displaying information
- File system considerations
- Specifying the migration target
- Using the fscdsadm command
- Maintaining the list of target operating systems
- Migrating a file system on an ongoing basis
- Converting the byte order of a file system
- Migrating from Oracle ASM to Veritas File System
- Section VIII. Veritas InfoScale 4K sector device support solution
- Section IX. REST API support
- Support for configurations and operations using REST APIs
- Support for configurations and operations using REST APIs
- Section X. Reference
Configuring atomic write I/O support for MySQL on VxFS file systems
This section describes installing and configuring steps to use MySQL with atomic write support for VxFS file systems on VxVM volumes.
Enabling the atomic write I/O support for MySQL for VxFS file systems on VxVM volumes
- Install the Fusion ioMemory card and enable atomic write support on the SSD.
For information, see the SanDisk documentation.
- Bring the SanDisk devices under VxVM control, as follows:
Discover the devices:
# vxdisk scandisks
Display the devices that are available for VxVM use:
# vxdisk list
For example:
# vxdisk list DEVICE TYPE DISK GROUP STATUS fiodrive0_1 auto:none - - online invalid ssdtrim atomic-write
Initialize the disks:
# /etc/vx/bin/vxdisksetup -i SanDisk_device
Verify that the disks are under VxVM control and have atomic write support:
# vxdisk list
For example:
# vxdisk list DEVICE TYPE DISK GROUP STATUS fiodrive0_1 auto:cdsdisk - - online ssdtrim atomic-write
- Add the device to a disk group. The disk group can include both SSDs and HDDs.
If you do not have a disk group, create the disk group:
# vxdg init diskgroup dev1=fiodrive0_1
If you already have a disk group, add the device to the disk group:
# vxdg -g diskgroup adddisk fiodrive0_1
- Create the atomic write capable volume:
# vxassist -A -g diskgroup make volume length mediatype:ssd
Where:
the -A option creates an atomic write capable volume of concatenated layout, on the atomic write capable disks.
- Verify that the volume is atomic write capable:
# vxprint -g diskgroup -m volume | grep atomic atomic_wr_capable=on atomic_wr_iosize=16
Where:
atomic_wr_capable attribute indicates whether or not the volume supports atomic writes
atomic_wr_iosize indicates the supported size of the atomic write I/O.
- Create a VxFS file system over the atomic write capable volume.
# mkfs.vxfs /dev/vx/rdsk/diskgroup/volume
- Mount the file system at an appropriate location:
# mount.vxfs /dev/vx/dsk/diskgroup/volume /mnt1
- Configure the MySQL application with atomic write I/O support.
- Configure the MySQL application to place the data file on the VxFS mount point.
- Start the MySQL server.
- Verify that MySQL is running with atomic write support using the following query:
# mysql MariaDB [(none)]> select @@innodb_use_atomic_writes ; +---------------------------+ | @@innodb_use_atomic_writes| +---------------------------+ | 1| +---------------------------+ 1 row in set (0.00 sec)