Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thrawn01/scrub-snapshot
https://github.com/thrawn01/scrub-snapshot
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thrawn01/scrub-snapshot
- Owner: thrawn01
- Created: 2013-01-18T21:08:50.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-18T21:09:35.000Z (almost 12 years ago)
- Last Synced: 2023-04-11T05:18:28.395Z (over 1 year ago)
- Language: Python
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
# == Test Instructions ==
# If clean up is needed from a previous test
sudo lvremove /dev/volume/original -ff
sudo pvremove /dev/sdb -ff
# ----------# Write NULL's to the first 100M on the disk
sudo ./write.py /dev/sdb 0 25600# Create a physical Volume of 100M on /dev/sdb
sudo pvcreate /dev/sdb --setphysicalvolumesize 100M# Create a Volume Group called 'volume'
sudo vgcreate volume /dev/sdb# Create a volume called 'original'
sudo lvcreate -L8M -n original volume# Write 65's char(A) to the entire volume
sudo ./write.py /dev/volume/original 65 2048# Make a snapshot
sudo lvcreate -L8M -s -n backup /dev/volume/original# Write 66's char('B') to the first 5 sectors using direct IO
# Avoid using buffered IO, or the data will not show in the cow imediatly
sudo ./write.py /dev/volume/original 66 5# See what is in the COW (Should be 5 exceptions in the cow)
# -d skips the scrub, and simply counts the exceptions
sudo ./scrub-snapshot.py /dev/volume/backup -d -vv# Scrub the snapshot
sudo ./scrub-snapshot.py /dev/volume/backup -v