• Learning Map
  • Unix Quiz Center
  • Unix Professional Network
  • Just-Unix-No-Noise FB Group

unixadminschool.com

  • Home
  • Announcements
    • Feed
    • MISC
  • Beginners zone
    • Beginners Lessons
    • Career Guidance
  • Experts Zone
    • Cloud Computing
    • Configuration Solutions
    • Migrations
    • Network Design
    • Scripting
    • Server Security
    • SUN CLUSTERS
    • SUN LDOMS
    • Tools & Applications
    • Veritas Cluster Services ( VCS ) Learning
  • Intermediate Zone
    • Linux Learning
      • Linux Booting
      • Linux Disk Management
      • Linux LVM
      • Linux Networking
      • Linux Performance
      • Linux Troubleshooting
      • Linux YUM/RPM
      • Performance Analysis
      • Redhat Linux Kernel
      • RHEL 6
        • RHEL LDAP
        • Rhel6 Storage
      • Web Servers
    • Solaris Admin
      • Blog for Unix Admin
        • Storage Administration – SAN
      • Oracle Hardware
      • Reference Docs
      • Solaris 10 Zones & LDOMs
      • Solaris 11
      • Solaris Access Control
      • Solaris Best Practices
      • Solaris Booting
      • Solaris Disk Management
      • Solaris DNS
      • Solaris How-to
      • Solaris Installation
      • Solaris Kernel
      • Solaris Networking
      • Solaris NFS
      • Solaris NIS
      • Solaris Packages & Patching
      • Solaris Performance
      • Solaris Tips
      • Solaris Troubleshooting
      • Solaris User Authentication
      • solaris X86
      • Solaris ZFS and Boot Environment
      • Storage Configurations
      • SUN Hardware
      • Troubleshooting Flow charts
    • Veritas Admin
      • Veritas Netbackup
      • VxVM Learning
      • VxVM Troubleshooting
  • QUIZ Center
  • Vlabs

Subscribe

VxVM : Veritas Disk Group Configuration – Backup and Restore

Ramdev
Comment

[tab name='About Configuration Backup']

Disk group configuration backup and restoration allows you to backup and restore all configuration data for Veritas Volume Manager (VxVM) disk groups, and for VxVM objects such as volumes that are configured within the disk groups. Using  this feature, you can recover from corruption of a disk group’s configuration that is stored as metadata in the private region of a VM disk. After the disk group configuration has been restored, and the volume enabled, the user data in the public region is available again without the need to restore this from backup media.

The vxconfigbackupd daemon monitors changes to the VxVM configuration andautomatically records any configuration changes that occur. Two utilities,vxconfigbackup and vxconfigrestore, are provided for backing up and restoring a VxVM configuration for a disk group. When importing a disk group, any of the following errors indicate that the disk group configuration and/or disk private region headers have become corrupted:
VxVM vxconfigd ERROR V-5-1-569 Disk group group,Disk disk:Cannot auto-import group: reason



The reason for the error is usually one of the following:
  • Configuration records are inconsistent
  • Disk group has no valid configuration copies
  • Duplicate record in configuration
  • Errors in some configuration copies
  • Format error in configuration copy
  • Invalid block number
  • Invalid magic number

If VxVM cannot update a disk group’s configuration because of disk errors, it disables the disk group and displays the following error:
VxVM vxconfigd ERROR V-5-1-123 Disk group group: Disabled by errors

If such errors occur, you can restore the disk group configuration from a backup after you have corrected any underlying problem such as failed or disconnected hardware. Configuration data from a backup allows you to reinstall the private region headers of VxVM disks in a disk group whose headers have become damaged, to recreate a corrupted disk group configuration, or to recreate a disk group and the VxVM objects within it. You can also use the configuration data to recreate a disk group on another system if the original system is not available.

[/tab]
[tab name='Backup Procedure']

VxVM uses the disk group configuration daemon to monitor the configuration of disk groups, and to back up the configuration whenever it is changed. By default,the five most recent backups are preserved. If required, you can also back up a disk group configuration by running the vxconfigbackup command.

The following files record disk group configuration information:

/etc/vx/cbr/bk/diskgroup.dgid/dgid.dginfo Disk group information.

/etc/vx/cbr/bk/diskgroup.dgid/dgid.diskinfo Disk attributes.

/etc/vx/cbr/bk/diskgroup.dgid/dgid.binconfig Binary configuration copy.

/etc/vx/cbr/bk/diskgroup.dgid/dgid.cfgrec Configuration records in vxprint -m format.

