LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2010, 02:21 AM   #1
ramadas88
LQ Newbie
 
Registered: Mar 2010
Posts: 24

Rep: Reputation: 0
is not a block device error in redhat rhel 5


Dear Friends


I created LVM and formatted it. But at the time of mounting it getting this error message ".....not a block device"

Please help Me!

Last edited by ramadas88; 04-25-2010 at 02:44 AM.
 
Old 04-25-2010, 04:13 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Did you use a UI to create the LVM or did you create it manually? If the latter please post the exact steps you took and their output and the output of running 'fdisk -l; pvscan; vgscan', and 'lvscan; dmsetup status' (after running 'vgchange -ay'), preferably between BB code tags.
 
Old 04-27-2010, 12:31 PM   #3
ramadas88
LQ Newbie
 
Registered: Mar 2010
Posts: 24

Original Poster
Rep: Reputation: 0
dear Friend

Hope this is what you asked



[root@localhost ~]# fdisk -l

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 2295 18432000 c W95 FAT32 (LBA)
/dev/hda2 2295 2307 97953+ 8e Linux LVM
/dev/hda3 2308 2310 24097+ 8e Linux LVM

Disk /dev/sda: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 2295 18329600 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 2296 2551 2046240 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/sda4 2551 9730 57668688 5 Extended
Partition 4 does not end on cylinder boundary.
/dev/sda5 2551 3316 6145744+ 83 Linux
/dev/sda6 3316 4081 6145744+ 83 Linux
/dev/sda7 4081 4336 2046208+ 82 Linux swap / Solaris
/dev/sda8 4336 5065 5863221 83 Linux
/dev/sda9 5066 9730 37466112 7 HPFS/NTFS

Disk /dev/sdb: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 7650 61440000 7 HPFS/NTFS
[root@localhost ~]# pvscan
PV /dev/hda2 VG lvmra lvm2 [92.00 MB / 0 free]
PV /dev/hda3 VG lvmra lvm2 [20.00 MB / 0 free]
PV /dev/sda8 lvm2 [5.59 GB]
Total: 3 [5.70 GB] / in use: 2 [112.00 MB] / in no VG: 1 [5.59 GB]
[root@localhost ~]# lvscan
ACTIVE '/dev/lvmra/lv2' [112.00 MB] inherit
[root@localhost ~]# mount
mount mount.fuse mount.nfs4 mount.ntfs-fuse
mount.cifs mount.nfs mount.ntfs-3g mountpoint
[root@localhost ~]# mount /dev/lvmra/lv2
mount: can't find /dev/mapper/lvmra-lv2 in /etc/fstab or /etc/mtab
[root@localhost ~]# mount /media/test/ /dev/lvmra/lv2
mount: /media/test/ is not a block device
[root@localhost ~]#

any one can check and revert

Please Help Me..................
 
Old 04-30-2010, 03:43 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by ramadas88 View Post
Code:
~]# pvscan
  PV /dev/hda2   VG lvmra   lvm2 [92.00 MB / 0    free]
  PV /dev/hda3   VG lvmra   lvm2 [20.00 MB / 0    free]
  PV /dev/sda8              lvm2 [5.59 GB]
  Total: 3 [5.70 GB] / in use: 2 [112.00 MB] / in no VG: 1 [5.59 GB]
The /dev/hda2 and /dev/hda3 Physical Volumes (PV) are part of the "lvmra" Volume Group (VG). The /dev/sda8 PV is NOT part of any VG. If you want to add /dev/sda8 to the "lvmra" VG then you should ('man vgextend',) 'vgextend lvmra /dev/sda8'. After doing that you could use 'lvextend' and 'resize2fs' to actually make use of available space.
 
  


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
ERror: /dev/sda1 is not a valid block device adnansaj Fedora 9 11-27-2006 03:00 AM
not a valid block device error on an external CDROM landroni Linux - Hardware 1 09-12-2005 07:06 AM
cdrom is not a block device error artman62 Linux - Hardware 6 10-31-2004 04:40 AM
Invalid Block Device Error Dert Hunter Linux - Newbie 2 09-22-2003 10:22 AM
RedHat 8.0 valid block device ?? Tuzinor Linux - Hardware 0 02-09-2003 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:55 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
Open Source Consulting | Domain Registration