fosiul01
asked on
Partition for openfiler to make it work for drbd
Hi
This is first time i am creating openfiler....
and i m following this ariticles
http://www.howtoforge.com/installing-and-configuring-openfiler-with-drbd-and-heartbeat
http://www.openfiler.com/learn/how-to/graphical-installation
http://www.easyreadarticles.com/applications/setting-up-a-high-availability-nassan-using-openfiler/
but i am little bit of confused, how the partitions will work
if i follow the howtoforge.com article
* 3 GB root (/) partition ( WHICH IS FINE)
* 2 GB swap partition (WHICH IS FINE)
* 512 MB /meta partition (used for DRBD0) (HERE IS THE PRBBLEM)
* Data partition configured as an unmounted LVM (used for DRBD1) (HERE IS THE PROBLEM)
its a 40GB hardirive .
if i put 3 Gb to root and 2 GB to swap, so i will have 36 GB to play arround.
now do i put this whole 36GB as LVM ...
where actually you creating partition for
512 MB /meta partition (used for DRBD0)
* Data partition configured as an unmounted LVM
if you have done this before then please give me some idea ..
This is first time i am creating openfiler....
and i m following this ariticles
http://www.howtoforge.com/installing-and-configuring-openfiler-with-drbd-and-heartbeat
http://www.openfiler.com/learn/how-to/graphical-installation
http://www.easyreadarticles.com/applications/setting-up-a-high-availability-nassan-using-openfiler/
but i am little bit of confused, how the partitions will work
if i follow the howtoforge.com article
* 3 GB root (/) partition ( WHICH IS FINE)
* 2 GB swap partition (WHICH IS FINE)
* 512 MB /meta partition (used for DRBD0) (HERE IS THE PRBBLEM)
* Data partition configured as an unmounted LVM (used for DRBD1) (HERE IS THE PROBLEM)
its a 40GB hardirive .
if i put 3 Gb to root and 2 GB to swap, so i will have 36 GB to play arround.
now do i put this whole 36GB as LVM ...
where actually you creating partition for
512 MB /meta partition (used for DRBD0)
* Data partition configured as an unmounted LVM
if you have done this before then please give me some idea ..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok i think i knwo what it meant by this
My first confusion is : 512 MB /meta partition (used for DRBD0)
so i create /meta by myself ...
now questionh is,
what iwill do witgh rest 35GB of harddirve ??
shall i leave it as it and install open fire ,then after installing openfile, then use command to create pv ???
My first confusion is : 512 MB /meta partition (used for DRBD0)
so i create /meta by myself ...
now questionh is,
what iwill do witgh rest 35GB of harddirve ??
shall i leave it as it and install open fire ,then after installing openfile, then use command to create pv ???
ASKER
Basicaly what does it mean :
Data partition configured as an unmounted LVM (used for DRBD1) ??
so i used
5GB for /root
2GB for swap
1GB for meta
so i use 8 GB
i got rest 32 GB unpertitions
at the time of disk setup, do i need to create LVm??
or i will leave this 32 GB as it is, and install openfile ??
Data partition configured as an unmounted LVM (used for DRBD1) ??
so i used
5GB for /root
2GB for swap
1GB for meta
so i use 8 GB
i got rest 32 GB unpertitions
at the time of disk setup, do i need to create LVm??
or i will leave this 32 GB as it is, and install openfile ??
ASKER
oik i think, i know
let me complete this, then i will come again
let me complete this, then i will come again
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
My openfile would not install!! i guess,while testing the Cd, its say FAIL!!
so downloading again
yes, you are right, i will do step by step, first get openfile installed then go for drbd
one thing : the interface for openfile and SAN/NAS interface(hardware) are they same ??
do they work same way ?? openfile and SAN/NAS storage ???
what do you use ???
so downloading again
yes, you are right, i will do step by step, first get openfile installed then go for drbd
one thing : the interface for openfile and SAN/NAS interface(hardware) are they same ??
do they work same way ?? openfile and SAN/NAS storage ???
what do you use ???
ASKER
how good is this openfiler ??
how comes its documentation is so rubbish ??? i cant find any documentation about how to use open filer in their site!!!!
it has only 2 document about, how to install!! thats it.. nothing else!!!
how comes its documentation is so rubbish ??? i cant find any documentation about how to use open filer in their site!!!!
it has only 2 document about, how to install!! thats it.. nothing else!!!
ASKER
LOL you will have to buy Documentation!! that like begging is not it!!!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I use Openfiler as a destination for backing up VMs. We have about 30 VMs, and the Openfiler is hosting about 3Tb of storage for backups.
It works great and I highly recommend it for low-end 3rd tier storage. I would recommend it for a 1st tier storage solution.
As for creating the partitions, you are on the right path...but you don't need any third party (Unless I am missing something)...openfiler can manage them for you.
As for the data drive...you do not wan to to partition it. Leave it as un-used disk space when installing Openfiler. after you finish installing openfiler, then oo int the console and partition the unused space as a volume group, then setup shars (or NFS shares) nad you'll be good to go.
I have setup an Openfiler NAS probably 20+ times...it works great.
It works great and I highly recommend it for low-end 3rd tier storage. I would recommend it for a 1st tier storage solution.
As for creating the partitions, you are on the right path...but you don't need any third party (Unless I am missing something)...openfiler can manage them for you.
As for the data drive...you do not wan to to partition it. Leave it as un-used disk space when installing Openfiler. after you finish installing openfiler, then oo int the console and partition the unused space as a volume group, then setup shars (or NFS shares) nad you'll be good to go.
I have setup an Openfiler NAS probably 20+ times...it works great.
ASKER
Hah!! after 2 days of fighting with it!! successfully installed openfile + HA + DRBD!!!
yesterday, As soon I format :
mkfs.ext3 /dev/drbd0
ref : http://www.howtoforge.com/installing-and-configuring-openfiler-with-drbd-and-heartbeat
openfile01 , will hang ..., i tryed 3 times , i have changed hardrive .. samething
today, I start off again with fresh ...
One thing is wired : after i installed openfiler on both server, ( openfiler01 and openfiler02)
if i do , fdisk -l
its show
hda1, had2
then when i update the openfiler ( by going update page) then after restart the server
its shows
sda1 , sda2!!!!
why is that ??
its not wired ??
anyway, its looks good, i am now syncronizeding both master and slaves.. its should be ok
one thing i need to know, how many node you can setup with drbd ??
so if i have 10 Server, and i need to replication 10 server, i will need another 10 node to replicatate , is not it ??
yesterday, As soon I format :
mkfs.ext3 /dev/drbd0
ref : http://www.howtoforge.com/installing-and-configuring-openfiler-with-drbd-and-heartbeat
openfile01 , will hang ..., i tryed 3 times , i have changed hardrive .. samething
today, I start off again with fresh ...
One thing is wired : after i installed openfiler on both server, ( openfiler01 and openfiler02)
if i do , fdisk -l
its show
hda1, had2
then when i update the openfiler ( by going update page) then after restart the server
its shows
sda1 , sda2!!!!
why is that ??
its not wired ??
anyway, its looks good, i am now syncronizeding both master and slaves.. its should be ok
one thing i need to know, how many node you can setup with drbd ??
so if i have 10 Server, and i need to replication 10 server, i will need another 10 node to replicatate , is not it ??
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is now making me mad
One node is saying: I/O error
what i meant was : the Hardrive is connected to Openfiler, is IDE 20 GB hardrive
when i first install openfiler in that pc, after that if i do
fidisk -l
it will show you as hda1, had2,hda3
so its actually seeing as IDE, right ??
now after I have done System UPdate of openfiler ( Update to most recent version)
after reboot the pc, if i do
fidisk -l
it will show,
sad1,sad2,sda3 !!!
is not wired ???
Could you clarify what you mean by nodes and replication? i.e does it apply to the mysql replication you have, to the NFS share common device provided by DRBD on the openfiler?
No, i am not saying about mysql server replication, its Drive level.
so basically, if i write something on node1, it will replicate automaticaly to node2 is not it ??( realtime like mysql replication ) ??
One node is saying: I/O error
what i meant was : the Hardrive is connected to Openfiler, is IDE 20 GB hardrive
when i first install openfiler in that pc, after that if i do
fidisk -l
it will show you as hda1, had2,hda3
so its actually seeing as IDE, right ??
now after I have done System UPdate of openfiler ( Update to most recent version)
after reboot the pc, if i do
fidisk -l
it will show,
sad1,sad2,sda3 !!!
is not wired ???
Could you clarify what you mean by nodes and replication? i.e does it apply to the mysql replication you have, to the NFS share common device provided by DRBD on the openfiler?
No, i am not saying about mysql server replication, its Drive level.
so basically, if i write something on node1, it will replicate automaticaly to node2 is not it ??( realtime like mysql replication ) ??
ASKER
Man , this openfiler is rubbish........
example : if you set Ethernet Ip via Web-interface, it will delete hardware address of that enternet card!!!
Recent UPdate(full system update), make hda to sda, have a look to the picture
, i tryed with 3 pic from last 3 days!!
last one, it made hda to sda, then when i came back to work at morning, it cant find the sda!!!! so it was saying disk less!!!
B4dupdate.GIF
ufterupdate.GIF
example : if you set Ethernet Ip via Web-interface, it will delete hardware address of that enternet card!!!
Recent UPdate(full system update), make hda to sda, have a look to the picture
, i tryed with 3 pic from last 3 days!!
last one, it made hda to sda, then when i came back to work at morning, it cant find the sda!!!! so it was saying disk less!!!
B4dupdate.GIF
ufterupdate.GIF
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I dont have any intention to do drbd with mysql replication, i will keep that as mysql replication, but you said, " Just to be clear you can not use DRBD replication to handle the mysql replication."
but from this site
http://dev.mysql.com/doc/refman/5.1/en/drbd-mysql-replication-scale.html
its look like you can, but may be there might be some other problem, i will read that tomorrow
also,
i am not clear about what you said : "mysql service is tarted on node2 accessing the drbd drive."
are you saying to put all data files to drbd drive ??
like , mysql database datadir /usr/local/mysql/var/
so you saying, change the datadir from one location to Drbd drive ?? so it can replicate to anothr node??
ppl say, they put mysql datadir in SAN storage ?? is this the same concept??
atlast i got DRBD + openfiler,,!!!!!( THANKS GOD)i will keep on this whole night, see if the link works or not
but its working perfectly now
another : how quickly file get replication from one node to another node by drbd ???
but from this site
http://dev.mysql.com/doc/refman/5.1/en/drbd-mysql-replication-scale.html
its look like you can, but may be there might be some other problem, i will read that tomorrow
also,
i am not clear about what you said : "mysql service is tarted on node2 accessing the drbd drive."
are you saying to put all data files to drbd drive ??
like , mysql database datadir /usr/local/mysql/var/
so you saying, change the datadir from one location to Drbd drive ?? so it can replicate to anothr node??
ppl say, they put mysql datadir in SAN storage ?? is this the same concept??
atlast i got DRBD + openfiler,,!!!!!( THANKS GOD)i will keep on this whole night, see if the link works or not
but its working perfectly now
another : how quickly file get replication from one node to another node by drbd ???
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok DRBD is BAST....rd ... but i will hang on it till i make it work!!!
AFter followed the artile.. it was running fine, then as soon i reboot both server. after boot up
drbd is saying, diskless in primary node!!!
then i reboot again, its working fine!!
anyway, i will read drbd documentation.
so bottom line is :
use drbd to replicate File ( file server,nfs share, samba share)
and use mysql replication for replicate mysql server,
is not it ??
let me modify my picture of my network to make it clear
AFter followed the artile.. it was running fine, then as soon i reboot both server. after boot up
drbd is saying, diskless in primary node!!!
then i reboot again, its working fine!!
anyway, i will read drbd documentation.
so bottom line is :
use drbd to replicate File ( file server,nfs share, samba share)
and use mysql replication for replicate mysql server,
is not it ??
let me modify my picture of my network to make it clear
ASKER
Ok
I added my modified structure!!
only thing i need to as you advised, put a tunnel or vpn between 2 WEb server Or just allow user to upload DAta into company Server not WEbserver ....
right ??
any more ??
Company-Replication.jpg
I added my modified structure!!
only thing i need to as you advised, put a tunnel or vpn between 2 WEb server Or just allow user to upload DAta into company Server not WEbserver ....
right ??
any more ??
Company-Replication.jpg
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
HI thanks
iSCSI : omm i am nto good in this terms, but i will try to find out more about this iscsi.. can you use ide hardrive as iscsi ???
yes, i am started to use puppet ... and will try to manage all by puppet, that why i am installing same services in all server .. all by sources
do you need puppet and subversion both ??
or one will enough ??
iSCSI : omm i am nto good in this terms, but i will try to find out more about this iscsi.. can you use ide hardrive as iscsi ???
yes, i am started to use puppet ... and will try to manage all by puppet, that why i am installing same services in all server .. all by sources
do you need puppet and subversion both ??
or one will enough ??
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hmmm thanks
i will close this question now!! as its gone long!!
i will create few others on those new issue
i will close this question now!! as its gone long!!
i will create few others on those new issue
ASKER
Hi
Sorry the last one
Suppose, i have httpd.conf in 5 server
now i just want to modify 1 httpd.conf and want to pushed those into rest 4 server
i know with puppet you can do that.. i did that.
but just by using subversion, can you do that??
or you need puppet to pushed file into different server, and use subversion to keep track what has been changed??
or by using subversion you can push those httpd.conf to 4 apache server
which one is true??
Sorry the last one
Suppose, i have httpd.conf in 5 server
now i just want to modify 1 httpd.conf and want to pushed those into rest 4 server
i know with puppet you can do that.. i did that.
but just by using subversion, can you do that??
or you need puppet to pushed file into different server, and use subversion to keep track what has been changed??
or by using subversion you can push those httpd.conf to 4 apache server
which one is true??
With subversion you would need to have a client and have access to the repository.
The subersion is more of a pull setup where you would have a script run on a regular interval on each server checking if a change is detected and then retrieve the changed document.
The subersion is more of a pull setup where you would have a script run on a regular interval on each server checking if a change is detected and then retrieve the changed document.
ASKER
My first confusion is : 512 MB /meta partition (used for DRBD0)
Where actually you create this /meta partitions ???
this is graphical part of openfile intall
http://www.openfiler.com/learn/how-to/graphical-installation
look at Disck Setup section
so where shoul i setup this /meta partions
mainly here i am stuck