Bug 232462
Summary: | Tar vs new 2.6.21 series kernels, tar strikes out. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Gene Heskett <gene.heskett> |
Component: | tar | Assignee: | Radovan Augustin <raugusti> |
Status: | CLOSED WORKSFORME | QA Contact: | Ben Levenson <benl> |
Severity: | urgent | Docs Contact: | |
Priority: | medium | ||
Version: | 6 | CC: | gene.heskett, pvrabec |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-05-31 14:57:25 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Gene Heskett
2007-03-15 17:03:52 UTC
Could you send the tar command, which amanda use to archive your data. I'm not friendly with amanda and I don't have a tape at the moment, but I have tried to create and extract some archives without problem. I don't believe the exact version of the tar command has any bearing on this problem. I've had some correspondence with the tar maintainers and they are not of a mind to fix tar, and would consider such a fixed version to be very badly broken. The problem stems from the vaporous nature of disk major,minor device number schemes as set forth in LANANNA. When combined with the use of the LVM2 disk manager, you have the whole disk addressed at a 253 or 254 major device. Now, I come along, and add the module pktcdvd module to my kernels build so that my burner can be used as a packet device. On the next boot, pktcdvd (also an experimental service/device according to LANANNA) grabs the disks major number and shoves the disk down to 252 or so. Absolutely NOTHING else has changed, but tar, in its infinite wisdom, sees this as a whole new disk and tries to do a level 0 backup of the whole 200gb drive. The cure turned out to be very simple to apply, and I'd assume that it requires the dm-mod module to remain a module, and that this fix will not work if its built into the kernel. To remain a module, and still boot to it, then of course an initrd must be built and installed also, not a difficult requirement. Add this line to your /etc/modprobe.conf: options dm-mod major=238 Which will take it out of the LANANNA 'experimental' category and give it a good stable home major device number of 236. Then write a small shell script to loop amanda through at least a dumpcycles worth of backups plus 2 or 3 more so that this new number then becomes the 'std' number it is used to seeing. Once this is done, than tar, and amanda, will be happier than a clam, till the next time the kernel guys decide to do something without bothering to consult all us frogs. When that might be, I have NDI. I personally, would like to see tar modified so that its reliance on this can be switched off until such time as tar has updated all its index files, at which point that command option could be removed with no ill effects. But the tar people are adamant that this is not going to happen. Cheers Gene. |