- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disk copy on smaller target
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
12-19-2003 12:24 AM
12-19-2003 12:24 AM
Disk copy on smaller target
I cannot use dd
I suppose I must copy directly after mounting the destination disk but I don't know how to create the logical volume, mount, copy...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2003 12:27 AM
12-19-2003 12:27 AM
Re: Disk copy on smaller target
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2003 12:32 AM
12-19-2003 12:32 AM
Re: Disk copy on smaller target
pvcreate /dev/rdsk/c?t?d? ( new disk)
vgextend /dev/
lvcreate -L
newfs /dev/
mkdir /mountpoint
mount /dev/
cd /mountpoint
stop all prosseses active on the old lvol
cd fromdir ; tar cf - . | ( cd todir ; tar xf - )
umount /oldmount
umount /mountp
mount /dev/
lvreduce /oldlvol
vgreduce /dev/
Now it is free again.
If it is your root disk, you can make an ignite tape and resintall from tape.
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2003 12:35 AM
12-19-2003 12:35 AM
Re: Disk copy on smaller target
But it depends on what you want with the copy. And what you want to copy. And if you have licenses for, for instance, mirror UX.
Is the data used on the 4.3 Gb less then the total size of the destination disk?
What you could do:
1) pvcreate
2) mkdir /dev/vgtmp ; mknod /dev/vgtmp/group c 64 0x990000
3) vgcreate vgtmp
4) vgchange -a y vgtmp
5) lvcreate -l
6) newfs -F vxfs /dev/vgtmp/rlvol1
7) mount /dev/vgtmp/lvol1 /mnt
8) cd
9) cp -rp . /mnt
10) umount /mnt
11) vgexport vgtmp
Then you can do vgimport on the system you want to use the data again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2003 12:42 AM
12-19-2003 12:42 AM
Re: Disk copy on smaller target
If you are trying to amke a system image to build on another box with a smaller disk or to change the disk to a smaller one in the existing box you can use ignite.
first make a note of the disk usage for each filesystem
make_recovery -A
when you restore to the destination disk do it interactively and reduce the file system sizes to reflect the usage recorded earlier.
I normally use this method for increasing filesystems such as root on workstations but principles should be same for decreaing.
:-) John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2003 12:48 AM
12-19-2003 12:48 AM
Re: Disk copy on smaller target
Since the target is smaller you cannot use dd as you've found. You can use cpio as follows:
cd /top_dir
find . -depth -print | cpio -pd /new_top_dir
Rgds,
Jeff