Ask Your Question
1

/dev/mapper/fedora-root is not a mounted XFS filesystem

asked 2018-11-10 17:33:41 -0500

tmdag gravatar image

updated 2018-11-10 17:36:01 -0500

So I am running out of space on my root on my almost fresh install of Fedora 28 server and therefore I am unable to make any updates. I am still surprised that this space management is so painful these days :( I googled around how can I extend my / filesystem and I've tried to follow. Via SSH, connected to fedora 28 server in question, I have tried the following:

Error Summary
-------------
Disk Requirements:
   At least 1004MB more space needed on the / filesystem.

> lsblk
NAME            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda               8:0    0 931.5G  0 disk 
├─sda1            8:1    0     1G  0 part /boot
└─sda2            8:2    0 930.5G  0 part 
  ├─fedora-root 253:0    0    25G  0 lvm  /
  └─fedora-swap 253:1    0   7.9G  0 lvm  [SWAP]

> df -Th
Filesystem              Type      Size  Used Avail Use% Mounted on
devtmpfs                devtmpfs   12G     0   12G   0% /dev
tmpfs                   tmpfs      12G  8.0K   12G   1% /dev/shm
tmpfs                   tmpfs      12G  1.3M   12G   1% /run
tmpfs                   tmpfs      12G     0   12G   0% /sys/fs/cgroup
/dev/mapper/fedora-root xfs        15G   15G  858M  95% /
tmpfs                   tmpfs      12G   40K   12G   1% /tmp
/dev/sda1               ext4      976M  379M  531M  42% /boot
tmpfs                   tmpfs     2.4G  4.0K  2.4G   1% /run/user/1002

> sudo lvextend /dev/mapper/fedora-root -L+5G 
  Size of logical volume fedora/root changed from 20.00 GiB (5120 extents) to 25.00 GiB (6400 extents).
  Logical volume fedora/root successfully resized.

> sudo lvdisplay
  --- Logical volume ---
  LV Path                /dev/fedora/swap
  LV Name                swap
  VG Name                fedora
  LV UUID                y03aBY-1EQV-oWvs-kiUC-X7cH-q2g6-g5pAbl
  LV Write Access        read/write
  LV Creation host, time localhost, 2018-08-24 18:18:36 -0700
  LV Status              available
  # open                 2
  LV Size                7.89 GiB
  Current LE             2020
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Logical volume ---
  LV Path                /dev/fedora/root
  LV Name                root
  VG Name                fedora
  LV UUID                gfN5JZ-tV0A-ZQr8-8cAe-FBV8-4Uem-BYf9Pu
  LV Write Access        read/write
  LV Creation host, time localhost, 2018-08-24 18:18:37 -0700
  LV Status              available
  # open                 1
  LV Size                25.00 GiB
  Current LE             6400
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

> df -Th
Filesystem              Type      Size  Used Avail Use% Mounted on
devtmpfs                devtmpfs   12G     0   12G   0% /dev
tmpfs                   tmpfs      12G  8.0K   12G   1% /dev/shm
tmpfs                   tmpfs      12G  1.3M   12G   1% /run
tmpfs                   tmpfs      12G     0   12G   0% /sys/fs/cgroup
/dev/mapper/fedora-root xfs        15G   15G  858M  95% /
tmpfs                   tmpfs      12G   40K   12G   1% /tmp
/dev/sda1               ext4      976M  379M  531M  42% /boot
tmpfs                   tmpfs     2.4G  4.0K  2.4G   1% /run/user/1002


> sudo xfs_growfs /dev/mapper/fedora-root
xfs_growfs: /dev/mapper/fedora-root is not a mounted XFS filesystem

> xfs_info /dev/mapper/fedora-root
xfs_info: /dev/mapper/fedora-root is not a mounted XFS filesystem

So therefore I do not understand why my mounted XFS filesystem of "/dev/mapper/fedora-root" is "not a mounted XFS filesystem" :( And ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2018-11-10 20:21:37 -0500

aeperezt gravatar image

Reading man xfs_growfs the instruction should be sudo xfs_growfs / not the device.

Reference:

"xfs_growfs expands an existing XFS filesystem (see xfs(5)). The mount-point argument is the pathname of the directory where the filesystem is mounted. The filesystem must be mounted to be grown (see mount(8)). The existing contents of the filesystem are undisturbed, and the added space becomes available for additional file storage."

edit flag offensive delete link more

Comments

thanks! that works as expected!

tmdag gravatar imagetmdag ( 2018-11-10 22:45:19 -0500 )edit

OK, good point - thanks a lot!!! Michal

mmilencki gravatar imagemmilencki ( 2019-03-09 19:50:08 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-11-10 17:33:41 -0500

Seen: 1,200 times

Last updated: Nov 10 '18