LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Raid array resized - Cannot mount LVM - Fedora Core 5 (https://www.linuxquestions.org/questions/linux-software-2/raid-array-resized-cannot-mount-lvm-fedora-core-5-a-505789/)

rimfire 11-29-2006 12:08 AM

Raid array resized - Cannot mount LVM - Fedora Core 5
 
Hi,

I have run aground and am wondering if my error is recoverable. This is my first post here.

I have a locally connected hardware raid controller (Adaptec 2410SA) which until yesterday was running quite happily in Raid 5 with 3 x 500G drives and a total capacity of 935GB. The array reports to the OS [FC5] as /dev/sdd.

Yesterday I extended the array by adding a fourth drive to increase the total capacity to 1.36TB. Now, perhaps unsurprisingly in hindsight, LVM won't mount the partition. The raid device is reporting as being in optimal state @ 1.36TB.

I thought when extending the array that I would still have a 935GB partition as far as linux was concerned with ~430GB of spare capacity on the array with which I could create another logical device in the raid controller which I intended to add to the LVM group.

My question is can I recover this LVM group or have I lost the data and need to start again (groan). The volume group in question is /dev/NewVolGroup/NewLV. The physical raid device is /dev/sdd

Some detail follows. I am out of my depth here so any thoughts welcome. Tom

[root@syd001 ~]# mount /dev/NewVolGroup/NewLV /newdir
mount: you must specify the filesystem type

[root@syd001 ~]# fdisk /dev/sdd
The number of cylinders for this disk is set to 121593.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdd: 1000.1 GB, 1000144371712 bytes
255 heads, 63 sectors/track, 121593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Command (m for help):


[root@syd001 ~]# pvscan
/dev/dm-2: read failed after 0 of 4096 at 1000135917568: Input/output error
/dev/dm-2: read failed after 0 of 4096 at 0: Input/output error
PV /dev/sdd VG NewVolGroup lvm2 [931.45 GB / 0 free]
PV /dev/hda2 VG VolGroup00 lvm2 [57.16 GB / 32.00 MB free]
Total: 2 [988.61 GB] / in use: 2 [988.61 GB] / in no VG: 0 [0 ]


[root@syd001 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
57008372 3856672 50209136 8% /
/dev/hda1 102454 41016 56148 43% /boot
/dev/shm 257400 0 257400 0% /dev/shm
/dev/md0 153834788 92448004 53572372 64% /home


[root@syd001 ~]# tail /var/log/messages
Nov 29 15:59:41 syd001 kernel: Buffer I/O error on device dm-2, logical block 0
Nov 29 15:59:41 syd001 kernel: Buffer I/O error on device dm-2, logical block 1
Nov 29 15:59:41 syd001 kernel: Buffer I/O error on device dm-2, logical block 2
Nov 29 15:59:41 syd001 kernel: Buffer I/O error on device dm-2, logical block 3
Nov 29 15:59:41 syd001 kernel: scsi 2:0:0:0: rejecting I/O to dead device
Nov 29 15:59:41 syd001 kernel: Buffer I/O error on device dm-2, logical block 0
Nov 29 15:59:41 syd001 kernel: scsi 2:0:0:0: rejecting I/O to dead device
Nov 29 15:59:41 syd001 kernel: Buffer I/O error on device dm-2, logical block 244173823
Nov 29 15:59:41 syd001 kernel: scsi 2:0:0:0: rejecting I/O to dead device
Nov 29 15:59:41 syd001 kernel: Buffer I/O error on device dm-2, logical block 244173823
Nov 29 15:59:41 syd001 kernel: scsi 2:0:0:0: rejecting I/O to dead device
Nov 29 15:59:41 syd001 kernel: Buffer I/O error on device dm-2, logical block 0
Nov 29 15:59:41 syd001 kernel: scsi 2:0:0:0: rejecting I/O to dead device
Nov 29 15:59:41 syd001 kernel: Buffer I/O error on device dm-2, logical block 1
Nov 29 15:59:41 syd001 kernel: scsi 2:0:0:0: rejecting I/O to dead device
Nov 29 15:59:41 syd001 kernel: Buffer I/O error on device dm-2, logical block 2
Nov 29 15:59:41 syd001 kernel: scsi 2:0:0:0: rejecting I/O to dead device


[root@syd001 ~]# /etc/fstab
dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/md0 /home ext3 rw,nosuid 0 0
/dev/NewVolGroup/NewLV /newdir ext3 rw,nosuid 0 0


[root@syd001 ~]# pvs -a
/dev/dm-2: read failed after 0 of 4096 at 1000135917568: Input/output error
/dev/dm-2: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-2: read failed after 0 of 4096 at 0: Input/output error
PV VG Fmt Attr PSize PFree
/dev/dm-0 -- 0 0
/dev/dm-1 -- 0 0
/dev/dm-2 -- 0 0
/dev/hda1 -- 0 0
/dev/hda2 VolGroup00 lvm2 a- 57.16G 32.00M
/dev/md0 -- 0 0
/dev/ram -- 0 0
/dev/ram10 -- 0 0
/dev/ram11 -- 0 0
/dev/ram12 -- 0 0
/dev/ram13 -- 0 0
/dev/ram14 -- 0 0
/dev/ram15 -- 0 0
/dev/ram2 -- 0 0
/dev/ram3 -- 0 0
/dev/ram4 -- 0 0
/dev/ram5 -- 0 0
/dev/ram6 -- 0 0
/dev/ram7 -- 0 0
/dev/ram8 -- 0 0
/dev/ram9 -- 0 0
/dev/ramdisk -- 0 0
/dev/sdd NewVolGroup lvm2 a- 931.45G 0


[root@syd001 ~]# lvs -a
/dev/dm-2: read failed after 0 of 4096 at 0: Input/output error
LV VG Attr LSize Origin Snap% Move Log Copy%
NewLV NewVolGroup -wi-a- 931.45G
LogVol00 VolGroup00 -wi-ao 56.12G
LogVol01 VolGroup00 -wi-ao 1.00G


All times are GMT -5. The time now is 09:26 AM.