Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lvm2 mounting errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
plice
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2009
Posts: 84
Location: Poland

PostPosted: Fri Aug 23, 2013 12:53 pm    Post subject: lvm2 mounting errors Reply with quote

Hi,

I had strange situation. I've powered down the PC. When I've stared it up, bios won't see one of the 3 TB HD. I haven't realised that so LVM couldn't find 1 HD.
I'm not sure why bios didn't see the HD, so I've moved the cables around etc and go the HD online.

Now LVM can see everyting but it's complaining:

I have a problem with ftp and TLS . . . for some reason when the TLS is running i can log in but client won't show folders, fails to fully connect

I can mount the drive with--partial and I can see all the data is there. How do I go about this problem? Almost all the HD are full so I can't move the data around . ..

EDIT:

stupid me :( i've used vgreduce --removemissing on that missing HD. I can't re-add now:

vgcfgrestore server
Cannot restore Volume Group server with 1 PVs marked as missing.
Restore failed.


pvs -v
Scanning for physical volume names
There are 1 physical volumes missing.
There are 1 physical volumes missing.
PV VG Fmt Attr PSize PFree DevSize PV UUID
/dev/sda1 server lvm2 a-- 2.73t 0 2.73t oym1Ej-PGyB-yqal-oM0y-KU8i-XC5J-SoHex2
/dev/sdb1 server lvm2 a-- 2.73t 0 2.73t zeS1Y0-RKxN-uHMz-DJkc-GyJ2-Gt6Q-ClbFrM
/dev/sdc4 server lvm2 a-- 1.78t 0 1.78t O5398M-Lrry-C4lg-kaVY-T30C-uSZ5-S42Yqx
/dev/sdd1 server lvm2 a-m 2.73t 0 2.73t 6OyA7E-nnu9-Jp0d-VIaP-DetR-jOvm-Lr1vA5


what's the 'm' attribute? sdd1 is the HD that i was having trouble with.

Code:
 pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdc4
  VG Name               server
  PV Size               1.78 TiB / not usable 4.93 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              467012
  Free PE               0
  Allocated PE          467012
  PV UUID               O5398M-Lrry-C4lg-kaVY-T30C-uSZ5-S42Yqx
   
  --- Physical volume ---
  PV Name               /dev/sda1
  VG Name               server
  PV Size               2.73 TiB / not usable 4.43 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              715396
  Free PE               0
  Allocated PE          715396
  PV UUID               oym1Ej-PGyB-yqal-oM0y-KU8i-XC5J-SoHex2
   
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               server
  PV Size               2.73 TiB / not usable 3.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              715396
  Free PE               0
  Allocated PE          715396
  PV UUID               zeS1Y0-RKxN-uHMz-DJkc-GyJ2-Gt6Q-ClbFrM
   
  --- Physical volume ---
  PV Name               /dev/sdd1
  VG Name               server
  PV Size               2.73 TiB / not usable 3.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              715396
  Free PE               0
  Allocated PE          715396
  PV UUID               6OyA7E-nnu9-Jp0d-VIaP-DetR-jOvm-Lr1vA5



Code:
 lvdisplay
  --- Logical volume ---
  LV Path                /dev/server/share
  LV Name                share
  VG Name                server
  LV UUID                WYNrcW-Vwvl-fT5C-tSqO-I2gU-z4lA-oWEEdg
  LV Write Access        read/write
  LV Creation host, time ,
  LV Status              available
  # open                 1
  LV Size                9.97 TiB
  Current LE             2613200
  Segments               4
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0
   


Code:
vgdisplay
  --- Volume group ---
  VG Name               server
  System ID             
  Format                lvm2
  Metadata Areas        4
  Metadata Sequence No  11
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                4
  Act PV                3
  VG Size               9.97 TiB
  PE Size               4.00 MiB
  Total PE              2613200
  Alloc PE / Size       2613200 / 9.97 TiB
  Free  PE / Size       0 / 0   
  VG UUID               OC1lSo-NLXE-748C-J7BI-MuVP-nxnK-TXWFUa
Back to top
View user's profile Send private message
ianw1974
Guru
Guru


Joined: 18 Oct 2006
Posts: 387
Location: UK and Poland

PostPosted: Mon Sep 02, 2013 10:43 am    Post subject: Reply with quote

Perhaps try a:

Code:
vgchange -ay


to activate it, does that help?

You can also try in addition to this the pvscan and vgscan commands as well, but normally when I've had a problem with LVM errors because of it being inactive/missing, I've used the vgchange command.
_________________
Ian Walker

Light travels faster than sound. This is why some people appear bright until you hear them speak.........

Linux Systems Limited | Masternode Monitoring
Back to top
View user's profile Send private message
plice
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2009
Posts: 84
Location: Poland

PostPosted: Tue Sep 03, 2013 11:05 am    Post subject: Reply with quote

Yeh, i could only partially activate the LVM. It still omitted one HD. I've screwed up, removing the missing drive. Once I removed the drive, then i have tried to fix the LVM, which was a mistake. Then motherboard seen the missing HD!! It was too late . . .. if only i didn't remove it from LVM!!! I've only lost like 6 TB :(

Had my lesson, I'm not using lvm for important stuff, only ext4. It's easier to deal with :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum