This is applicable where you have a server with more than 1 hard disk.
The default /OVS is created using manager.
Now its time you have to create link for /OVS1 and /OVS2 (Considering you are having 3 local hard disks and you have created /OVS /OVS1 /OVS2 partitions with o2fs file system during installation).
First check the repositories.
# /opt/ovs-agent-latest/utils/repos.py -l
[ ] 1302f1d0-0617-45f1-b214-513594cd11f1 => /dev/sdc1
[ * ] a7d5463b-288f-4c14-b28a-5e999c987a29 => /dev/sda5
[ ] 0c6e6bf5-406e-4775-92bd-d2e8b3ce2af5 => /dev/sdb1
(Dont proceed if you are not getting your repositories listed
Please reffer following post for more details. How to add a new repository to Oracle Virtual Server.
)
In above output its clear that the root repository is
a7d5463b-288f-4c14-b28a-5e999c987a29 => /dev/sda5
If this get full then the others will be utilized.
Then run df -h command to validate them.
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 39G 948M 36G 3% /
/dev/sda1 99M 45M 49M 48% /boot
tmpfs 277M 0 277M 0% /dev/shm
/dev/sda5 888G 84G 804G 10% /var/ovs/mount/A7D5463B288F4C14B28A5E999C987A29
/dev/sdc1 932G 299M 932G 1% /var/ovs/mount/1302F1D0061745F1B214513594CD11F1
/dev/sdb1 932G 299M 932G 1% /var/ovs/mount/0C6E6BF5406E477592BDD2E8B3CE2AF5
As you can see the current utilized one is
/dev/sda5 888G 84G 804G 10% /var/ovs/mount/A7D5463B288F4C14B28A5E999C987A29
Just go to / and type
# ls -ltr | grep ^l
lrwxrwxrwx 1 root root 47 Oct 15 14:51 OVS -> /var/ovs/mount/A7D5463B288F4C14B28A5E999C987A29
Only one file will be returned.
Make sure there is no /OVS1 and /OVS2 folders (if exists then delete them).
Now make a link for /OVS1 and /OVS2
#ln -s /var/ovs/mount/1302F1D0061745F1B214513594CD11F1 /OVS1
# ln -s /var/ovs/mount/0C6E6BF5406E477592BDD2E8B3CE2AF5 /OVS2
Now you should be able to see 3 softlinks in / directory.
# ls -ltr | grep ^l
lrwxrwxrwx 1 root root 47 Oct 15 14:51 OVS -> /var/ovs/mount/A7D5463B288F4C14B28A5E999C987A29
lrwxrwxrwx 1 root root 47 Oct 18 10:04 OVS1 -> /var/ovs/mount/1302F1D0061745F1B214513594CD11F1
lrwxrwxrwx 1 root root 47 Oct 18 10:11 OVS2 -> /var/ovs/mount/0C6E6BF5406E477592BDD2E8B3CE2AF5
No comments:
Post a Comment