LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   One of the logical volumes is not shown (https://www.linuxquestions.org/questions/linux-newbie-8/one-of-the-logical-volumes-is-not-shown-4175735832/)

Jason.nix 04-09-2024 08:15 AM

One of the logical volumes is not shown
 
Hello,
The system has the following logical volumes:
Code:

# /sbin/lvdisplay
  --- Logical volume ---
  LV Path                /dev/LB/Root
  LV Name                Root
  VG Name                LB
  LV UUID                1b37gu-87k3-hoOG-xPzo-D166-TH0C-AnuyCd
  LV Write Access        read/write
  LV Creation host, time L-B, 2024-04-09 15:35:43 +0330
  LV Status              available
  # open                1
  LV Size                74.50 GiB
  Current LE            19073
  Segments              1
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          254:0
 
  --- Logical volume ---
  LV Path                /dev/LB/Home
  LV Name                Home
  VG Name                LB
  LV UUID                0LuQxk-f8Ux-Iyo4-3R51-p8nY-xOZs-JcbBn8
  LV Write Access        read/write
  LV Creation host, time L-B, 2024-04-09 15:35:57 +0330
  LV Status              available
  # open                1
  LV Size                18.62 GiB
  Current LE            4768
  Segments              1
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          254:1
 
  --- Logical volume ---
  LV Path                /dev/LB/Data
  LV Name                Data
  VG Name                LB
  LV UUID                lIvuOr-8drz-88W1-uVJU-IWiT-Mpm9-19d5YV
  LV Write Access        read/write
  LV Creation host, time L-B, 2024-04-09 15:37:33 +0330
  LV Status              available
  # open                0
  LV Size                <418.87 GiB
  Current LE            107230
  Segments              1
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          254:2

But there is no Data in the following output:
Code:

# df
Filesystem          1K-blocks    Used Available Use% Mounted on
udev                32947820      0  32947820  0% /dev
tmpfs                6594356    692  6593664  1% /run
/dev/mapper/LB-Root  76317468 1722272  70672664  3% /
tmpfs                32971772      0  32971772  0% /dev/shm
tmpfs                    5120      0      5120  0% /run/lock
/dev/mapper/LB-Home  19047080      44  18054168  1% /home
tmpfs                6594352      0  6594352  0% /run/user/0
tmpfs                6594352      0  6594352  0% /run/user/1000

How do I add it?

Thank you.

rknichols 04-09-2024 08:23 AM

The df command shows space on mounted filesystems. Where is /dev/LB/Data mounted? Show the output from "lsblk -f".

Jason.nix 04-09-2024 08:42 AM

Quote:

Originally Posted by rknichols (Post 6494980)
The df command shows space on mounted filesystems. Where is /dev/LB/Data mounted? Show the output from "lsblk -f".

Hi,
Thank you so much for your reply.
The output is:
Code:

# lsblk -f
NAME        FSTYPE      FSVER    LABEL UUID                                  FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                         
└─sda1      LVM2_member LVM2 001      Dx71DT-ea3d-D2fp-lEmC-zxfr-YYqp-aC0ehP               
  ├─LB-Root ext4        1.0            f683d121-8d8d-4060-bc56-b7f21b72df24    67.3G    2% /
  ├─LB-Home ext4        1.0            367133d1-b785-42d1-bf5c-4628e4e188c0    17.2G    0% /home
  └─LB-Data ext4        1.0            201e5cc4-f05e-439e-b09f-6550aaf94c85                 
sr0


pan64 04-09-2024 09:06 AM

so it is not mounted. You need to mount it (check how /home is mounted, you need to do the same way)

Jason.nix 04-09-2024 10:18 AM

Quote:

Originally Posted by pan64 (Post 6494987)
so it is not mounted. You need to mount it (check how /home is mounted, you need to do the same way)

Hi,
Thank you so much.
I created a directory called data under the /mnt/ directory and edited the /etc/fstab file as follows:
Code:

/dev/mapper/LB-Root /              ext4    errors=remount-ro 0      1
/dev/mapper/LB-Home /home          ext4    defaults        0      2
/dev/mapper/LB-Data /mnt/data      ext4    defaults        0      2
/dev/sr0        /media/cdrom0  udf,iso9660 user,noauto    0      0

Then:
Code:

# mount -a
# systemctl daemon-reload

Problem solved.


All times are GMT -5. The time now is 09:35 PM.