-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device nvme0n1 is designated as write-protected (needs manual configuration) #3096
Comments
Below is my source and Target lsblk output
|
|
@ramzcode
for ReaR 2.7 online at In the ReaR recovery system you find As far as I see |
@jsmeix Thank you for bringing to notice, but i have a concern. How come the IDS can be same between two different VM ? Am i missing something?
|
@ramzcode In particular when such IDs are UUIDs - i.e. a |
@jsmeix Ya,it makes sense, But can we use just the SERIAL as the validator, hope this can never be the same ? What is your thought and BTW i tried adding it even but still error persists WRITE_PROTECTED_IDS_TYPE= (SERIAL) |
I cannot guess what actually goes on on your systems
one on your original system where you do "rear -D mkrescue/mkbackup" |
Regarding using 'SERIAL' see |
By the way: |
Yep, sorry my bad, typo mistake here. let me get the logs and outputs for debug |
@jsmeix Please find the details and if you need more info on the debug log let me know Source VM output
Rescue VM out
From source VM
From source Vm
From rescue VM
|
@jsmeix Any idea on what is wrong from the above logs ? |
uuidgen - This is creating a Write protection, but not sure how this is same or wrongly evaluated on the target VM as well |
RCA: "For Unknown Reasons, the disk UUID between different VM's are same. This makes ReaR to declare a different new disk as a source and make it RO" ++++ [[ /dev/nvme0n1 == /sys/block/* ]] |
AWS uses Unique ID's to maintain stability for storage devices across types, Due to this, ReaR thinks that it should not use the disk as the WRITE PROTECT script validation runs. I had to use WRITE_PROTECTED_ID_TYPES="SERIAL" since SERIAL had unique vol specific ID's across different VM's. It worked as expected. |
@ramzcode do I understand correctly that this problem only occurs on EC2 VM backup and subsequent EC2 VM restore? And your workaround wouldn't be required if the source of the backup is not an EC2 VM? I'm happy that you found a workaround and I'm wondering if we maybe slowly should consider adding auto-detect for AWS EC2 that would fine-tune ReaR for that environment. Also, @ramzcode, can you please share your use case for ReaR here? So far I actually thought that users of AWS wouldn't need ReaR at all and instead use AWS-level backup tooling like snapshots. I'm happy to learn more about AWS related use cases for ReaR to better understand what is expected from ReaR in that context. |
Why is /dev/nvme0n1 is designated as write-protected at all? @ramzcode are you using this disk to store the backup? Can you please show your ReaR configuration ( |
@schlomo Yes this is only needed for AWS Environment, may be for other CSP too, it still depends on the how they maintain the disk ID's for consistency. The ID based validation should be highly Dynamic so that we can avoid such cases. ReaR is used for my servers where i don't want to the AWS solutions and need more flexibility. A single solution for my On-Pem and AWS instances. Easy to maintain and Automate. |
@pcahyna The reason is AWS maintains a unique ID for disk types and FS to make sure it never changes when someone upgrade their instance and move from one region to another. The main reason is to avoid boot issues due to change in ID that are part for fstab and bootloader configs |
Stale issue message |
RearR Version 2.7
Amazon Linux 2023
Trying to recover on a different New VM, but the error looks not clear. Not sure which and why write protection is triggered by.
Log:
The text was updated successfully, but these errors were encountered: