Debian: Duplicate inode on the same filesystem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
ZhangXiao |
Bug Description
Brief Description
-----------------
After installing the iso some files have the same inode.
Severity
-----------------
Critical: System/Feature is not usable after the defect
Steps to Reproduce
-----------------
Install iso.
Expected Behavior
-----------------
Files on the same filesystem don't have the same inode.
Actual Behavior
-----------------
Some files have the same inode on the same filesystem.
Reproducibility
-----------------
100% reproducible
System Configuration
-----------------
AIO-DX, AIO-SX
Load info (eg: 2022-03-
-----------------
Loads older than 21 June 2022, but I think this is day 0.
Last Pass
-----------------
?
Timestamp/Logs
-----------------
Proof of double inode, just after installing the iso (before running ansible bootstrap) :
root@controller
root@controller
root@controller
1
1
root@controller
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 20G 5,6G 13G 30% /var
root@controller
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 20G 5,6G 13G 30% /var
Alarms
-----------------
N/A
Test Activity
-----------------
Developer Testing
Workaround
-----------------
For the specific issue observed: recreate the affected files.
Changed in starlingx: | |
status: | In Progress → Fix Released |
Reviewed: https:/ /review. opendev. org/c/starlingx /integ/ +/852388 /opendev. org/starlingx/ integ/commit/ 2b1fbfd4bc5e8da a8fc2319af539ed 82d36a20de
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 2b1fbfd4bc5e8da a8fc2319af539ed 82d36a20de
Author: Zhang Xiao <email address hidden>
Date: Sat Aug 6 05:42:23 2022 -0700
Debian: Break hardlinks in /var
Here the root filesystem is managed by OSTree. OSTree is designed to
manage/deploy read-only filesystem. For read-only filesystem, hardlink
all files with same content is safe and can save disk space. It is a
good principle for readonly folders like /bin, /lib and so on. While
"/var" is somehow special that it is designed to store variable data
files, it can not be read-only, it must be read-write. Files in
"/var" should not be hardlinked together like other folders, break
them to make it.
Do the same for /usr/homedirs/home as it gets mounted at /var/home
at runtime.
Test Plan:
Pass: build ISO image
Pass: In runtime system, no hardlink in /var
Story: 2008862
Task: 45966
Related-Bug: #1983580
Change-Id: I1a61f919e0a60f 83e27b6c0bf402c 20c2d43abb4
Signed-off-by: Zhang Xiao <email address hidden>