LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2024, 08:15 AM   #1
Jason.nix
Member
 
Registered: Feb 2023
Posts: 561

Rep: Reputation: 10
Post 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.
 
Old 04-09-2024, 08:23 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,780

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
The df command shows space on mounted filesystems. Where is /dev/LB/Data mounted? Show the output from "lsblk -f".
 
Old 04-09-2024, 08:42 AM   #3
Jason.nix
Member
 
Registered: Feb 2023
Posts: 561

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by rknichols View Post
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
 
Old 04-09-2024, 09:06 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,867

Rep: Reputation: 7312Reputation: 7312Reputation: 7312Reputation: 7312Reputation: 7312Reputation: 7312Reputation: 7312Reputation: 7312Reputation: 7312Reputation: 7312Reputation: 7312
so it is not mounted. You need to mount it (check how /home is mounted, you need to do the same way)
 
1 members found this post helpful.
Old 04-09-2024, 10:18 AM   #5
Jason.nix
Member
 
Registered: Feb 2023
Posts: 561

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by pan64 View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb keyboard identified and events shown but key character not shown on the prompt flyxtop Linux - Software 0 11-30-2013 07:45 AM
[SOLVED] Logical volumes not available on reboot Vanyel Linux - Server 11 09-19-2011 10:23 AM
User shown as "already exist" when there is no user directory shown on home directory Sharpeye Linux - Newbie 3 03-18-2009 01:17 AM
While booting no option is shown for Linux! Only windows xp is shown!! mon avis Linux - General 7 08-06-2006 04:14 PM
I did not know about logical volumes gezi Linux - Newbie 5 04-27-2005 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration