=== Old Resource List ===
Resource type: nfsclient [NEEDSTOP]
Agent: nfsclient.sh
Attributes:
  name = User group [ primary unique ]
  target = @users [ required ]
  path [ inherit("path") ]
  options = ro

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = Admin group [ primary unique ]
  target = @admin [ required ]
  path [ inherit("path") ]
  options = rw

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = yellow [ primary unique ]
  target = yellow [ required ]
  path [ inherit("path") ]
  options = rw,no_root_squash

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = magenta [ primary unique ]
  target = magenta [ required ]
  path [ inherit("path") ]
  options = rw,no_root_squash

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = red [ primary unique ]
  target = red [ required ]
  path [ inherit("path") ]
  options = rw

Resource type: fs
Instances: 1/1
Agent: fs.sh
Attributes:
  name = mount1 [ primary ]
  mountpoint = /mnt/cluster [ unique required ]
  device = /dev/sdb8 [ unique required ]
  fstype = ext3

Resource type: fs
Instances: 1/1
Agent: fs.sh
Attributes:
  name = mount2 [ primary ]
  mountpoint = /mnt/cluster2 [ unique required ]
  device = /dev/sdb9 [ unique required ]
  fstype = ext3

Resource type: script
Agent: script.sh
Attributes:
  name = initscript [ primary unique ]
  file = /etc/init.d/sshd [ unique required ]

Resource type: ip
Instances: 1/1
Agent: ip.sh
Attributes:
  address = 192.168.1.3 [ primary unique ]
  monitor_link = yes

Resource type: ip
Instances: 1/1
Agent: ip.sh
Attributes:
  address = 192.168.1.4 [ primary unique ]
  monitor_link = yes

Resource type: nfsexport
Agent: nfsexport.sh
Attributes:
  name = Dummy Export [ primary ]
  device [ inherit("device") ]
  path [ inherit("mountpoint") ]

Resource type: service [ROOT]
Instances: 1/1
Agent: service.sh
Attributes:
  name = test1 [ primary unique required ]

Resource type: service [ROOT]
Instances: 1/1
Agent: service.sh
Attributes:
  name = test2 [ primary unique required ]

=== New Resource List ===
Resource type: nfsclient [NEEDSTART]
Agent: nfsclient.sh
Attributes:
  name = User group [ primary unique ]
  target = @users [ required ]
  path [ inherit("path") ]
  options = rw,sync

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = Admin group [ primary unique ]
  target = @admin [ required ]
  path [ inherit("path") ]
  options = rw

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = yellow [ primary unique ]
  target = yellow [ required ]
  path [ inherit("path") ]
  options = rw,no_root_squash

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = magenta [ primary unique ]
  target = magenta [ required ]
  path [ inherit("path") ]
  options = rw,no_root_squash

Resource type: nfsclient
Agent: nfsclient.sh
Attributes:
  name = red [ primary unique ]
  target = red [ required ]
  path [ inherit("path") ]
  options = rw

Resource type: fs
Instances: 1/1
Agent: fs.sh
Attributes:
  name = mount1 [ primary ]
  mountpoint = /mnt/cluster [ unique required ]
  device = /dev/sdb8 [ unique required ]
  fstype = ext3

Resource type: fs
Instances: 1/1
Agent: fs.sh
Attributes:
  name = mount2 [ primary ]
  mountpoint = /mnt/cluster2 [ unique required ]
  device = /dev/sdb9 [ unique required ]
  fstype = ext3

Resource type: script
Agent: script.sh
Attributes:
  name = initscript [ primary unique ]
  file = /etc/init.d/sshd [ unique required ]

Resource type: ip
Instances: 1/1
Agent: ip.sh
Attributes:
  address = 192.168.1.3 [ primary unique ]
  monitor_link = yes

Resource type: ip
Instances: 1/1
Agent: ip.sh
Attributes:
  address = 192.168.1.4 [ primary unique ]
  monitor_link = yes

