[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] some questions about setting up GFS

It looks like you are not using pool.

You seem to have divided up the storage sanely. However, rather than forming a pool logical volume on the partitions you've created and then putting ccs and gfs on the pool volumes, you have simply put ccs and gfs directly on the underlying device. This is not terrible if you can ensure that your devices will _always_ have the same name, regardless of the machine you are viewing them from. (Pool's main function is to write labels to the underlying devices so that they can be uniquely identified on every machine in the cluster.)

So, at this point, you can choose to forget about using pool and proceed as you have started; or you can set up your pools first and put ccs and gfs on them (this is the method normally used).

If you choose to set up pools, you would do something like:
# create config files for two different pools (one for ccs and one for gfs)
prompt> cat > cca_pool.cfg
poolname cca
subpools 1
subpool 0 0 1 gfs_data
pooldevice 0 0 /dev/cciss/c0d1p1

prompt> cat > gfs1_pool.cfg
poolname gfs1
subpools 1
subpool 0 0 1 gfs_data
pooldevice 0 0 /dev/cciss/c0d1p2

#Write the labels to disk - remember this only needs to be done once
prompt> pool_tool cca_pool.cfg
prompt> pool_tool gfs1_pool.cfg

#Instantiate the pool logical volumes
prompt> pool_assemble

#Now you have block devices called /dev/pool/cca and /dev/pool/gfs1
# create your CCS archive and gfs file system on these devices
prompt> ccs_tool create /root/cluster /dev/pool/cca
prompt> mkfs.gfs ... /dev/pool/gfs1


On Jan 11, 2005, at 2:34 AM, Sergey wrote:


We bought HP ProLiant DL380 G4 Packaged Cluster-MSA500 G2 server and
after installation of RHEL3 and GFS-6.0.0-15 I have some questions.

Because I have no expirience in setting up such systems, please, tell
me, which mistakes in configuration I made.

Now system is configured this way:

/dev/cciss/c0d1 - External Logical Volume, 293.6 Gbytes (RAID 5)

[root hp1 root]# fdisk /dev/cciss/c0d1
Command (m for help): p

Disk /dev/cciss/c0d1: 293.6 GB, 293626045440 bytes
255 heads, 63 sectors/track, 35698 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c0d1p1 1 9 72261 fd Linux raid autodetect
/dev/cciss/c0d1p2 10 35698 286671892+ fd Linux raid autodetect

I've found nothing in GFS documentation about partitioning hard drive
during setting up GFS. So, I used to experiment.

First partition is allocated for <- CCA device ->. I'd like to know if
there is enough space and right type of partition, and, at all, is it
right way to allocate <- CCA device ->.

Second partition was formatted as GFS, so the question is: is selected
type of partition right or not?


[root hp1 root]# cat pool0.cfg
poolname pool0
minor 0 subpools 2
subpool 0 0 1 gfs_journal
pooldevice 0 0 /dev/cciss/c0d1p1
subpool 1 0 1 gfs_data
pooldevice 1 0 /dev/cciss/c0d1p2

Actually, I don't know why, but first subpool I've made as gfs_journal :-)

Basically, the system works, but something may be wrong.

During setting up I've made this command:

[root hp1 root]# ccs_tool create /root/cluster/ /dev/cciss/c0d1p1

[root hp1 root]# pool_tool -s
 Device                                            Pool Label
 ======                                            ==========
 /dev/cciss/c0d0                  <- partition information ->
 /dev/cciss/c0d0p1                    <- EXT2/3 filesystem ->
 /dev/cciss/c0d0p2                          <- swap device ->
 /dev/cciss/c0d0p3                    <- EXT2/3 filesystem ->
 /dev/cciss/c0d1                  <- partition information ->
 /dev/cciss/c0d1p1                           <- CCA device ->
 /dev/cciss/c0d1p2                       <- GFS filesystem ->

I'd like to hear some comments on it.



Sergey Mikhnevich

Linux-cluster mailing list
Linux-cluster redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]