Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory what did dd command do to destination drive Post 302209363 by matt.d on Thursday 26th of June 2008 04:46:39 PM
Old 06-26-2008
I'm pretty sure you erased the volume's label, which is preventing the OS from determining what the size is, the type of filesystem, etc.

For detailed info on the dd command (or any other UNIX command, for that matter), execute
Code:
 man dd

This will bring up the manual.
 

10 More Discussions You Might Find Interesting

1. Solaris

Command to determine Tape Drive model and make

Hi, We have some IBM LTO tape drives connect over SAN. I have the following questions :- 1) Command that can list the tape drive details like who is manufacturer, model number, make etc etc 2) I would like to know what are the key differences between IBM LTO Generation 1 and Generation... (5 Replies)
Discussion started by: new2prog
5 Replies

2. Solaris

<drive type unknown> when format command run

Hi, we are running solaris 9 on V280R. Due to power failure, one disk's label and lost its details like drive type etc. Disk details: <SUN72G cyl 14087 alt 2 hd 24 sec 424> single partition on slice 6 with UFS. The below i see when i run "format" command ..... ..... 4.... (1 Reply)
Discussion started by: prvnrk
1 Replies

3. IP Networking

Command to ping 1500 bytes of data to a destination system

Hi All, I want to ping 1500 bytes of data from a pc to another pc in the network. What is command used for the same? Thanks (2 Replies)
Discussion started by: rvan
2 Replies

4. UNIX for Advanced & Expert Users

tar to tape drive command

I want to use this command to tar to tape: tar cf - DIR | compress > `hostname`_`date +%m-%d-%y`.DIR.tar.Z this of course goes to the FS. How do I modify this to go directly to tape? My tape device is /dev/rmt/0 thanks. Having so many posts you should be familiar using code tags.... (7 Replies)
Discussion started by: djehresmann
7 Replies

5. UNIX Desktop Questions & Answers

ssh command doesnot excute commands in the destination server

Hi All, I have the below code where Iam connecting from xzur111pap server to xzur0211pap server thru ssh to execute some commands. ssh xzur0211pap spaceleft=`df -k /home |tail -1 | awk '{print $5}'` spaceleft=${spaceleft%\%} if ]; then echo "ALERT : HUFS(/home $spaceleft)" exit 0... (3 Replies)
Discussion started by: gaddamja
3 Replies

6. Shell Programming and Scripting

Help with cp command when destination file is opened

I am writing a shell script (runs on HP Unix) which copies files from a source directory to another destination daily. The destination directory always have the files with same name as in the source directory. And daily a new file will be created in the source. cp command works fine if the file... (1 Reply)
Discussion started by: arunkumar_ms
1 Replies

7. Red Hat

Command understanding the output file destination in case of standard output!!!!!

I ran the following command. cat abc.c > abc.c I got message the following message from command cat: cat: abc.c : input file is same as the output file How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
Discussion started by: ravisingh
3 Replies

8. UNIX for Dummies Questions & Answers

Need help to move .csv file from UNIX path to windows shared drive or c:\ drive

Hi Guys, Can any one help me on this. I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive? Regards, LKR (1 Reply)
Discussion started by: lakshmanraok117
1 Replies

9. Shell Programming and Scripting

Command / Script to create touch file in destination server

Hello Team, Is there any Linux command / script available so that, I could create a simple 0 byte file in destination server by issuing the command from source server. If yes, Could you please let me know the possible solutions. in other words I just want to create a touch file in my home... (1 Reply)
Discussion started by: madhuraju
1 Replies

10. Shell Programming and Scripting

Check if remote destination is available before running scp command

I have a script on a Linux box which scp the files to windows server without any issues. but there are time frames where the windows server will not be available due to maintenance. hence I need to check if the remote location is available before running the scp command. scp... (3 Replies)
Discussion started by: gpk_newbie
3 Replies
PVMOVE(8)						      System Manager's Manual							 PVMOVE(8)

NAME
       pvmove - move physical extents

SYNOPSIS
       pvmove  [--abort]  [--alloc  AllocationPolicy] [-b|--background] [-d|--debug] [-h|--help] [-i|--interval Seconds] [--noudevsync] [-v|--ver-
       bose] [-n|--name LogicalVolume] [SourcePhysicalVolume[:PE[-PE]...] [DestinationPhysicalVolume[:PE[-PE]...]...]]

