On Mon, Mar 18, 2024 at 12:00 PM Andrei Borzenkov <arvidjaar@gmail.com> wrote:
Show
btrfs subvolume list
ID 256 gen 32 top level 5 path @ ID 258 gen 2793049 top level 256 path @/var ID 259 gen 2792589 top level 256 path @/usr/local ID 260 gen 2792932 top level 256 path @/tmp ID 261 gen 2788070 top level 256 path @/srv ID 262 gen 2792933 top level 256 path @/root ID 263 gen 2793049 top level 256 path @/opt ID 264 gen 2793048 top level 256 path @/home ID 265 gen 2790045 top level 256 path @/boot/grub2/x86_64-efi ID 266 gen 2790045 top level 256 path @/boot/grub2/i386-pc ID 267 gen 2792932 top level 256 path @/.snapshots ID 1873 gen 2178925 top level 258 path @/var/lib/docker/btrfs/subvolumes/b8e0c68b7ab52b2c7108e1fe23ca006d20c01e08323c84c91da09d7fecc9e74a ID 1874 gen 2178925 top level 258 path @/var/lib/docker/btrfs/subvolumes/376e4230fa012968c602e6003a24c0836ece125c01a424178b3e3f47501b394c ID 1875 gen 2178925 top level 258 path @/var/lib/docker/btrfs/subvolumes/000fb2a53702b6e1d6cc38080e0e713d144ff8470b50bcddc92a47714adb141c ID 1876 gen 2178925 top level 258 path @/var/lib/docker/btrfs/subvolumes/e7e12c39907dac259384564ec346bfe29218705db326eddd7af403238fca4457 ID 1877 gen 2178925 top level 258 path @/var/lib/docker/btrfs/subvolumes/5d6ad41461e51fddb0b4bb9fa55b5c70731e49570ff1b9961ace9200094146e9 ID 1878 gen 2178925 top level 258 path @/var/lib/docker/btrfs/subvolumes/dc572a4f436e34734cad6032a0e95045e7787d2eaf10d29ccb7df11150247dbf ID 1879 gen 2178925 top level 258 path @/var/lib/docker/btrfs/subvolumes/1dd4fa4d14c5812b01f60bee9b11a8187541c8d667ebc9a02cc100ac6ccb6d4f ID 1880 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/7065047d8424ae6e9806c92d434db7f385b67b2a4af79b1efdd31b76462fae5c ID 1881 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/77daab1f179e9f253c6349f1d55606915ce69003c96c7c264a737138be448055 ID 1882 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/85924c5aa9456fac898a9efa799f8bc8abffc0be29953ff076cb607199df8fcc ID 1883 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/26efd3e91e24a62ca2b009c86505c1123af35287e5efa88a687bc3f31f139b06-init ID 1884 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/26efd3e91e24a62ca2b009c86505c1123af35287e5efa88a687bc3f31f139b06 ID 1885 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/1ca53dbdf061f637c6bb2c1901f0ef1ef867a9942b76b4e96c0834b6c3ec6048-init ID 1886 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/1ca53dbdf061f637c6bb2c1901f0ef1ef867a9942b76b4e96c0834b6c3ec6048 ID 1887 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/c06e28831e2eb180699ca6b2c76d053b4911aecc092db0eb52d440b43b2dbd5f-init ID 1888 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/c06e28831e2eb180699ca6b2c76d053b4911aecc092db0eb52d440b43b2dbd5f ID 1889 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/0be63bf5c563f6dabd77b859b7b830fac34df01336a0e265144e9904ffeefd41-init ID 1890 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/0be63bf5c563f6dabd77b859b7b830fac34df01336a0e265144e9904ffeefd41 ID 1891 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/7ec39b6885a13b37fc10661c4eacead55f6d13e0fafebb0cb66a40507d2ad532-init ID 1892 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/7ec39b6885a13b37fc10661c4eacead55f6d13e0fafebb0cb66a40507d2ad532 ID 1893 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/cc09a7e4aeba00c45b3d2f071198d87687d7baaaff2d895ddf1ac3703670da78-init ID 1894 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/cc09a7e4aeba00c45b3d2f071198d87687d7baaaff2d895ddf1ac3703670da78 ID 1895 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/7e63d5d43ddacb66850450b370c2457566fa015e2e9e7302ae92a773418bb9af-init ID 1896 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/7e63d5d43ddacb66850450b370c2457566fa015e2e9e7302ae92a773418bb9af ID 1897 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/bf78ed7c6c05280d4d741a7aae8defbf66f15dfa01a2aff415af94d35aae93d0-init ID 1898 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/bf78ed7c6c05280d4d741a7aae8defbf66f15dfa01a2aff415af94d35aae93d0 ID 1899 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/da6f38dd34e363e27e30bed308cba617fe8067e0253c69228af3fbbc8095c75c-init ID 1900 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/da6f38dd34e363e27e30bed308cba617fe8067e0253c69228af3fbbc8095c75c ID 1901 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/e296382a1285a9671d3cc2d52b41aff760ccebf63de6a6e034418ad2e9162303-init ID 1902 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/e296382a1285a9671d3cc2d52b41aff760ccebf63de6a6e034418ad2e9162303 ID 1909 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/0f0e184ce9fb4f0c858a7ab10efa57630da9ed3282cb116dfb86a5599b367f14-init ID 1910 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/0f0e184ce9fb4f0c858a7ab10efa57630da9ed3282cb116dfb86a5599b367f14 ID 1911 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/7dae94998a425a4cdc655193d0948c0fc75a1259e9f5b81b75d766e50bb06c93-init ID 1912 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/7dae94998a425a4cdc655193d0948c0fc75a1259e9f5b81b75d766e50bb06c93 ID 1913 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/146693cd1a833d7fdfe5f72e1a92a91032bf90730c418cc7280602b1c5558449-init ID 1914 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/146693cd1a833d7fdfe5f72e1a92a91032bf90730c418cc7280602b1c5558449 ID 1915 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/08cb13cd4f7b658203229cedb8dc28f3256f57a7b11f24b319df574f38a26aca-init ID 1916 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/08cb13cd4f7b658203229cedb8dc28f3256f57a7b11f24b319df574f38a26aca ID 1917 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/6ac41b371fff09739aedf60da1a422124e44dee7578151ad5df0f5bf94696b29-init ID 1918 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/6ac41b371fff09739aedf60da1a422124e44dee7578151ad5df0f5bf94696b29 ID 1919 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/76979eab5f5cc0e436d6acdac083b1680ed958a824d3fb5a2b5db3024a5589cc-init ID 1920 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/76979eab5f5cc0e436d6acdac083b1680ed958a824d3fb5a2b5db3024a5589cc ID 1921 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/3dbd4c22b34f7f895102c3c6924728667195d9b116a8c60fe61e9e3731c663f6-init ID 1922 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/3dbd4c22b34f7f895102c3c6924728667195d9b116a8c60fe61e9e3731c663f6 ID 1952 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/4022173c8c4c87c7d6cec6789db336867f9c950b222202fa0ffc815e05964ae4-init ID 1953 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/4022173c8c4c87c7d6cec6789db336867f9c950b222202fa0ffc815e05964ae4 ID 1960 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/76333786da57ce9a6e83f0a47381aada51894ddebc45d86bea6c140ae6582e12-init ID 1961 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/76333786da57ce9a6e83f0a47381aada51894ddebc45d86bea6c140ae6582e12 ID 1962 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/e05936ac0a4f0811248e4395ddf409987f73b7efa882638142ea6920e3302550-init ID 1963 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/e05936ac0a4f0811248e4395ddf409987f73b7efa882638142ea6920e3302550 ID 1964 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/2177db6d0978d71e32ad0814f427b81f085e1f6c6c15e551f626c7ee43b75865-init ID 1965 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/2177db6d0978d71e32ad0814f427b81f085e1f6c6c15e551f626c7ee43b75865 ID 1966 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/350cd4a940e24406f2599ef4a415405a6ad84c9f1726f05d75545599fa33ba2c-init ID 1967 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/350cd4a940e24406f2599ef4a415405a6ad84c9f1726f05d75545599fa33ba2c ID 1968 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/b23036d89498bb7d14aa81319f31c0688554765ab8a15e5164341e45912379fd-init ID 1969 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/b23036d89498bb7d14aa81319f31c0688554765ab8a15e5164341e45912379fd ID 1970 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/ca0ba853ccf82c6c56cc2c746171a3be8f4d201eb8730bf4b5b2e8930a8d1cd0-init ID 1971 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/ca0ba853ccf82c6c56cc2c746171a3be8f4d201eb8730bf4b5b2e8930a8d1cd0 ID 1972 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/bf83cdad8560fb1dfe8103c3fea24da4452921f4fea0cc69f9099fdb76abdc8d-init ID 1973 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/bf83cdad8560fb1dfe8103c3fea24da4452921f4fea0cc69f9099fdb76abdc8d ID 1974 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/1a3c4f0a62c83ec0736ad4bc9f34961b3b3ea58440f03d1528254e7ca8769028-init ID 1975 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/1a3c4f0a62c83ec0736ad4bc9f34961b3b3ea58440f03d1528254e7ca8769028 ID 1976 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/46789fcea7e3379b76bd8013d2b6684ad1de6258b2050f4579abd5d4dbed9aac-init ID 1977 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/46789fcea7e3379b76bd8013d2b6684ad1de6258b2050f4579abd5d4dbed9aac ID 1978 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/0d80161507f2d72854a563dc739eca3a7ee41d58720eba325bd6d633f4cc57f6-init ID 1979 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/0d80161507f2d72854a563dc739eca3a7ee41d58720eba325bd6d633f4cc57f6 ID 1980 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/aaa9176d8edf5c4729e17c655fcff765120fa0185fb2eeadd4aac83c9d12673c-init ID 1981 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/aaa9176d8edf5c4729e17c655fcff765120fa0185fb2eeadd4aac83c9d12673c ID 1982 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/34e405fbcc0f5477f75e84c386c99154031b3ad4a9b08779a6eb82182f9cfcce-init ID 1983 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/34e405fbcc0f5477f75e84c386c99154031b3ad4a9b08779a6eb82182f9cfcce ID 1984 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/f2f5dd27a497ac08a22713b0cd7efb01de4b8646c76501417869b3a9bca9a9c9-init ID 1985 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/f2f5dd27a497ac08a22713b0cd7efb01de4b8646c76501417869b3a9bca9a9c9 ID 1986 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/5c75769485df3dd06944224a8356cfccbcda33536cdc28bdbad34a69662643ae-init ID 1987 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/5c75769485df3dd06944224a8356cfccbcda33536cdc28bdbad34a69662643ae ID 1988 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/82add292cfdee3313605401155fff171b2a5bc37bfa5fe4b0d2092d14a4d57cd-init ID 1989 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/82add292cfdee3313605401155fff171b2a5bc37bfa5fe4b0d2092d14a4d57cd ID 1990 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/2ee48ce456b9bfc0e022215e97ccdad7e227ba6562ad72f588fc416e787f9fe7-init ID 1991 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/2ee48ce456b9bfc0e022215e97ccdad7e227ba6562ad72f588fc416e787f9fe7 ID 1992 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/05d048cb5e27a3fe488319cf418de23a3c6c11b7f7046fbb2af07a5e33e787b0-init ID 1993 gen 2444022 top level 258 path @/var/lib/docker/btrfs/subvolumes/05d048cb5e27a3fe488319cf418de23a3c6c11b7f7046fbb2af07a5e33e787b0 ID 2978 gen 2788072 top level 258 path @/var/lib/machines ID 3387 gen 2784462 top level 267 path @/.snapshots/1405/snapshot ID 3388 gen 2784466 top level 267 path @/.snapshots/1406/snapshot btrfs subvolume get-default
ID 3388 gen 2784466 top level 267 path @/.snapshots/1406/snapshot snapper list
# | Type | Pre # | Date | User | Cleanup | Description | Userdata ------+--------+-------+---------------------------------+------+---------+--------------+------------- 0 | single | | | root | | current | 1405 | pre | | Wed 13 Mar 2024 12:15:29 PM CET | root | number | zypp(zypper) | important=no 1406* | post | 1405 | Wed 13 Mar 2024 12:16:02 PM CET | root | number | | important=no
lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS sda nvme0n1 ├─nvme0n1p1 vfat FAT32 ESP 0020-DBBE 580.4M 10% /boot/efi ├─nvme0n1p2 ├─nvme0n1p3 btrfs 6df208b6-6d8d-4798-b9d1-12d3c519ee3a 31.9G 93% /var/lib/docker/btrfs │ /var │ /usr/local │ /tmp │ /boot/grub2/x86_64-efi │ /opt │ /home │ /root │ /srv │ /boot/grub2/i386-pc │ /.snapshots │ / └─nvme0n1p4 swap 1 9f5e92d4-b8d0-48e7-b16d-cd272e4e66a7 [SWAP] I've also looked at errors (btrfs device stats), and I don't see any. And there is nothing in the journal that I can see. I'm not sure what all the docker stuff is. It is installed. But I haven't used it in ages.
snapper ls puts a star after the snapshot number.
For some reason, this is the only snapshot that exists (a pre/post pair made by zypper) after the one from the initial install (#0) . All previous ones have been purged.
On Mon, Mar 18, 2024 at 10:51 AM Andrei Borzenkov <arvidjaar@gmail.com> wrote:
On Mon, Mar 18, 2024 at 12:39 PM Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
Hmmm. I see.
So if I am happy with snapshot 1406, I would 'snapper rollback 1406'
Correct. Or boot into this snapshot and do "snapper rollback".
I ask because snapper seems very powerful to the point where I get suspicious. This is the computer version of "measure twice, cut once".
On Mon, Mar 18, 2024 at 10:05 AM Andrei Borzenkov < arvidjaar@gmail.com> wrote:
On Mon, Mar 18, 2024 at 11:03 AM Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
I have a strange (to me) situation on a Tumbleweed system with
btrfs filesystems. Due to issues updating to KDE6, I had to rollback. And
Snapshots *are* read-only by definition. To revert to snapshot
content
you need to perform rollback which clones snapshot into writable subvolume.
At the mount level, they are not mounted read-only. So it must be
to make that the current content? the rollback did not really roll back. So I snapper rm'd the various pre/post items so that the snapshot before the attempted update was the default one. It is now sorted so that it boots into the snapshot that I want. All of the file systems are mounted rw. I see this in the mount command. There are no ro file systems (except /boot/uefi). However, when I try to write to most of the file systems, it complains that they are read-only. the case that somewhere there is a flag that the file systems are read-only. I've only encountered this at the mount level. I tried a mount -oremount,rw on them, and it completes without a complaint. But there is no change. And as the mount command lists that they are rw, this is no surprise. I am bnot mounting into a read-only snapshot. Or at least I am not choosing that when booting. It is just the default snapshot that is being used.
Where else other than via mount can a file system be made
read-only? And how to correct that?
-- Roger Oberholtzer
-- Roger Oberholtzer
-- Roger Oberholtzer
-- Roger Oberholtzer