x404.co.uk
http://www.x404.co.uk/forum/

Red Hat and external storage...
http://www.x404.co.uk/forum/viewtopic.php?f=4&t=180
Page 1 of 1

Author:  forquare1 [ Tue Apr 28, 2009 12:53 pm ]
Post subject:  Red Hat and external storage...

Hi all,

I've got a server running Red Hat:
Code:
# uname -a
Linux sa64-v40za-gmp03 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux


It has some SCSI storage attached but I can't see it...I've tried the usual devfsadm and cfgadm commends, but they aren't recognised, and neither is format or rmformat....

I've found that mountall is translated to mount -a but it says there is an error in fstab, this line isn't correct:
Quote:
LABEL=/VirtualMachines /dev/vm_group/vmware_disk /VirtualMachines ext2 rw 0 0


It's a different syntax to what I'm used to so I'm not sure what's up...

Anyone got any ideas?

Cheers,

Ben

Author:  tombolt [ Tue Apr 28, 2009 1:25 pm ]
Post subject:  Re: Red Hat and external storage...

I'm afraid I can't help at all. But I do have a red hat server with a raid attached via scsi if there's anything on it I can check out if that helps!

Author:  Coref [ Tue Apr 28, 2009 6:02 pm ]
Post subject:  Re: Red Hat and external storage...

My experience of adding storage to Centos boxes is that you need to reboot despite what EMC's PowerPAth documentation tells you! I'm guessing you've already tried it.

Is there anything useful in /var/log/messages?

I can't remember the exact sequence of commands to ad storage, but I can post my normal SOP from work if it's any help tomorrow.

Author:  forquare1 [ Tue Apr 28, 2009 6:14 pm ]
Post subject:  Re: Red Hat and external storage...

Coref wrote:
My experience of adding storage to Centos boxes is that you need to reboot despite what EMC's PowerPAth documentation tells you! I'm guessing you've already tried it.

Is there anything useful in /var/log/messages?

I can't remember the exact sequence of commands to ad storage, but I can post my normal SOP from work if it's any help tomorrow.


That would be grand :)
I wondered why I couldn't see storage in the first place, then found that the SCSI cable was lighting up a link light on the storage...Yet the storage hod no power going to it :x
I powered off the server, powered on the storage and powered the server back on, but it didn't pick it up...I think it's the /etc/fstab file that is wrong...

I'll look in /var/log/messages tomorrow, I didn't think of looking there because there was nothing that was printed onto the console saying anything about storage...(During boot up or otherwise)

Thanks all :)
Ben

Author:  Coref [ Wed Apr 29, 2009 6:45 pm ]
Post subject:  Re: Red Hat and external storage...

Hi,

Sorry for not posting the info I said I would. :oops: I'll try again tomorrow.

Author:  forquare1 [ Tue May 05, 2009 10:55 am ]
Post subject:  Re: Red Hat and external storage...

Hi all,

I managed to put this work on the back burner for a bit, but I've just gone back to it...
After doing a fair amount of reading, I've found that the SCSI array has nine of ten disks (36GB), these have been put into some kind of volume using something called LVM. Using pvscan I can see the hard drives and I can see what VG they are in...But I have no idea where this new volume has been mounted, or what command to use to find more details on the volume...

Can anyone give me a quick how-to on LVM (the documentation on the net tells you have to create a remove, but not list), I need to know what the final volume is called, then how to mount it...

Many thanks all :)

Ben

Author:  forquare1 [ Tue May 05, 2009 11:12 am ]
Post subject:  Re: Red Hat and external storage...

I've got a little further...I now know this:
Code:
# lvscan
  inactive          '/dev/vm_group/testlv' [1.46 GB] inherit
  inactive          '/dev/vm_group/vmware_disk' [244.14 GB] inherit


It's the second entry I want...'/dev/vm_group/vmware_disk' can't be found, it's not there, and I' think it might have something to do with this "inactive" thing (some sort of status?)
Anyone know how to make it active?

Cheers,
Ben

Author:  forquare1 [ Tue May 05, 2009 11:29 am ]
Post subject:  Re: Red Hat and external storage...

I strayed onto a gentoo page and found the command vgchange with arguments -a y.
Code:
# vgchange -a y
  2 logical volume(s) in volume group "vm_group" now active
# lvscan
  ACTIVE            '/dev/vm_group/testlv' [1.46 GB] inherit
  ACTIVE            '/dev/vm_group/vmware_disk' [244.14 GB] inherit
# file /dev/vm_group/vmware_disk
/dev/vm_group/vmware_disk: symbolic link to `/dev/mapper/vm_group-vmware_disk'
# file /dev/mapper/vm_group-vmware_disk
/dev/mapper/vm_group-vmware_disk: block special (253/1)
# mount /dev/mapper/vm_group-vmware_disk /VirtualMachines/
# cd VirtualMachines/
# ls
<shows VMs>


Looks like it's sorted! Just got to fix fstab now!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/