Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi every one
I'm new in the word of linux
I'm using a lab with 2 node and virtual storage disk to simulate cluster with centos 6.
I'have create cluster with luci and
Please I want to know:
When i want to add resource to the cluster (file system)
it is neccessry to edit the ftab file in the 2 node to add the storage disk
Thank you
No you don't have to add that in /etc/fstab it will be taken care by cluster load and unload script for the resource. Usually you put entry in /etc/fstab if you are using gfs2 filesystem and want them to be mounted on both system at the same time (gfs2 has that capability); in this scenario cluster scripts will not take care of mounting and umounting.
Hi thank you
please an other question
my nodes detect /dev/sdb with the scsi connector
do i need the create a partion with fsdisk before i format ?
Thank you
Yes, create partition and then format. Since it is a shared storage make sure that you don't create partition on the same disk from both nodes. Once you created partition on /dev/sdb from one node run partprobe on another node. If you are using multipathing then use multipath -rr.
Hi thank you
Please I know what is the meaning of mkfs.ext4 /dev/sdb
for GFS2 what this commande work
mkfs.gfs2 -p lock_dlm -t mycluster:disk -j 2 /dev/sdb
what I want to know is why linux allow me the create file system of hard-disk without any partitions
Thank you.
Linux will allow you to directly format a hard drive without creating partition. I mean that is how it works. Same works with PV, you can create a PV with whole disk instead of partitions.
Using single disk is not advisable because if anything goes wrong anywhere on the disk your whole data will be affected. Partitions are created to avoid such situation. Incase if one of the partition is affected then data residing only on that partition will be affected and data on other partitions will remain intact.
You're welcome. Reboot is fine, you can also try restarting iscsi-initiator service before rebooting the server. Make sure that no partition is mounted via iscsi on the node before restarting iscsi-initiator service.
hi thank you for your help
Please what is the risk for the data if i don't create any partion
Thank you.
The actual risk is no different than with a partitioned disk.
If you have physical damage to the disk, that damage is frequently (or always) spreads to the entire disk. When a disk becomes weak data can get courrupted - but you can still copy the rest of the data. The one time things get difficult is if the damage occurs to the volume header... But then the same damage would occur to the partition table if the disk had been partitioned.
The purpose of partitioning has nothing to do with risk. It has to do with separating one set of data from another.
The actual risk is no different than with a partitioned disk.
If you have physical damage to the disk, that damage is frequently (or always) spreads to the entire disk. When a disk becomes weak data can get courrupted - but you can still copy the rest of the data. The one time things get difficult is if the damage occurs to the volume header... But then the same damage would occur to the partition table if the disk had been partitioned.
The purpose of partitioning has nothing to do with risk. It has to do with separating one set of data from another.
I would partially agree with that. I do agree that if disk becomes weak or there is hardware issue it is not just one partition all the partition residing on that disk is at risk. However, if one of my partitions go corrupted I can still mount other partitions on that disk without any issue.
For example: If I have created two partitions on the disk say one for mounting on /home and one for mounting on /generic_data. Now if partition mounted on /generic_data encountered inode mismatch (which is quite commonly I have seen) it will only affect that partition not the whole disk, I can still mount /home without any issue. Infact if data under /generic_data is not too significant I can keep it commented in /etc/fstab till I get downtime schedule for performing repair. If this happened incase of single disk I have to go with immediate repair.
The main reasons for partitioning that I can think of:
1. Ease of management.
2. Separating set of data.
3. Preventing errors from one partition stepping onto other partitions foot.
4. Better control in terms on management.
Could be more but these are the ones I can think of now.
Edit: I had a case wherein the data corruption was so severe that post fsck we were left with little data than actual on the disk. This I am talking about a partitioned disk wherein only one partition was affected. If it were a single disk there is no easy way to determine which data it removed during repair (wasn't there even in lost+found) and most likely one will end up restoring the whole data.
Last edited by T3RM1NVT0R; 04-22-2015 at 07:02 AM.
Reason: more info
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.