LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-15-2015, 12:27 AM   #1
silicman
LQ Newbie
 
Registered: Oct 2015
Posts: 4

Rep: Reputation: Disabled
Restore vlm snapshot lost data?


Update: Sorry guys! I found out that my root user's home folder, /Home/Downloads, default is link to /root folder which inside / folder. I Just create a normal user, set Home directory is /home/Neo, and it's ok now. Newbie problems! Thank guys!




When I restore / (root partition in lvm) from snapshot, I lost my /Home/Downloads data. Here is my partition scheme.

Code:
[root@neovfx ~]# df -Th
Filesystem                    Type   Size  Used Avail Use% Mounted on
/dev/mapper/vg_neovfx-lv_root ext4    97G  9.9G   82G  11% /
tmpfs                         tmpfs  7.8G   80K  7.8G   1% /dev/shm
/dev/sdb1                     ext4   194M   35M  150M  19% /boot
/dev/mapper/vg_neovfx-lv_home ext4   739G  197M  701G   1% /home
tmpfs 7.8G 80K 7.8G 1% /dev/shm <<< I don't what is this? I didn't make it

Code:
[root@neovfx home]# lsblk
NAME                                  MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb                                     8:16   0 931.5G  0 disk
├─sdb1                                  8:17   0   200M  0 part /boot
└─sdb2                                  8:18   0 931.3G  0 part
  ├─vg_neovfx-lv_root-real (dm-0)     253:0    0  97.7G  0 lvm
  │ ├─vg_neovfx-lv_root (dm-1)        253:1    0  97.7G  0 lvm  /
  │ └─vg_neovfx-lv_root_snap (dm-3)   253:3    0  97.7G  0 lvm
  ├─vg_neovfx-lv_root_snap-cow (dm-2) 253:2    0  64.1G  0 lvm
  │ └─vg_neovfx-lv_root_snap (dm-3)   253:3    0  97.7G  0 lvm
  ├─vg_neovfx-lv_swap (dm-4)          253:4    0  19.5G  0 lvm  [SWAP]
  └─vg_neovfx-lv_home (dm-5)          253:5    0   750G  0 lvm  /home


Code:
[root@neovfx ~]# pvs
  PV         VG        Fmt  Attr PSize   PFree
  /dev/sdb2  vg_neovfx lvm2 a--  931.31g    0

Code:
[root@neovfx ~]# vgs
  VG        #PV #LV #SN Attr   VSize   VFree
  vg_neovfx   1   4   1 wz--n- 931.31g    0
Code:
[root@neovfx ~]# lvs
  LV           VG        Attr       LSize   Pool Origin  Data%  Move Log Cpy%Sync Convert
  lv_home      vg_neovfx -wi-ao---- 750.00g                                     
  lv_root      vg_neovfx owi-aos---  97.66g                                     
  lv_root_snap vg_neovfx swi-a-s---  64.12g      lv_root   0.18                 
  lv_swap      vg_neovfx -wi-ao----  19.53g
Can someone tell me how to set default /Home folder to /home partition? Thank you.

Last edited by silicman; 10-15-2015 at 03:11 AM.
 
Old 10-25-2015, 09:17 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Quote:
Originally Posted by silicman View Post
Update: Sorry guys! I found out that my root user's home folder, /Home/Downloads, default is link to /root folder which inside / folder. I Just create a normal user, set Home directory is /home/Neo, and it's ok now.
Well done figuring it out yourself! (Off of the 0-reply list now.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to restore a RAW snapshot in ubuntu Juv1 Linux - Virtualization and Cloud 0 09-19-2015 09:45 PM
I lost most of my data, backup cannot restore. ThatPerson Linux - Distributions 4 09-14-2011 01:58 AM
can snapshot volumes used as full backup data ramesh24 Linux - Newbie 2 10-06-2009 01:45 PM
Howto recover lost and formatted data on lost partitions. Sören Schneider LinuxQuestions.org Member Success Stories 2 04-05-2006 07:38 AM
How to snapshot and restore Linux? yitzhakbg Linux - Software 0 12-14-2004 11:37 AM

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

All times are GMT -5. The time now is 07:46 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration