- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- dd of logical volume
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
06-10-2002 10:16 AM
06-10-2002 10:16 AM
dd of logical volume
Due to out LVM setup, I need to dd some logical volumes to a new set of disk. These logical volumes are not used as raw volume on the server. They are mounted as VxFS file system. My question is how do I dd these logical volumes? Do I need to dd both character and block device?
Thanks!
Sharon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 10:19 AM
06-10-2002 10:19 AM
Re: dd of logical volume
There's some info for you in this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf373107d277ad611abdb0090277a778c,00.html
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 10:19 AM
06-10-2002 10:19 AM
Re: dd of logical volume
1) Mirror the LVs with Mirror-UX and once done, remove the mirror.
2) Run cpio to copy all data to the new file system:
# cd source_dir
# find . -depth | cpio -pdlmuva /dest_dir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 10:23 AM
06-10-2002 10:23 AM
Re: dd of logical volume
Here is one method:
dd if=/dev/vg01/rlvol2 of=/dev/vg03/rlvol5 bs=64k
Now, don't overlook that you could (and probably should) use pvmove, if both of these LVOL's are in the same VG. Also, don't forget to update your /etc/fstab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 10:27 AM
06-10-2002 10:27 AM
Re: dd of logical volume
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 10:29 AM
06-10-2002 10:29 AM
Re: dd of logical volume
You can do pvmove also. Add the new disk to the existing volume group and do a pvmove.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 10:57 AM
06-10-2002 10:57 AM
Re: dd of logical volume
1. Mirroring the volume with the new disk and then break the mirror
2. Use cpio, dd, tar or fbackup commands to copy the data from the volume to the new disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 10:58 AM
06-10-2002 10:58 AM
Re: dd of logical volume
Use
#pvmove /dev/dsk/c1t0d0 /dev/dsk/c2t0d0
First one is old disk...next one is new disk.
#pvmove -n /dev/vg01/lvol2 /dev/dsk/c1t0d0 /dev/dsk/c2t0d0
( if you want to move physical extents of lvol2 from one disk to another)
You can use dd if you have a raw filesystem and if both the disk capacities are same.
Or else you can create a new VG and Filesystem and then use this command to copy the data
#cd /source-dir
#find . -depth -print | cpio -pdlmuv /target-dir
Hope this helps.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 12:51 PM
06-10-2002 12:51 PM
Re: dd of logical volume
HTH
Duncan
I am an HPE Employee
