Solved

how to tell if a server boots from SAN

Posted on 2011-03-10
12
527 Views
Last Modified: 2012-05-11
I have a Fedora server that I believe boots from a SAN. However how can I tell for sure if this is the case from the server itself. how would I go about doing this? here is some information about the drives.






fdisk -l

Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       30394   244035382+  8e  Linux LVM






mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)




lvdisplay
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                fs7sUC-4KNe-Zz54-YozX-GDux-PQpC-vBhYKY
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                225.00 GB
  Current LE             7200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                lZ4XP1-ZdON-vZCW-lxxv-pjyK-Tinq-mbM1Bv
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                7.69 GB
  Current LE             246
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1





pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               232.73 GB / not usable 11.80 MB
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              7447
  Free PE               1
  Allocated PE          7446
  PV UUID               jeXX7v-k7Ll-DoP7-ZJ6M-S0Ad-z41X-ukgShr
0
Comment
Question by:ryan80
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
12 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 35100798
Do
df -hT /boot

I am interested to know where the /boot is located.  That is where it boots from, at least the second stage of its booting.  The first stage always takes place from the first 570 or sectors of the local drive
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35100823
From what I can see, I don't see any SAN.

All what I see is logical volume.  It is probably booting from /dev/sda2 which contains your logical volume.
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35100867
If you look carefully, your physical volume is based entirely on your /dev/sda2, which is your SCSI drive, and is local to your computer. Your volume group is based entirely on this physical volume, nothing else.
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 12

Author Comment

by:ryan80
ID: 35100967
df -hT /boot
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda1     ext3     99M   15M   80M  16% /boot
0
 
LVL 12

Author Comment

by:ryan80
ID: 35101039
There is a system in place here, Cobbler, that is used for making PXE boot configs.

I see the IP address of this server in the Cobbler system, but there is no mac address configured which I thought would be neccesary for PXE boot to work.

Now if a system uses PXE boot, does that mean that the OS will be located on the network? or can it be used just to install an OS onto the local drive(s)?
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35101235
So your system is getting booted from /dev/sda1, which is local to your system and is the correct way to do it.  We don't recommend putting /boot even on the LVM.  It is a bad practice but still very senior admins do it.
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35101259
Yes, that is the idea behind the PXE boot.  You can install your systems over the network.  So there are numerous technologies that run behind the scene.  What kind of OS is it?

For stage1 boot phase, tftp is used using PXE, and for stage 2 boot, ftp, nfs, http may be used.
0
 
LVL 12

Author Comment

by:ryan80
ID: 35103178
It is Fedora 9
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35104337
For Fedora, I believe you should be using PXE and then Kickstart mechanism.  This part is different for all OSs.  Redhat family goes by kickstart which is very powerful mechanism for doing a custom install.

This should answer all your questions.  Anything else?
0
 
LVL 12

Author Comment

by:ryan80
ID: 35104913
Sorry I thought I had posted another post. Last one.

Is an sda always local? How do you actually tell that something is a network drive (whether nfs, fixer channel, iscsi)?
0
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 35108647
It depends upon your hardware.

If it is a SAN device, its name would be a little different.  It would never be /dev/sdaX or /dev/sdbX etc.

For example

/dev/cciss/c0d0: (Smart Array P800) RAID 0 Volume 0 status: OK.
/dev/cciss/c0d0: (Smart Array P800) RAID 0 Volume 1 status: OK.
/dev/cciss/c0d0: (Smart Array P800) RAID 1 Volume 2 status: OK.
/dev/cciss/c0d0: (Smart Array P800) RAID 5 Volume 4 status: OK.
/dev/cciss/c0d0: (Smart Array P800) RAID 5 Volume 5 status: OK

I hope that makes sense.  You can see at your work, what device paths are the SANs using.  What kind of SAN do you have?  If you find it is different than what I showed, please post it here too


Last, booting NEVER happens at SAN.  Your system is configured right.  Ideally it should be a primary partition on the local drive and this is exactly what your system has.  Stage 1 booting always happens at the MBR (master boot record) of your drive.  Boot partition should ideally be separate from root partition as you have.

If I have missed anything else, please let me know.
0
 
LVL 12

Author Closing Comment

by:ryan80
ID: 35112535
Thanks, that is what I thought.

the SAN is using fibre channel and there is a multi path driver that is installed to reach it. The device path shows as

/dev/mapper/mpath0p1

Thanks for your patience with walking me through this. i really appreciate it and have a much better grasp on this now.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
blank screen when trying to setup Unity on Ubuntu 14.04 9 71
How to change the nameserver on Ubuntu Server 6 97
Apache module 5 81
Internal CA server 6 131
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question