I would like add a new hdd ...
-
Hi,
I have installed a new hard drive in the fog machine.
I have create a new storage group and a new store node.But, the capture doens’t work and the image of my laptop is captured in the folder /images
In the image configuration for this PC, i have been choosen the new storage group.I have screenshots all the detail i think…
Can you help me ?
Thanks for reply !
-
While I haven’t done this before (I probably should try) so I know what your doing is even possible.
To your issue, I would like to see the output of this command keyed into the linux console
showmount -e 127.0.0.1
That will show the exported file systems (NFS) from the fog server. You will need one to match the image path from the storage node configuration. -
Hello George,
Thanks for reply.
The result of the command
showmount -e 127.0.0.1
For Information, i have installed a 2nd HDD and the mount point is located in the folder /images --> It’s works
In this case, i would like add a 3e hdd and create a new repository to save the new image… The second HDD is full
Thanks !
-
@afaure The way you say works (mounting /dev/sdc1 over /images) is one way to do it. But I think you want two data stores.
To make things easy for you, create a new mount point called /images2 and then mount the new drive there. So you will have /images -> old drive /images2 -> new drive.
Once that is done then update your storage node information to point to /images2 (keeping the data path name short).
Lastly you need to update the nfs exports in /etc/exports. Just clone the lines in there and then fix the path to make /image2 for the new datastore. And finally refresh your nfs exports with
exportfs -a
. Run the showmount command to ensure that you have the shares created correctly.Lastly you need to create the proper drive structure as with /images. You will need a
/images2/dev
directory as well as the hidden directory flag files. Use this commandls -la /images
to see the names of the hidden files. -
Yes, i would like used two data stores.
So, i do:
- Create a new mount point /images2 and edit the fstab to write the path.
- Edit the configuration of the new storage node on fog.
- Edit the file /etc/exports and copy/paste the last line of this file
- Refresh the file /etc/export with a commande exportfs -a
- Create the same structure of /images and /images/dev
It’s correct ?
For the first point, i can used this documentation:
https://wiki.fogproject.org/wiki/index.php?title=Adding_Storage_to_a_FOG_ServerIt’s OK for you?
Thanks.
-
@afaure yes that linked document contains the bits of what you need. The only thing you are doing different is creating second data store where that one assumes you will just have one.
If you combine what you just outlined and the info in that link you have everything you need.
When you get done reboot the fog server then post the results of these commands and I will confirm.
lsblk
(shows the physical block devices)df -h
(shows the mounted block devices)showmount -e 127.0.0.1
(show the shared volumes)
-
-
@george1421 i’m back.
I’ve trying to capture the image file but the files saved in /images
I have create a new storage group and storage node:
I have create a new image file and deleted the old image file and file *.img on the folder /images :
The results of the commands lsblk / df -h and showmount:
For the structure of /images2, i copied the folder dev and .Trash-1000 in /images to /images2
Thanks
-
@afaure Is storage2 node the only node in storage2 group?
If so, it has to be set as master node for it to capture images. Only do this if it is indeed the only need in the group.
-
@Quazz said in I would like a add a new hdd ...:
it has to be set as master node for it to capture images
Exactly, I was thinking about this as I commuted into the office this AM. Only the master node(s) can receive images. But that still doesn’t explain why its picking a master node in a different storage group.
-
Cross linking threads since the experience appears to be similar: https://forums.fogproject.org/topic/10442/location-plugin-not-working-after-update-to-1-4-4
-
“STOCK 2” is not a master node, so capture of images would go to the “master” node of the group it’s in.
-
@Tom-Elliott Great eye. I was focusing too much on the paths and devices to see that silly checkbox. That master node needs to be checked.
But I find it strange why it used storage1?? Wouldn’t / shouldn’t it say, “Hey, MR IT guy there are not active master nodes in my storage group. I have no place to capture this image” ??
-
@Tom-Elliott @george1421 @Quazz thanks for reply.
I would like capture images with the default node and the new node storage2.
Storage2 is alone one the group storage.Default = 1hdd
Storage2 = 1 hddI need to check the box “master node” to use the two datastores ?
-
@afaure You have 2 storage groups. Each storage group needs a master node, since only master nodes can receive captured images. If you want to capture images and save them to each datastore then you do need to check the master node, as long as they are in their own storage group.
-
@george1421 said in I would like a add a new hdd ...:
You have 2 storage groups. Each storage group needs a master node, since only master nodes can receive captured images. If you want to capture images and save them to each datastore then you do need to check the master node, as long as they are in their own storage group
Ok, i going check this box and try a new capture.
I will be back !Thanks everywhone !
-
-
@afaure Hi. On that page, on the left hand side there is Image Menu. The second option is Storage Group. Click on that. You can now choose a storage group.
-
@Quazz it doesn’t work…
-
@afaure What do you mean? What goes wrong?