Here diskgroup is the name of the disk group, and dgid is the disk group ID. If a disk group is to be recreated on another system, copy these files to that system.

To back up a disk group configuration, type the following command:

# /etc/vx/bin/vxconfigbackup diskgroup

To back up all disk groups, use this version of the command:

# /etc/vx/bin/vxconfigbackup

[/tab]
[tab name='Restore Procedure']

You can use the vxconfigrestore utility to restore or recreate a disk group from its configuration backup. The restoration process consists of a precommit operation followed by a commit operation. At the precommit stage, you can examine the configuration of the disk group that would be restored from the backup. The actual disk group configuration is not permanently restored until you choose to commit the changes

You can choose whether or not any corrupted disk headers are to be reinstalled at the precommit stage.  If any of the disks’ private region headers are invalid, restoration may not be possible without reinstalling the headers for the affected disks.

To perform the precommit operation

Use the following command to perform a precommit analysis of the state of the disk group configuration, and to reinstall the disk headers where these have become corrupted:

# /etc/vx/bin/vxconfigrestore -p [-l directory]  {diskgroup | dgid}

The disk group can be specified either by name or by ID.

The -l option allows you to specify a directory for the location of the backup configuration files other than the default location, /etc/vx/cbr/bk.

To specify that the disk headers are not to be reinstalled

Type the following command:

# /etc/vx/bin/vxconfigrestore -n [-l directory] {diskgroup | dgid}

At the precommit stage, you can use the vxprint command to examine the configuration that the restored disk group will have. You can choose to proceed to commit the changes and restore the disk group configuration. Alternatively, you can cancel the restoration before any permanent changes have been made.

To abandon restoration at the precommit stage

Type the following command:

# /etc/vx/bin/vxconfigrestore -d [-l directory] {diskgroup | dgid}

To perform the commit operation

To commit the changes that are required to restore the disk group configuration, use the following command:

# /etc/vx/bin/vxconfigrestore -c [-l directory] {diskgroup | dgid}

If no disk headers are reinstalled, the configuration copies in the disks’ private regions are updated from the latest binary copy of the configuration that was saved for the disk group. If any of the disk headers are reinstalled, a saved copy of the disks’ attributes is used to recreate their private and public regions. These disks are also assigned new disk IDs. The VxVM objects within the disk group are then recreated using the backup configuration records for the disk group. This process also has the effect of creating new configuration copies in the disk group.

Volumes are synchronized in the background. For large volume configurations, it may take some time to perform the synchronization. You can use the vxtask -l list command to monitor the progress of this operation. Disks that are in use or whose layout has been changed are excluded from the restoration process.


[/tab]

[endtab]

Tagged with: [ backup, configuratin, Diskgroup, Solaris Admin, VxVM Learning ]

Solaris Troubleshooting SDS/SVM: How to Replace a Disk which contained Soft Partitions with

Ramdev
Comment

When trying to access a soft partition after a disk replacement, the metareplace command or any direct I/O to a soft partition will fail with the following types of errors: Read Full

Tagged with: [ failed, recover, replace disk, SDS, soft partitions, Solaris Troubleshooting, SVM ]

Solaris Troubleshooting : Display 3 timestamps ( at, ct, mt) for a file – in solaris

Ramdev
Comment

First, an explanation of the time stamps:
mtime - time the contents of file was last modified (written to).
atime - time the file was last used/accessed (read or executed)
ctime - time the inode of the file was last changed (like changing permissions).
ctime also gets updated every time mtime is modified, but not when the atime is changed.
ctime, is NOT the files creation date.   Creation date is NOT recorded  anywhere in the Unix file system.
 Read Full
Tagged with: [ ctime, mtime, solaris learning, Solaris Troubleshooting, time stamps ]

Solaris Troubleshooting : Samba

Ramdev
Comment

Below instruction help you to understand, analyse and troubleshoot the problems with  Samba service Read Full

Tagged with: [ configuring, samba, Solaris Troubleshooting, troubleshooting ]

Solaris 10 : Installing packages/Patches/ Applications in zones

Ramdev
2 Comments

 

In the global zone view the SMCsudo and SMCtop packages:

  1. cd /export/home/student/zones

pkginfo -d sudo-1.6.8p4-sol10-zones-sparc-local
application SMCsudo sudo
#
pkginfo -d top-3.5.1-sol10-zones-sparc-local
application SMCtop top
#

Notice the “false” setting for SUNW_PKG_ALLZONES variable:

pkgparam -d sudo-1.6.8p4-sol10-zones-sparc-local SMCsudo SUNW_PKG_ALLZONES
false
#
pkgparam -d top-3.5.1-sol10-zones-sparc-local SMCtop SUNW_PKG_ALLZONES
false
#

 

 

Read Full

Tagged with: [ installation, packages, patches, Solaris 10, Solaris Troubleshooting ]

Solaris Troubleshooting : Setting boot-device with luxadm command from booted OS.

Ramdev
Comment

This procedure demonstrates how to easily use the “luxadm” command to set the “boot-device” Open Boot Prom (OBP) parameter from a system booted from cdrom or in single user mode. Read Full

Tagged with: [ boot, boot device, luxadm, solaris learning, solaris troubleshootng ]

  • About Author : My name is Ramkumar Ramadevu ( Ramdev ). I have started writing about enterprise unix system administration since 2009 just for my own knowledge reference, and then later I have made this site available for everyone, for better purpose. ... read more

  • Recent Comments

    • Ramdev commented :: Hi Ellumalai,  Thanks you. I got that fixed now, can you check. As i m...
    • Elumalai M commented :: Please see the below output... Welcome to Unixadminschool.c...
    • Ramdev commented :: Hi elumalai, yeah I have noticed it. Some browsers misinterpreting the...
    • Elumalai M commented :: Hi Ramdev, Appreciate your effort on research...  I have execute...
    • Ramdev commented :: Hi alok, there is no user authentication setup for this post. you can ...
    • Alok Kumar commented :: Hi  Dear Ramdev, your guide is awesome. I hav recently subscribed...
    • Erlis commented :: Nice article. :)...
    • Ramdev commented :: Rahul, welcome to unixadminschool.Thanks for the message....
    • Rahul commented :: Awesome Ram, i came to know about this Blog 2 days and go through a...
    • Ramdev commented :: Hi Prajwala, I am glad that you like it :)...
  • Latest Posts

    • Virtual Lab : Get Your hands dirty with grep & RegEx
    • RHEL 6 – ISCSI Administration Series – ISCSI Lun resize
    • RHEL 6 – ISCSI Administration Series – Configuring ISCSI Server and Client
    • SAN Storage Migration – Solaris with VxVM
    • RHEL 6.3 – LDAP Series – Part 4 : Troubleshooting
    • RHEL 6.3 – LDAP Series – Part 3 : LDAP Configuration With Encrypted Communication using TLS/SSL
    • RHEL 6.3 – LDAP Series – Part 2 : Configuration of Certification Authority for LDAP encryption.
    • RHEL 6.3 – LDAP Series – Part 1 : Implementation of LDAP Authentication
    • [ Updated with Analysis ] – Finding the Linux Performance Bottleneck !!!
    • VxVM Troubleshooting – Increasing the Size of Veritas Disk Private Region
    • Virtualization for Unix Administrators
    • VCS Learning – I/O Fencing In action [ Video ]
    • VCS Learning : Learn about Cluster Hearbeats
    • Storage Operations – VxVM vs RHEL LVM2
    • Veritas Netbackup : Unable to detect Robot from master server after Veritas Netbackup upgrade to 7.1.0.4.
    • A tool that changes the way of system administration – PUPPET ( from puppetlabs)
    • Redhat Enterprise Linux : Yum Quick Reference
    • Redhat Enterprise Linux – Network Bonding – Quick Reference ( RHEL5 / RHEL6)
    • Redhat Enterprise Linux Networking Troubleshooting – Quick Reference
    • RedHat Linux Grub Loader – FAQ and Quick Reference
    • Redhat Linux LVM – FAQ & Quick Reference
    • RedHat Linux Kernel – FAQ and Quick Reference
    • Solaris host level SAN migration from Clariion to VMAX – Hands on Lab
    • Linux Samba Server integration with Windows Active Directory – Part 2
    • Linux Samba Server integration with Windows Active Directory – Part 1
    • Hands on LAB – Configuring LAMP STACK for Web Applications- cookbook
    • Hands on Lab – Replacing Failed Disks from ZFS Pools ( RaidZ2 / RaidZ3 ) – Part2
    • Enabling SVM in Failsafe and password recovery in Solaris.
    • Hands on Lab – Replacing Failed Disks from ZFS Pools ( Simple / Mirrored / RaidZ )
    • Oracle Server Hardware Reference ( 3D View)
  • Site Members

    • Log in


Pages «« 5 10 15 20 52 53 54 5556 57 58 59 60 61»»
Copyright © 2009 unixadminschool.com. All rights reserved.