Showing posts with label NFS. Show all posts
Showing posts with label NFS. Show all posts

How to place /vz partition to external storage (NAS, NFS)

0 comments
Sometimes it is need to place /vz partition on external storage.

How to perform this procedure on Parallels Virtuozzo Containers system?

Here are exact steps:

1. Make sure that external storage is available as device in /dev/ directory (via e.g. NFS or ISCSI layer)

2. Mount this storage under e.g. mount point /vzs using required options and filesystem type:
# mount /dev/ext_storage_dev_name /vzs

3. Stop Virtuozzo:
# service vz stop

4. Copy all content from /vz to /vzs:
# cp -a /vz/* /vzs/

5. Unmount old /vz directory and /vzs directory:
# umount /vz
# umount /vzs


6. Edit in the file /etc/fstab line for /vz entry to mount external storage under /vz mount point.

7. mount /vz again:
# mount /vz

8. Start Virtuozzo:
# service vz start

Placing /vz partition to external storage (NAS, NFS)

0 comments
Sometimes it is need to place /vz partition on external storage. How to perform this procedure on Parallels Virtuozzo Containers system?

Here are exact steps:

1. Make sure that external storage is available as device in /dev/ directory (via e.g. NFS or ISCSI layer)

2. Mount this storage under e.g. mount point /vzs using required options and filesystem type:
# mount /dev/ext_storage_dev_name /vzs

3. Stop Virtuozzo:
# service vz stop

4. Copy all content from /vz to /vzs:
# cp -a /vz/* /vzs/

5. Unmount old /vz directory and /vzs directory:
# umount /vz
# umount /vzs


6. Edit in the file /etc/fstab line for /vz entry to mount external storage under /vz mount point.

7. mount /vz again:
# mount /vz

8. Start Virtuozzo:
# service vz start

teps which I used to configure remote backups through NFS

0 comments
Aim :- Configure backup for virtuzzo on backup server.
First, you have to make the appropriate directories available to nfs by "exporting" them. On the remote server, edit the /etc/exports file to expose the directories you need to the hosts that need to access them. See the man page for exports to find out all your options, but here's a simple example from my setup:


# /etc/exports

Add the below entry

/backup         192.168.1.0(rw,no_root_squash,async)
/backup2        192.168.1.1(rw,no_root_squash,async)


The /etc/exports file must contain a directory, (in this example the directory being exported is /home), as well as the networks (or hosts) the file system is exported to.In this case it's exported a range of hosts in the network 192.168.1.0. Alternately, it could be exported to a single host using the configuration: Then go to virtozo and mount the destination as given below:

# mount -t nfs 192.168.1.0:/backup2 /vz/backups
showmount -e mount
198.168.0.1:/backup2 /vz/backup nfs rsize=1024,wsize=1024,noauto 0 0

Then restart nfs and portmap on Virtuzzo server

# /etc/init.d/portmap restart
# /etc/init.d/nfs restart


Then go to backup server and check if its mounted on this server as well, you can use to check it showmount -e or mount command

If everything is ok, fire the command to effect the changes of /etc/exports:

# exportfs -r

and restart both services on this server as well:

# /etc/init.d/portmap restart
# /etc/init.d/nfs restart


That's it, I got it worked. If you have any problem please email me at mayur.c24@gmail.com
Go_GrEen^ThiNk_GReeN~LoVE_GreEn - Pushkar