lamw / ghettoVCB

ghettoVCB
MIT License
1.27k stars 363 forks source link

GhettoVCB install #289

Closed amcdan closed 1 year ago

amcdan commented 1 year ago

Hi,

Is it necessary to install GhettoVCB or can I just save the GhettoVCB files to my NFS share and run the commands for backup from there without any install. This is what I have done in the past but I want to use the new version now for 7.0.3 support. What are the implications of not installing and just running the script from NFS mount?

Thanks,

lamw commented 1 year ago

No, you can run it directly off of a persistent datastore. The install is purely for convenience or for cases where you rather have the script installed on host rather on local/remote datastore

amcdan commented 1 year ago

Thanks,

When I try backing up VM I get errors below. This did work on 7.0.1.

I am backing up to an NFS mount.

2023-04-03 15:19:05 -- info: ============================== ghettoVCB LOG START ==============================

2023-04-03 15:19:05 -- info: CONFIG - VERSION = 2021_10_20_1

2023-04-03 15:19:05 -- info: CONFIG - GHETTOVCB_PID = 2155126

2023-04-03 15:19:05 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/NFS

2023-04-03 15:19:05 -- info: CONFIG - ENABLE_NON_PERSISTENT_NFS = 0

2023-04-03 15:19:05 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 1

2023-04-03 15:19:05 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2023-04-03_15-19-05

2023-04-03 15:19:05 -- info: CONFIG - DISK_BACKUP_FORMAT = zeroedthick

2023-04-03 15:19:05 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0

2023-04-03 15:19:05 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0

2023-04-03 15:19:05 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3

2023-04-03 15:19:05 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5

2023-04-03 15:19:05 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15

2023-04-03 15:19:05 -- info: CONFIG - LOG_LEVEL = info

2023-04-03 15:19:05 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2023-04-03_15-19-05-2155126.log

2023-04-03 15:19:05 -- info: CONFIG - ENABLE_COMPRESSION = 0

2023-04-03 15:19:05 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0

2023-04-03 15:19:05 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0

2023-04-03 15:19:05 -- info: CONFIG - ALLOW_VMS_WITH_SNAPSHOTS_TO_BE_BACKEDUP = 0

2023-04-03 15:19:05 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all

2023-04-03 15:19:05 -- info: CONFIG - VM_SHUTDOWN_ORDER =

2023-04-03 15:19:05 -- info: CONFIG - VM_STARTUP_ORDER =

2023-04-03 15:19:05 -- info: CONFIG - RSYNC_LINK = 0

2023-04-03 15:19:05 -- info: CONFIG - BACKUP_FILES_CHMOD =

2023-04-03 15:19:05 -- info: CONFIG - EMAIL_LOG = 1

2023-04-03 15:19:05 -- info: CONFIG - EMAIL_SERVER =

2023-04-03 15:19:05 -- info: CONFIG - EMAIL_SERVER_PORT = 25

2023-04-03 15:19:05 -- info: CONFIG - EMAIL_DELAY_INTERVAL = 1

2023-04-03 15:19:05 -- info: CONFIG - EMAIL_FROM =

2023-04-03 15:19:05 -- info: CONFIG - EMAIL_TO =

2023-04-03 15:19:05 -- info: CONFIG - WORKDIR_DEBUG = 0

2023-04-03 15:19:05 -- info: CONFIG - ENABLE_NFS_IO_HACK = 0

2023-04-03 15:19:10 -- info: Initiate backup for VMNAME

2023-04-03 15:19:12 -- info: ERROR: error in backing up of "/vmfs/volumes/VMFS-Datastore2/VMNAME/VMNAME_1.vmdk" for VMNAME

2023-04-03 15:19:12 -- info: ERROR: error in backing up of "/vmfs/volumes/VMFS-Datastore2/VMNAME/VMNAME.vmdk" for VMNAME

2023-04-03 15:19:15 -- info: Removing snapshot from VMNAME ...

2023-04-03 15:19:16 -- info: Backup Duration: 6 Seconds

2023-04-03 15:19:16 -- info: ERROR: Unable to backup VMNAME due to error in VMDK backup!

2023-04-03 15:19:16 -- info: ###### Final status: ERROR: All VMs experienced at least a partial failure! ######

I have set Disk Format to zeroed thick. I have had issues with this in the past and had to use 2gbsparse. Can you advise which and when each format should be used?

Thanks,

@.***

Aron McDaniel | Information Systems and Infrastructure Lead Owens & Minor | Products & Healthcare Services Virginia Road, Kells, Co.Meath, A82 R862, Ireland Office +353 (0)46 9280100 | Fax +353 (0)46 9280110 | Direct Dial +353 (0)46 9280197 @.**@.> | www.owens-minor.com | www.arcroyal.ie

This e-mail and its contents are confidential and are intended solely for the use of the addressee(s). If you have received this e-mail in error, please notify us immediately by reply e-mail, then delete the e-mail from your system and destroy any printed copy. Thank you. ArcRoyal uc Registered Office: Virginia Road, Kells, Co. Meath, Ireland. Company Registration Number 138763

From: William Lam @.> Sent: Monday 3 April 2023 13:45 To: lamw/ghettoVCB @.> Cc: McDaniel, Aron @.>; Author @.> Subject: [EXTERNAL] Re: [lamw/ghettoVCB] GhettoVCB install (Issue #289)

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. If you believe this email to be junk or malicious, please use the Report Message button in Outlook.

No, you can run it directly off of a persistent datastore. The install is purely for convenience or for cases where you rather have the script installed on host rather on local/remote datastore

— Reply to this email directly, view it on GitHubhttps://github.com/lamw/ghettoVCB/issues/289#issuecomment-1494259152, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A65ZJYL5O4JZMNAJA3QZE63W7LA6DANCNFSM6AAAAAAWQ7KOGU. You are receiving this because you authored the thread.Message ID: @.**@.>>

The information contained in this communication is confidential, may contain personal health information, and is intended only for the use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, be advised that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender by return email and permanently delete the communication and all copies thereof, including all attachments.