Operating System - HP-UX
1833046 Members
2584 Online
110049 Solutions
New Discussion

New logical volume for an existing directory

 
Anant
Occasional Contributor

New logical volume for an existing directory

Hello,
I already have '/var/adm' directory. '/var' is mounted on '/dev/vg00/lvol8'. For a specific (strange) reason, I wanted to created a new LV 'var_adm' and mount '/var/adm' on it. To do that, I did following steps:
1) lvcreate -L 1000 -n var_adm /dev/vg00
2) newfs -F vxfs /dev/vg00/rvar_adm
3) mount /dev/vg00/var_adm /var/adm
4) lvextend -m 1 /dev/vg00/var_adm /dev/dsk/c1t0d0
5) Added a line into /etc/fstab

Problems:
1) 'bdf' shows 0% used on /var/adm on LV /dev/vg00/var_adm
2) I do not have a prior bdf snap shot to compare '/var' on lvol8.
3) /var/adm/syslog directory does not exist.
4) I get error '/var/adm/syslog/syslog.log - No such file or directory' when rebooting
5) 'lpshut' and 'lpsched' commands are acting up. Sometimes they work and sometimes I get error message 'scheduler could not be started/stopped'. Print jobs are not coming out of the printers.

Questions:
1) What would have been the right steps to create a new LV for an existing directory?
2) How can I rectify the LV problem now?
3) Is 'lp' problem anyway related to wrong LV creation?

Thanks in advance
2 REPLIES 2
Andres_13
Respected Contributor

Re: New logical volume for an existing directory

The only thing that is happenning to you is that you forget to backup the content of /var/adm before mounting a file system on it. Just:

1) Backup your data inside /var/adm
2) Follow the entire above procedure
3) Restore your backup to /var/adm.

Quite simple.

Regards!
Dennis Handly
Acclaimed Contributor

Re: New logical volume for an existing directory