Resource type: nfsexport
Agent: nfsexport.sh
Attributes:
  name = Dummy Export [ primary ]
  device [ inherit("device") ]
  path [ inherit("mountpoint") ]

Resource type: service [ROOT]
Instances: 1/1
Agent: service.sh
Attributes:
  name = test1 [ primary unique required ]

Resource type: service [ROOT]
Instances: 1/1
Agent: service.sh
Attributes:
  name = test2 [ primary unique required ]

=== Old Resource Tree ===
service {
  name = "test1";
  fs {
    name = "mount1";
    mountpoint = "/mnt/cluster";
    device = "/dev/sdb8";
    fstype = "ext3";
    nfsexport {
      name = "Dummy Export";
      device = "/dev/sdb8";
      path = "/mnt/cluster";
      nfsclient {
        name = "Admin group";
        target = "@admin";
        path = "/mnt/cluster";
        options = "rw";
      }
      nfsclient [ NEEDSTOP ] {
        name = "User group";
        target = "@users";
        path = "/mnt/cluster";
        options = "ro";
      }
      nfsclient {
        name = "red";
        target = "red";
        path = "/mnt/cluster";
        options = "rw";
      }
    }
  }
  ip {
    address = "192.168.1.3";
    monitor_link = "yes";
  }
  script {
    name = "initscript";
    file = "/etc/init.d/sshd";
  }
}
service {
  name = "test2";
  fs {
    name = "mount2";
    mountpoint = "/mnt/cluster2";
    device = "/dev/sdb9";
    fstype = "ext3";
    nfsexport {
      name = "Dummy Export";
      device = "/dev/sdb9";
      path = "/mnt/cluster2";
      nfsclient {
        name = "Admin group";
        target = "@admin";
        path = "/mnt/cluster2";
        options = "rw";
      }
      nfsclient [ NEEDSTOP ] {
        name = "User group";
        target = "@users";
        path = "/mnt/cluster2";
        options = "ro";
      }
      nfsclient {
        name = "red";
        target = "red";
        path = "/mnt/cluster2";
        options = "rw";
      }
    }
  }
  ip {
    address = "192.168.1.4";
    monitor_link = "yes";
  }
  script {
    name = "initscript";
    file = "/etc/init.d/sshd";
  }
}
=== New Resource Tree ===
service {
  name = "test1";
  fs {
    name = "mount1";
    mountpoint = "/mnt/cluster";
    device = "/dev/sdb8";
    fstype = "ext3";
    nfsexport {
      name = "Dummy Export";
      device = "/dev/sdb8";
      path = "/mnt/cluster";
      nfsclient {
        name = "Admin group";
        target = "@admin";
        path = "/mnt/cluster";
        options = "rw";
      }
      nfsclient [ NEEDSTART ] {
        name = "User group";
        target = "@users";
        path = "/mnt/cluster";
        options = "rw,sync";
      }
      nfsclient {
        name = "red";
        target = "red";
        path = "/mnt/cluster";
        options = "rw";
      }
    }
  }
  ip {
    address = "192.168.1.3";
    monitor_link = "yes";
  }
  script {
    name = "initscript";
    file = "/etc/init.d/sshd";
  }
}
service {
  name = "test2";
  fs {
    name = "mount2";
    mountpoint = "/mnt/cluster2";
    device = "/dev/sdb9";
    fstype = "ext3";
    nfsexport {
      name = "Dummy Export";
      device = "/dev/sdb9";
      path = "/mnt/cluster2";
      nfsclient {
        name = "Admin group";
        target = "@admin";
        path = "/mnt/cluster2";
        options = "rw";
      }
      nfsclient [ NEEDSTART ] {
        name = "User group";
        target = "@users";
        path = "/mnt/cluster2";
        options = "rw,sync";
      }
      nfsclient {
        name = "red";
        target = "red";
        path = "/mnt/cluster2";
        options = "rw";
      }
    }
  }
  ip {
    address = "192.168.1.4";
    monitor_link = "yes";
  }
  script {
    name = "initscript";
    file = "/etc/init.d/sshd";
  }
}
