8,899 reputation
11122
bio website github.com/frostschutz
location
age 32
visits member for 1 year, 9 months
seen 7 hours ago

Oct
26
comment Formatting LUKS encrypted disk
Please elaborate more... Since you're trying to unlock /dev/dm-6, do you have LVM on there too? Do you want LVM on an external HDD?
Oct
24
comment Resize root LVM and FS in Debian 7
The size you give resize2fs should include any overhead already, otherwise results would be unpredictable. So using 2G both for resize2fs and lvresize should fit perfectly. - I used to do the same though for partitions with odd sizes. Also there is the general G/GB/GiB confusion... not all commands use the same units unfortunately. But it should be fine here...
Oct
23
comment set packet rate limit via iptables
@Andy: the rules described there are considerably more complex than what you put in your question. (In particular limit 10 instead of 100 in most cases). I see you've edited your question since, but all other issues aside, does this thing even have any chance to work with only 10 packets per second? Also, limiting INPUT is considerably harder than OUTPUT. Control over what others send you is very indirect only...
Oct
23
comment set packet rate limit via iptables
Something like iptables -A OUTPUT -m limit --limit 100/s -j ACCEPT, given a default DROP policy? Not sure about tc, most qdiscs do bandwidth rather than absolute packet counts. Then again, this would drop rather than delay...
Oct
22
comment “Spare” disk in a 2-disk mdadm RAID1 array?
Did you check SMART? Run a long self test on both disks.
Oct
21
comment “Spare” disk in a 2-disk mdadm RAID1 array?
Either disk may be bad, preventing successful syncing. Did the resync ever complete? Follow its progress in /proc/mdstat and check dmesg. Also check smartctl -a for /dev/sda and /dev/sdc.
Oct
18
comment LUKS-encrypted text file is garbled
scary if true... you should investigate further how/why that happens.
Oct
18
comment Why is dd not protected against writing on the active disk ?
One example is removing LUKS encryption in-place. That involves writing to a disk which is currently in use by LUKS. Maybe what you really wanted to know was, 'how can I make sure a device is not in use by anything before I write to it' or the like...
Oct
18
comment Drop a specific file from the Linux filesystem cache?
It even seems to work without sudo, so anyone who can see a file (even without write permission) can have its cache dropped, that's... interesting.
Oct
18
comment Drop a specific file from the Linux filesystem cache?
dd works for me. I ended up with chris-lamb.co.uk/projects/python-fadvise myself which is the same thing in a more obvious command.
Oct
16
answered Block device aligment without partitioning?
Oct
16
revised Trim with LVM and dm-crypt
edited body
Oct
15
answered Spanning RAID over SSD and Mechanical HD
Oct
10
comment How to parallelize dd?
dd hogs the CPU by default due to small blocksize. make it larger, like bs=1M.
Oct
10
comment How to parallelize dd?
probably also needs conv=notrunc
Oct
10
answered Does `/proc/partitions` and/or `fdisk -l /dev/sdX` provide me a reliable device size?
Oct
9
answered ddrescue prohibitively slow because of I/O timeouts?
Oct
8
comment How to identify LVM-over-LUKS or LUKS-over-LVM
@NotSuperMan: well, that looks fine. disk, partition, lvm, and each LV is encrypted. It's a common setup. Your description sounded different somehow. I think your mistake was using cryptsetup --plain on sda3; sda3 is an LVM device, not crypt.
Oct
8
answered How to identify LVM-over-LUKS or LUKS-over-LVM
Oct
2
awarded  Enlightened