- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: New logical volume for an existing directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2008 12:55 PM
02-27-2008 12:55 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2008 01:28 PM
02-27-2008 01:28 PM
SolutionPut everything back to normal by taking the new line out of fstab and reboot the server.
Then you also have to do,
1) mkdir /var-adm-tmp
2) mount /dev/vg00/var_adm /var-adm-tmp
3) Copy contens of /var/adm into the new mount point /var-adm-tmp
5) unmount /var-adm-tmp
6) Add line to /etc/fstab for /var/adm
7) reboot
The reboot (step 7) is optional but you need to either shutdown to single user mode or turn off all services that use /var/adm. I think syslogd, sendmail, nfsd, nettl are using it, maybe more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2008 02:56 PM
02-27-2008 02:56 PM
Re: New logical volume for an existing directory
For the step number 3, I ended up using 'cp -r /var/adm /var-adm-tmp'. Then I followed the rest of the steps. With that done, what happens to the content of '/var/adm' that is mounted on lvol8?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2008 04:57 PM
02-27-2008 04:57 PM
Re: New logical volume for an existing directory
They are covered by the mount point. They are still under /var as a folder. You should unmount the new /var/adm (probably have to go down to single user) and delete the contents of the /var/adm/ folder. The mount the /var/adm volume.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2008 05:07 AM
03-03-2008 05:07 AM
Re: New logical volume for an existing directory
Personally I would do the following :
1) Reboot the system and start in single user mode
2) Bring it up to runlevel 1
3) mkdir /var-adm-tmp
4) mount /dev/vg00/var_adm /var-adm-tmp
3) Copy contens of /var/adm into the new mount point /var-adm-tmp :
a] cd /var
b] find adm -print | cpio -dumpx /var-adm-tmp
5) unmount /var-adm-tmp
6) Add line to /etc/fstab for /var/adm
7) reboot