Reply to topic  [ 8 posts ] 
Red Hat and external storage... 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
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


Tue Apr 28, 2009 12:53 pm
Profile WWW
Spends far too much time on here
User avatar

Joined: Fri Apr 24, 2009 8:38 am
Posts: 2967
Location: Dorchester, Dorset
Reply with quote
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!

_________________
I've finally invented something that works!

A Mac User.


Tue Apr 28, 2009 1:25 pm
Profile
Occasionally has a life
User avatar

Joined: Mon Apr 27, 2009 6:20 pm
Posts: 446
Location: ~/
Reply with quote
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.

_________________
I was nickholway on the old boards.


Tue Apr 28, 2009 6:02 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
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


Tue Apr 28, 2009 6:14 pm
Profile WWW
Occasionally has a life
User avatar

Joined: Mon Apr 27, 2009 6:20 pm
Posts: 446
Location: ~/
Reply with quote
Hi,

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

_________________
I was nickholway on the old boards.


Wed Apr 29, 2009 6:45 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
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


Tue May 05, 2009 10:55 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
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


Tue May 05, 2009 11:12 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
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!


Tue May 05, 2009 11:29 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 27 guests


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

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.