Configuring Ransomware Protection for a HyperScale MediaAgent, "ERROR - unmount /ws/glus failed"

Last post 12-22-2020, 6:02 AM by Martin Rønde Andersen. 0 replies.
Sort Posts: Previous Next
  • Configuring Ransomware Protection for a HyperScale MediaAgent, "ERROR - unmount /ws/glus failed"
    Posted: 12-22-2020, 6:02 AM

    The documentation for "Configuring Ransomware Protection for a HyperScale MediaAgent" is missing a "commvault stop" command to be able to succeed. 

    After prerequisites the first command is executed normally.

    # cd /opt/commvault/MediaAgent64
    # ./cvsecurity.py enable_protection -i Instance001

    then

    PROBLEM: Procedure exits without making the necesary operations og umount , change /etc/fstab and mount again.

    # ./cvsecurity.py protect_disk_library -i Instance001

    ~

    2020-12-21 15:21:57,465 - __main__ - INFO - unmounting /ws/glus
    2020-12-21 15:21:57,471 - __main__ - ERROR - unmount /ws/glus failed
    2020-12-21 15:21:57,471 - __main__ - INFO - exiting
    #

    SOLUTION:

    Before running "./cvsecurity.py protect_disk_library -i Instance001" you need to stop Commvault services. If the stop hangs, you may need to stop manually the "commvault stop",  and fix by renaming the /tmp/.lock _Galaxy_vtl and /tmp/.lock_Galaxy and run "commvault stop" command again.

    Regards Martin

     

    ---------------------------------------------------snippet start --------------------------------------

    [46 MediaAgent64]# diff /etc/fstab /etc/fstab_20201221-save
    [46 MediaAgent64]# commvault stop
    Redirecting stopping service for Instance001 to systemd ...
    Running "systemctl stop commvault.Instance001.service" ...
    Stopping Commvault services for Instance001 ...
    All services stopped.
    Cleaning up /var/log/commvault/Log_Files/locks ...
    [46 MediaAgent64]# ./cvsecurity.py protect_disk_library -i Instance001
    OS version Red Hat Enterprise Linux Server release 7.8 (Maipo)
    2020-12-21 15:34:24,217 - __main__ - INFO - start protect_disk_library
    2020-12-21 15:34:24,218 - __main__ - INFO - configure_disk_library_hs
    2020-12-21 15:34:24,218 - __main__ - INFO - get_configured_library_paths
    2020-12-21 15:34:24,218 - __main__ - INFO - gluster_volume_status_good
    2020-12-21 15:34:24,218 - __main__ - INFO - gluster_volume_all_bricks_online
    it is a disruptive operation. local and gluster fs remounted with fstab conf file update. continue[y/n]:y
    2020-12-21 15:34:30,357 - __main__ - INFO - get_mount_context
    2020-12-21 15:34:30,357 - __main__ - INFO - get_mount_point
    2020-12-21 15:34:30,357 - __main__ - INFO - path /ws/disk1 mount_point /ws/disk1
    2020-12-21 15:34:30,357 - __main__ - INFO - library /ws/disk1 mount context rw,noatime,attr2,inode64,noquota
    2020-12-21 15:34:30,357 - __main__ - INFO - get_file_context
    fcontext=
    2020-12-21 15:34:30,360 - __main__ - INFO - library /ws/disk1 file context
    2020-12-21 15:34:30,360 - __main__ - INFO - start set_registry_entry
    2020-12-21 15:34:30,360 - __main__ - INFO - unmounting /ws/glus
    2020-12-21 15:34:30,384 - __main__ - INFO - stopping 46sds.dk:/GDSP_HyperScale-SR6
    2020-12-21 15:35:20,919 - __main__ - INFO - unmounting /ws/disk1
    2020-12-21 15:35:22,577 - __main__ - INFO - unmounting /ws/disk10
    2020-12-21 15:35:24,026 - __main__ - INFO - unmounting /ws/disk11
    2020-12-21 15:35:26,067 - __main__ - INFO - unmounting /ws/disk12
    2020-12-21 15:35:27,886 - __main__ - INFO - unmounting /ws/disk13
    2020-12-21 15:35:31,015 - __main__ - INFO - unmounting /ws/disk14
    2020-12-21 15:35:34,024 - __main__ - INFO - unmounting /ws/disk15
    2020-12-21 15:35:35,523 - __main__ - INFO - unmounting /ws/disk16
    2020-12-21 15:35:36,928 - __main__ - INFO - unmounting /ws/disk17
    2020-12-21 15:35:39,523 - __main__ - INFO - unmounting /ws/disk18
    2020-12-21 15:35:41,815 - __main__ - INFO - unmounting /ws/disk19
    2020-12-21 15:35:43,641 - __main__ - INFO - unmounting /ws/disk2
    2020-12-21 15:35:45,694 - __main__ - INFO - unmounting /ws/disk20
    2020-12-21 15:35:48,169 - __main__ - INFO - unmounting /ws/disk21
    2020-12-21 15:35:50,520 - __main__ - INFO - unmounting /ws/disk22
    2020-12-21 15:35:52,164 - __main__ - INFO - unmounting /ws/disk23
    2020-12-21 15:35:53,823 - __main__ - INFO - unmounting /ws/disk24
    2020-12-21 15:35:56,172 - __main__ - INFO - unmounting /ws/disk3
    2020-12-21 15:35:58,275 - __main__ - INFO - unmounting /ws/disk4
    2020-12-21 15:36:00,150 - __main__ - INFO - unmounting /ws/disk5
    2020-12-21 15:36:02,467 - __main__ - INFO - unmounting /ws/disk6
    2020-12-21 15:36:04,155 - __main__ - INFO - unmounting /ws/disk7
    2020-12-21 15:36:05,883 - __main__ - INFO - unmounting /ws/disk8
    2020-12-21 15:36:07,606 - __main__ - INFO - unmounting /ws/disk9
    2020-12-21 15:36:09,736 - __main__ - INFO - updating fstab with security /ws/disk1
    2020-12-21 15:36:09,737 - __main__ - INFO - updating fstab with security /ws/disk10
    2020-12-21 15:36:09,738 - __main__ - INFO - updating fstab with security /ws/disk11
    2020-12-21 15:36:09,738 - __main__ - INFO - updating fstab with security /ws/disk12
    2020-12-21 15:36:09,739 - __main__ - INFO - updating fstab with security /ws/disk13
    2020-12-21 15:36:09,739 - __main__ - INFO - updating fstab with security /ws/disk14
    2020-12-21 15:36:09,740 - __main__ - INFO - updating fstab with security /ws/disk15
    2020-12-21 15:36:09,740 - __main__ - INFO - updating fstab with security /ws/disk16
    2020-12-21 15:36:09,741 - __main__ - INFO - updating fstab with security /ws/disk17
    2020-12-21 15:36:09,742 - __main__ - INFO - updating fstab with security /ws/disk18
    2020-12-21 15:36:09,742 - __main__ - INFO - updating fstab with security /ws/disk19
    2020-12-21 15:36:09,743 - __main__ - INFO - updating fstab with security /ws/disk2
    2020-12-21 15:36:09,743 - __main__ - INFO - updating fstab with security /ws/disk20
    2020-12-21 15:36:09,744 - __main__ - INFO - updating fstab with security /ws/disk21
    2020-12-21 15:36:09,744 - __main__ - INFO - updating fstab with security /ws/disk22
    2020-12-21 15:36:09,745 - __main__ - INFO - updating fstab with security /ws/disk23
    2020-12-21 15:36:09,745 - __main__ - INFO - updating fstab with security /ws/disk24
    2020-12-21 15:36:09,746 - __main__ - INFO - updating fstab with security /ws/disk3
    2020-12-21 15:36:09,746 - __main__ - INFO - updating fstab with security /ws/disk4
    2020-12-21 15:36:09,747 - __main__ - INFO - updating fstab with security /ws/disk5
    2020-12-21 15:36:09,748 - __main__ - INFO - updating fstab with security /ws/disk6
    2020-12-21 15:36:09,748 - __main__ - INFO - updating fstab with security /ws/disk7
    2020-12-21 15:36:09,749 - __main__ - INFO - updating fstab with security /ws/disk8
    2020-12-21 15:36:09,749 - __main__ - INFO - updating fstab with security /ws/disk9
    2020-12-21 15:36:09,750 - __main__ - INFO - mounting /ws/disk1
    2020-12-21 15:36:10,075 - __main__ - INFO - mounting /ws/disk10
    2020-12-21 15:36:10,266 - __main__ - INFO - mounting /ws/disk11
    2020-12-21 15:36:10,422 - __main__ - INFO - mounting /ws/disk12
    2020-12-21 15:36:10,619 - __main__ - INFO - mounting /ws/disk13
    2020-12-21 15:36:10,819 - __main__ - INFO - mounting /ws/disk14
    2020-12-21 15:36:11,019 - __main__ - INFO - mounting /ws/disk15
    2020-12-21 15:36:11,193 - __main__ - INFO - mounting /ws/disk16
    2020-12-21 15:36:11,381 - __main__ - INFO - mounting /ws/disk17
    2020-12-21 15:36:11,581 - __main__ - INFO - mounting /ws/disk18
    2020-12-21 15:36:11,769 - __main__ - INFO - mounting /ws/disk19
    2020-12-21 15:36:11,978 - __main__ - INFO - mounting /ws/disk2
    2020-12-21 15:36:12,189 - __main__ - INFO - mounting /ws/disk20
    2020-12-21 15:36:12,363 - __main__ - INFO - mounting /ws/disk21
    2020-12-21 15:36:12,541 - __main__ - INFO - mounting /ws/disk22
    2020-12-21 15:36:12,705 - __main__ - INFO - mounting /ws/disk23
    2020-12-21 15:36:12,910 - __main__ - INFO - mounting /ws/disk24
    2020-12-21 15:36:13,082 - __main__ - INFO - mounting /ws/disk3
    2020-12-21 15:36:13,270 - __main__ - INFO - mounting /ws/disk4
    2020-12-21 15:36:13,449 - __main__ - INFO - mounting /ws/disk5
    2020-12-21 15:36:13,637 - __main__ - INFO - mounting /ws/disk6
    2020-12-21 15:36:13,824 - __main__ - INFO - mounting /ws/disk7
    2020-12-21 15:36:14,005 - __main__ - INFO - mounting /ws/disk8
    2020-12-21 15:36:14,219 - __main__ - INFO - mounting /ws/disk9
    2020-12-21 15:36:14,392 - __main__ - INFO - starting 46sds.dk:/GDSP_HyperScale-SR6
    2020-12-21 15:36:23,451 - __main__ - INFO - updating fstab with security /ws/glus
    2020-12-21 15:36:23,452 - __main__ - INFO - mounting /ws/glus
    2020-12-21 15:36:24,934 - __main__ - INFO - start set_registry_entry
    2020-12-21 15:36:24,934 - __main__ - INFO - exiting
    [46 MediaAgent64]#
    [46 MediaAgent64]# diff /etc/fstab /etc/fstab_20201221-save
    16,39c16,39
    < UUID=84cfb0fc-8dc5-4a8b-a0f5-3234d577c6c9 /ws/disk1 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=17351519-e3c8-4872-b6d0-9fd887f7299d /ws/disk10 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=f3f3e80d-91b3-4283-bcf8-af7cf8ab11fd /ws/disk11 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=7f1df8b6-cf4e-48f2-bcc9-a2c9b530f890 /ws/disk12 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=50300433-77de-4c86-bf48-bf1472ddcc5c /ws/disk13 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=8e65c9d9-3a74-4e56-b6e2-184393416c27 /ws/disk14 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=6359f960-fc15-4a64-9893-b99057894baa /ws/disk15 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=cae05925-e434-4018-a2f1-01fb68b32a3a /ws/disk16 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=09022570-f6ef-4aea-b909-192e6c0231c0 /ws/disk17 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=f2f41e3a-c377-4572-a1d8-6e0fd424cb39 /ws/disk18 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=ffc40816-1346-4256-a5a7-9ed84e19ecca /ws/disk19 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=041e0d8a-4508-424b-aeb8-b0142fd006f5 /ws/disk2 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=4a8b9674-e72a-42e7-b44f-bb7754e10926 /ws/disk20 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=1592d0b5-ace4-4c54-8452-0b98fa0ccfba /ws/disk21 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=1410d44c-f4c0-43cc-ae17-93480f39940b /ws/disk22 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=3ab25ec8-b7e1-4af9-9c77-52d3fae2b888 /ws/disk23 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=acea6324-ac14-499a-b21c-705873c95870 /ws/disk24 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=c6d03d9d-3772-469f-97ff-ca3c360e07b9 /ws/disk3 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=8a273520-99f1-408a-b9eb-3ecd8dd6f59a /ws/disk4 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=e6d5fa21-c108-41a5-be8a-a7ce67572b6c /ws/disk5 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=7dfe5bf8-935d-4848-8741-3d598039d974 /ws/disk6 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=82475a50-35bf-4cd9-9ded-f05c8a66cddd /ws/disk7 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=26835654-4e80-4bad-84cc-6dd5ddf3dc85 /ws/disk8 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    < UUID=332bedcd-4574-4e32-99dd-1d2a1031152f /ws/disk9 xfs noatime,inode64,nofail,context="system_u:object_r:cvstorage_t:s0" 0 0
    ---
    > UUID=84cfb0fc-8dc5-4a8b-a0f5-3234d577c6c9 /ws/disk1 xfs noatime,inode64,nofail 0 0
    > UUID=17351519-e3c8-4872-b6d0-9fd887f7299d /ws/disk10 xfs noatime,inode64,nofail 0 0
    > UUID=f3f3e80d-91b3-4283-bcf8-af7cf8ab11fd /ws/disk11 xfs noatime,inode64,nofail 0 0
    > UUID=7f1df8b6-cf4e-48f2-bcc9-a2c9b530f890 /ws/disk12 xfs noatime,inode64,nofail 0 0
    > UUID=50300433-77de-4c86-bf48-bf1472ddcc5c /ws/disk13 xfs noatime,inode64,nofail 0 0
    > UUID=8e65c9d9-3a74-4e56-b6e2-184393416c27 /ws/disk14 xfs noatime,inode64,nofail 0 0
    > UUID=6359f960-fc15-4a64-9893-b99057894baa /ws/disk15 xfs noatime,inode64,nofail 0 0
    > UUID=cae05925-e434-4018-a2f1-01fb68b32a3a /ws/disk16 xfs noatime,inode64,nofail 0 0
    > UUID=09022570-f6ef-4aea-b909-192e6c0231c0 /ws/disk17 xfs noatime,inode64,nofail 0 0
    > UUID=f2f41e3a-c377-4572-a1d8-6e0fd424cb39 /ws/disk18 xfs noatime,inode64,nofail 0 0
    > UUID=ffc40816-1346-4256-a5a7-9ed84e19ecca /ws/disk19 xfs noatime,inode64,nofail 0 0
    > UUID=041e0d8a-4508-424b-aeb8-b0142fd006f5 /ws/disk2 xfs noatime,inode64,nofail 0 0
    > UUID=4a8b9674-e72a-42e7-b44f-bb7754e10926 /ws/disk20 xfs noatime,inode64,nofail 0 0
    > UUID=1592d0b5-ace4-4c54-8452-0b98fa0ccfba /ws/disk21 xfs noatime,inode64,nofail 0 0
    > UUID=1410d44c-f4c0-43cc-ae17-93480f39940b /ws/disk22 xfs noatime,inode64,nofail 0 0
    > UUID=3ab25ec8-b7e1-4af9-9c77-52d3fae2b888 /ws/disk23 xfs noatime,inode64,nofail 0 0
    > UUID=acea6324-ac14-499a-b21c-705873c95870 /ws/disk24 xfs noatime,inode64,nofail 0 0
    > UUID=c6d03d9d-3772-469f-97ff-ca3c360e07b9 /ws/disk3 xfs noatime,inode64,nofail 0 0
    > UUID=8a273520-99f1-408a-b9eb-3ecd8dd6f59a /ws/disk4 xfs noatime,inode64,nofail 0 0
    > UUID=e6d5fa21-c108-41a5-be8a-a7ce67572b6c /ws/disk5 xfs noatime,inode64,nofail 0 0
    > UUID=7dfe5bf8-935d-4848-8741-3d598039d974 /ws/disk6 xfs noatime,inode64,nofail 0 0
    > UUID=82475a50-35bf-4cd9-9ded-f05c8a66cddd /ws/disk7 xfs noatime,inode64,nofail 0 0
    > UUID=26835654-4e80-4bad-84cc-6dd5ddf3dc85 /ws/disk8 xfs noatime,inode64,nofail 0 0
    > UUID=332bedcd-4574-4e32-99dd-1d2a1031152f /ws/disk9 xfs noatime,inode64,nofail 0 0
    43c43
    < 46sds.dk:/GDSP_HyperScale-SR6 /ws/glus glusterfs context="system_u:object_r:cvstorage_t:s0"
    ---
    > 46sds.dk:/GDSP_HyperScale-SR6 /ws/glus glusterfs

    Regards

    Martin R.A.
    Advanced Operations Engineer
The content of the forums, threads and posts reflects the thoughts and opinions of each author, and does not represent the thoughts, opinions, plans or strategies of Commvault Systems, Inc. ("Commvault") and Commvault undertakes no obligation to update, correct or modify any statements made in this forum. Any and all third party links, statements, comments, or feedback posted to, or otherwise provided by this forum, thread or post are not affiliated with, nor endorsed by, Commvault.
Commvault, Commvault and logo, the “CV” logo, Commvault Systems, Solving Forward, SIM, Singular Information Management, Simpana, Commvault Galaxy, Unified Data Management, QiNetix, Quick Recovery, QR, CommNet, GridStor, Vault Tracker, InnerVault, QuickSnap, QSnap, Recovery Director, CommServe, CommCell, SnapProtect, ROMS, and CommValue, are trademarks or registered trademarks of Commvault Systems, Inc. All other third party brands, products, service names, trademarks, or registered service marks are the property of and used to identify the products or services of their respective owners. All specifications are subject to change without notice.
Close
Copyright © 2021 Commvault | All Rights Reserved. | Legal | Privacy Policy