/ left as ext3 after 11SP3 to 12SP1 upgrade

Hi,
After upgrading my SLES from 11SP3 to 12SP1 I found out that the / root file system is still ext3 as it was before.
I think that’s why I can’t use snapshots on /

snapper create-config -f ext3 /
Creating config failed (invalid filesystem type).

From https://www.suse.com/documentation/sles-12/stor_admin/data/sec_filesystems_major.html
I read that:
To convert the file system to Btrfs, take the file system offline, then enter:
sudo btrfs-convert

But I can’t umount / !!!

Is there any way to have snapper working on my system?
Is there any way to convert my ext4 / to btrfs ( leaving the system bootable and working :slight_smile: ) ?

Thanks a lot,
Emanuele

On 08/23/2016 09:54 AM, emanuele lombardi wrote:[color=blue]

Hi,
After upgrading my SLES from 11SP3 to 12SP1 I found out that the / root
file system is still ext3 as it was before.
I think that’s why I can’t use snapshots on /

snapper create-config -f ext3 /
Creating config failed (invalid filesystem type).

From
https://www.suse.com/documentation/sles-12/stor_admin/data/sec_filesystems_major.html
I read that:
To convert the file system to Btrfs, take the file system offline, then
enter:
sudo btrfs-convert

But I can’t umount / !!![/color]

Sure you can, when you shutdown. Boot from external media to do the
conversion and then you should be able to move forward.

Person opinion: I’d probably just build a new box so that all of that is
setup properly. The conversion is really neat, and works, but I haven’t
messed with it much with root filesystems along with major OS upgrades to
think it’s as great as a new install.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…

Dear AB,
Do you feel converting an extr3 root partition to btrfs is a too risky job? Would you do it on a production machine of yours?

Unfortunately I can’t build a new box since my machine is physical, not a VM. Furthermore the upgrade from 11P3 to 12P1 went quite smoothly and now I have a properly running system.

I guess that if I boot from an external device and convert my boot partition from ext3 to btrfs, before booting the new btrfs system I have to modify my /etc/fstab replacing in the first line ext3 with btrfs.

LABEL=sgiroot / ext3 acl,user_xattr 1 1
LABEL=sgiswap swap swap defaults 0 0
LABEL=sgiboot /boot/efi vfat users,gid=0,umask=0002,utf8=true 0 0

Do you think I need to do other changes?

Thanks a lot for your answers,
Emanuele

On 09/06/2016 01:24 AM, emanuele lombardi wrote:[color=blue]

Dear AB,
Do you feel converting an extr3 root partition to btrfs is a too risky
job? Would you do it on a production machine of yours?[/color]

If I had a production system and had to choose between keeping ext3 with
its issues, or “risking” converting to BtrFS, I’d convert ina heartbeat
because ext3’s insanely-slow fsck every couple-dozen mounts (or some
period of time) is insane to me, and Murphy always gets me if I leave that
option out there right when I need it least. I loathe that “feature”
unreasonably, perhaps, but BtrFS makes this even better.

The reason I’d still do the conversion is because the way BtrFS works is
that it does not actually convert the entire old filesystem, but instead
just uses it as a base snapshot and then adds on top of it. This is
REALLY neat, because it means that if you want to you can go back to the
base snapshot later and have things just as they are at the time you
“converted” from ext3, and everything should still work as it did back
then, slow fsck’s and all.
[color=blue]

Unfortunately I can’t build a new box since my machine is physical, not
a VM. Furthermore the upgrade from 11P3 to 12P1 went quite smoothly and
now I have a properly running system.[/color]

I did a few of those (11 to 12 SP1 upgrades) earlier this year and was
also pleasantly surprised by how easy it was. It’s a huge upgrade in
terms of low-level technologies (kernel, systemd, BtrFS potentially) but
it seems to work better than expected anyway.
[color=blue]

I guess that if I boot from an external device and convert my boot
partition from ext3 to btrfs, before booting the new btrfs system I have
to modify my /etc/fstab replacing in the first line ext3 with btrfs.

LABEL=sgiroot / ext3 acl,user_xattr
1 1
LABEL=sgiswap swap swap defaults
0 0
LABEL=sgiboot /boot/efi vfat
users,gid=0,umask=0002,utf8=true 0 0

Do you think I need to do other changes?[/color]

Nothing else comes to mind, but as long as you are following the docs you
should be fine.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…

I decided to go and find the documentation, and found some here:

https://www.suse.com/documentation/sles-12/stor_admin/data/sec_filesystems_major.html

Based on this, where it specifically indicates “To convert data
volumes…” I would probably leave the main filesystem alone in your case
until a proper replacement of the hard drive can be done moving over old data.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…