Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
I am new in this.
But I created a logical volume in another machine. And I sore information.
Something was wring with that machine that I ave to disconnect physical disk and connected in another machine. But I did not export any logical volume, volume group or Physical group.
I connect disk in another machine; an I can see my phycial volume, volume group even my logical volume; but when I mount Logical volume there is no data in "disk".
this what i did:
root@ugilHomeServ:/dev/disk/by-uuid# lvscan
ACTIVE '/dev/sysvg/lvswap' [16.00 GiB] inherit
ACTIVE '/dev/sysvg/lvroot' [20.00 GiB] inherit
ACTIVE '/dev/sysvg/lvhome' [40.00 GiB] inherit
ACTIVE '/dev/sysvg/lvtmp' [40.00 GiB] inherit
ACTIVE '/dev/sysvg/lvusr' [60.00 GiB] inherit
ACTIVE '/dev/sysvg/lvusr-local' [60.00 GiB] inherit
ACTIVE '/dev/sysvg/lvopt' [80.00 GiB] inherit
ACTIVE '/dev/sysvg/lvvar' [80.00 GiB] inherit
ACTIVE '/dev/sysvg/lvback-sys' [80.00 GiB] inherit
ACTIVE '/dev/sysvg/lvBackUp' [454.57 GiB] inherit
ACTIVE '/dev/virtualsys/win' [100.00 GiB] inherit
ACTIVE '/dev/virtualsys/rhel' [100.00 GiB] inherit
ACTIVE '/dev/virtualsys/centos' [100.00 GiB] inherit
ACTIVE '/dev/virtualsys/fedora' [100.00 GiB] inherit
ACTIVE '/dev/virtualsys/backup' [65.75 GiB] inherit
ACTIVE '/dev/backupsys/lvmusic' [100.00 GiB] inherit
ACTIVE '/dev/backupsys/lvmovies' [100.00 GiB] inherit
ACTIVE '/dev/backupsys/lvpictures' [100.00 GiB] inherit
ACTIVE '/dev/backupsys/lvdocs' [165.75 GiB] inherit
root@ugilHomeServ:/dev/disk/by-uuid# lvchange -ay /dev/backupsys/lvdocs
root@ugilHomeServ:/dev/disk/by-uuid# mkdir /media/lvdocs
root@ugilHomeServ:/dev/disk/by-uuid# mount /dev/backupsys/lvdocs /media/lvdocs
root@ugilHomeServ:/dev/disk/by-uuid#
root@ugilHomeServ:/dev/disk/by-uuid#
root@ugilHomeServ:/dev/disk/by-uuid#
root@ugilHomeServ:/dev/disk/by-uuid# ls -la /media/lvdocs
total 8
drwxr-xr-x 2 root root 4096 dic 31 12:19 .
drwxr-xr-x 4 root root 4096 ene 18 18:12 ..
From here, it's impossible to find out what happened.
You could use a filesystem debugger to see if there is anything left. If this is an ext4 filesystem, use debugfs. It's not hard to use, and you will find plenty of tutorials and other info. For xfs, the debugger is xfs_db (a bit less intuitive in my opinion).
By the way, what about the other backupsys volumes?
Don't be concerned about the lack of exporting. All that does is make the LVs invisible so that removal of the disk won't come as a surprise to the current system and the LVs won't be seen automatically when the disk is connected to a new system. But, if the filesystems were never unmounted, then data might not have actually been written to the drive. Did you properly shut down that first system, or just "pull the plug" and disconnect the disk? In that case, fsck would see the unclean filesystem, and you might have to use tools like photorec to search for file data in that filesystem.
Another possibility is that the filesystem was not mounted when you were writing the files, and those files were actually stored under the mount point directory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.