Making the file systems clean

If you upgrade to SFCFS 5.1 and the file systems are dirty, you have to deport the shared disk group and import it as non-shared. After the import, run fsck. fsck should succeed. Then deport the disk group and import it back as shared.

To make the file systems clean

  1. Log in as superuser onto the CVM master node.

  2. If performing a full upgrade, offline the group on all the nodes in the cluster:

    # hagrp -offline group -sys system01
    # hagrp -offline group -sys system02
    # hagrp -offline group -sys system03
    # hagrp -offline group -sys system04

    If performing a phased upgrade, offline the group:

    # hagrp -offline group -sys system01
    # hagrp -offline group -sys system02

    where group is the VCS service group that has the CVMVolDg and CFSMount resource.

  3. Deport the disk group:

    # vxdg deport diskgroup

    where diskgroup is the SFCFS disk group.

  4. Import the disk group:

    # vxdg -C import diskgroup
  5. Start all the volumes in the disk group:

    # vxvol -g diskgroup startall
  6. Check and repair each file system:

    # fsck -F vxfs /dev/vx/dsk/diskgroup/volume

    Repeat this step for each file system.

  7. Deport the disk group:

    # vxdg deport diskgroup
  8. Import the disk group:

    # vxdg -s import diskgroup
  9. Start all the volumes in the disk group:

    # vxvol -g diskgroup startall
  10. If VVR is configured, upgrade all the disk groups on all the nodes on which VVR has been upgraded:

    # vxdg upgrade diskgroup
  11. If performing a full upgrade, for all the resources that are faulted, run the following command:

    # hares -clear resource -sys system01
    # hares -clear resource -sys system02
    # hares -clear resource -sys system03
    # hares -clear resource -sys system04

    If performing a phased upgrade, for all the resources that are faulted, run the following command:

    # hares -clear resource -sys system01
    # hares -clear resource -sys system02
  12. If performing a full upgrade, online the group on all the nodes in the cluster:

    # hagrp -online group -sys system01
    # hagrp -online group -sys system02
    # hagrp -online group -sys system03
    # hagrp -online group -sys system04

    If performing a phased upgrade, online the group:

    # hagrp -online group -sys system01
    # hagrp -online group -sys system02
  13. If VVR is configured, bring online the RVGLogowner group on the master:

    # hagrp -online RVGLogownerGrp -sys masterhost

    Restart the applications that were stopped.