DESCRIPTION
       pvmove allows you to move the allocated physical extents (PEs) on SourcePhysicalVolume to one or more other physical  volumes  (PVs).   You
       can  optionally	specify  a source LogicalVolume in which case only extents used by that LV will be moved to free (or specified) extents on
       DestinationPhysicalVolume(s).  If no DestinationPhysicalVolume is specified, the normal allocation rules for the Volume Group are used.

       If pvmove gets interrupted for any reason (e.g. the machine crashes) then run pvmove again without any PhysicalVolume arguments to  restart
       any  moves  that  were in progress from the last checkpoint.  Alternatively use pvmove --abort at any time to abort them at the last check-
       point.

       You can run more than one pvmove at once provided they are moving data off different SourcePhysicalVolumes,  but  additional  pvmoves  will
       ignore any Logical Volumes already in the process of being changed, so some data might not get moved.

       pvmove works as follows:

       1. A temporary 'pvmove' Logical Volume is created to store details of all the data movements required.

       2.  Every Logical Volume in the Volume Group is searched for contiguous data that need moving according to the command line arguments.  For
       each piece of data found, a new segment is added to the end of the pvmove LV.  This segment takes the form of a temporary  mirror  to  copy
       the  data  from the original location to a newly-allocated location.  The original LV is updated to use the new temporary mirror segment in
       the pvmove LV instead of accessing the data directly.

       3. The Volume Group metadata is updated on disk.

       4. The first segment of the pvmove Logical Volume is activated and starts to mirror the first part of the data.	Only one segment  is  mir-
       rored at once as this is usually more efficient.

       5.  A  daemon  repeatedly  checks  progress at the specified time interval.  When it detects that the first temporary mirror is in-sync, it
       breaks that mirror so that only the new location for that data gets used and writes a checkpoint into the Volume Group  metadata  on  disk.
       Then it activates the mirror for the next segment of the pvmove LV.

       6. When there are no more segments left to be mirrored, the temporary Logical Volume is removed and the Volume Group metadata is updated so
       that the Logical Volumes reflect the new data locations.

       Note that this new process cannot support the original LVM1 type of on-disk metadata.  Metadata can be converted using vgconvert(8).

       N.B. The moving of mirrors, snapshots and their origins is not yet supported.

OPTIONS
       --abort
	      Abort any moves in progress.

       --noudevsync
	      Disable udev synchronisation. The process will not wait for notification from udev.  It will continue irrespective of  any  possible
	      udev  processing	in the background.  You should only use this if udev is not running or has rules that ignore the devices LVM2 cre-
	      ates.

       -b, --background
	      Run the daemon in the background.

       -i, --interval Seconds
	      Report progress as a percentage at regular intervals.

       -n, --name  LogicalVolume
	      Move only the extents belonging to LogicalVolume from SourcePhysicalVolume instead of all allocated extents to the destination phys-
	      ical volume(s).

EXAMPLES
       To  move  all  Physical Extents that are used by simple Logical Volumes on /dev/sdb1 to free Physical Extents elsewhere in the Volume Group
       use:

	    pvmove /dev/sdb1

       Any mirrors, snapshots and their origins are left unchanged.

       Additionally, a specific destination device /dev/sdc1 can be specified like this:

	    pvmove /dev/sdb1 /dev/sdc1

       To perform the action only on extents belonging to the single Logical Volume lvol1 do this:

	    pvmove -n lvol1 /dev/sdb1 /dev/sdc1

       Rather than moving the contents of the entire device, it is possible to move a range of Physical Extents - for example numbers 1000 to 1999
       inclusive on /dev/sdb1 - like this:

	    pvmove /dev/sdb1:1000-1999

       To move a range of Physical Extents to a specific location (which must have sufficent free extents) use the form:

	    pvmove /dev/sdb1:1000-1999 /dev/sdc1

       or

	    pvmove /dev/sdb1:1000-1999 /dev/sdc1:0-999

       If the source and destination are on the same disk, the anywhere allocation policy would be needed, like this:

	    pvmove --alloc anywhere /dev/sdb1:1000-1999 /dev/sdb1:0-999

       The part of a specific Logical Volume present within in a range of Physical Extents can also be picked out and moved, like this:

	    pvmove -n lvol1 /dev/sdb1:1000-1999 /dev/sdc1

SEE ALSO
       lvm(8), vgconvert(8) pvs(8)

Sistina Software UK					 LVM TOOLS 2.02.95(2) (2012-03-06)						 PVMOVE(8)
All times are GMT -4. The time now is 05:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy