Ask Your Question
1

Cannot mount lv_home after resizing LVM

asked 2013-07-26 07:00:45 -0500

sarmelion gravatar image

Hello guys.

I wanted to re size my partition and create a new one. I boot a live cd I re size the partition and create an non allocated space lvdisplay gives me:

lvdisplay

--- Logical volume --- LV Path /dev/VolGroup/lv_home LV Name lv_home VG Name VolGroup LV UUID UuMEun-ct2c-S2zR-LoNI-5TZo-mTWj-HeFqkO LV Write Access read/write LV Creation host, time , LV Status suspended # open 0 LV Size 320.00 GiB Current LE 10240 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0

--- Logical volume --- LV Path /dev/VolGroup/lv_swap LV Name lv_swap VG Name VolGroup LV UUID ZgX4sl-alLF-DXJe-pS3u-Vinx-frrf-Ap9pG2 LV Write Access read/write LV Creation host, time , LV Status suspended # open 0 LV Size 5.81 GiB Current LE 186 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1

--- Logical volume --- LV Path /dev/VolGroup/lv_root LV Name lv_root VG Name VolGroup LV UUID 9VNZBI-QPSs-HLCt-q3Zu-tD9c-3csN-gI4GMX LV Write Access read/write LV Creation host, time , LV Status suspended # open 0 LV Size 50.00 GiB Current LE 1600 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2

////////////////////////////////////////////////////////////////// the parted /dev/sda unit s print gives me

parted /dev/sda unit s print

Model: ATA SAMSUNG HM501II (scsi) Disk /dev/sda: 976773168s Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags:

Number Start End Size File system Name Flags 1 2048s 4095s 2048s bios_grub 2 4096s 1028095s 1024000s ext4 root lvm 3 1028096s 656390096s 655362001s primary lvm

the number 3 (lv_home) is the partition that i cannot mount

///////////////////////////////////////////////////////////////

lvs --all

LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert lv_home VolGroup -wi-s---- 320.00g
lv_root VolGroup -wi-s---- 50.00g
lv_swap VolGroup -wi-s---- 5.81g

/////////////////////////////////////////////////////////////

What should i do?

thanks in advance

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-08-05 03:25:27 -0500

none gravatar image

updated 2013-08-05 03:33:19 -0500

Your fstab should have line (for home):

/dev/VolGroup/lv_home /home ext4 defaults 0 2

I f you need all entries for fstab you should add:

  • root file system /:

/dev/VolGroup/lv_root / ext4 defaults 0 1

  • /boot

  • /home

  • swap:

/dev/VolGroup/lv_swap swap swap defaults 0 0

edit flag offensive delete link more
0

answered 2013-07-26 09:23:58 -0500

sarmelion gravatar image

I found that the issue is that the fstab is empty.

Do anyone knows , what i have to write on fstab?

Thanks in advance!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-07-26 07:00:45 -0500

Seen: 1,418 times

Last updated: Aug 05 '13