
5 Website Development Tips To Boost Your Business Growth Exponentially
Hi I ran into an issue where my Of needed to reinstall. I didn’t repartition so I was able to keep all the data. I installed a new copy of OpenFiler using Free space on the server.
After Reinstalling and SSH into the box I have tried to locate my partition from my old installation, I knew it was between 7-8 GB so in my case it was mounted here
/dev/cciss/c0d1p2
So I made a temp folder and mounted it
mkdir /mnt/of2
mount -t ext2 /dev/cciss/c0d1p2 /mnt/of2
Then after that I was just able to copy files… but I did edit 2 files to avoid conflicts with new partitions.
- /opt/openfiler/etc/volumes.xml
- My “/mnt/of2/opt/openfiler/etc/volumes.xml” had this
- <volume id=”cyfordservers” name=”Cyford Servers” mountpoint=”/mnt/sata/cyfordservers/” vg=”sata” fstype=”ext4″ />
<volume id=”officeshare” name=”Office File Server” mountpoint=”/mnt/sata/officeshare/” vg=”sata” fstype=”xfs” />
<volume id=”cyford-software” name=”Cyford-Software” mountpoint=”/mnt/sata/cyford-software/” vg=”sata” fstype=”ext4″ />
<volume id=”cyford-backups” name=”Cyford Backups” mountpoint=”/mnt/sata/cyford-backups/” vg=”sata” fstype=”ext3″ />
<volume id=”configfiles” name=”ConfigFiles” mountpoint=”/mnt/ssd/configfiles/” vg=”ssd” fstype=”xfs” />
<volume id=”cyford-database” name=”Cyford-Database” mountpoint=”/mnt/ssd/cyford-database/” vg=”ssd” fstype=”xfs” />
- <volume id=”cyfordservers” name=”Cyford Servers” mountpoint=”/mnt/sata/cyfordservers/” vg=”sata” fstype=”ext4″ />
- Which added to the Live file “/opt/openfiler/etc/volumes.xml”
- My “/mnt/of2/opt/openfiler/etc/volumes.xml” had this
- /etc/fstab
- I added from /mnt/of2/etc/fstab ( my example)
- /dev/sata/cyfordservers /mnt/sata/cyfordservers ext4 defaults,usrquota,grpquota,acl 0 0
/dev/sata/officeshare /mnt/sata/officeshare xfs defaults,usrquota,grpquota 0 0
/dev/sata/cyford-software /mnt/sata/cyford-software ext4 defaults,usrquota,grpquota,acl 0 0
/dev/sata/cyford-backups /mnt/sata/cyford-backups ext3 defaults,usrquota,grpquota,acl,user_xattr 0 0
/dev/ssd/configfiles /mnt/ssd/configfiles xfs defaults,usrquota,grpquota 0 0
/dev/ssd/cyford-database /mnt/ssd/cyford-database xfs defaults,usrquota,grpquota 0 0 - Added that too “/etc/fstab“
- After that all was simple, made backups of the following folders then copy the old ones.
-
mv /etc /etc-BK | mv /opt/openfiler/ /opt/openfiler-BK
- mkdir “/etc” | mkdir “/opt/openfiler”
- cp -r /mnt/of2/etc/* /etc | cp -r /mnt/of2/opt/openfiler /opt/openfiler
-
- /dev/sata/cyfordservers /mnt/sata/cyfordservers ext4 defaults,usrquota,grpquota,acl 0 0
- I added from /mnt/of2/etc/fstab ( my example)
{jcomments on}
Published on: Mar 03, 2021
Categories: Web Development
No Comments yet! Be the first one to write.