1827293 Members
2543 Online
109717 Solutions
New Discussion

Trouble adding hfs disk

 
Tracie Davis
Contributor

Trouble adding hfs disk

Hi All,

I am trying to add a hfs disk drive.
but when I attempted to add it via
SAM -> Disks and File Systems -> Disk Devices Click the "Unused" disk, go to Actions, Add,
Not Using The LVM, Type in mount dir.,
Modify defaults...

I got the following error:
mkfs (hfs) /dev/rdsk/c0t11d0 is a logical volume device.

I can't find any lvm info in the /etc/fstab, lvmtab. I don't understand. Please help.

Tracie
3 REPLIES 3
Dan Hetzel
Honored Contributor

Re: Trouble adding hfs disk

Hi Tracie,

Most probably because that disc is coming from another server and was used with lvm...

Did you run 'vgscan -a' ? This will scan all physical volumes and eventually recreate the /etc/lvmtab file.

Make a copy of file /etc/lvmtab before and run 'vgscan -a -p' as this will allow you to preview what would happen if you run 'vgscan -a'.

Best regards,

Dan

Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Andreas Voss
Honored Contributor

Re: Trouble adding hfs disk

Hi,

the problem is the LVM header on the disk.
To detroy this information you could do something like this:
prealloc /var/tmp/dummy 10000000
dd if=/var/tmp/dummy of=/dev/rdsk/c0t11d0 bs=8k
rm /var/tmp/dummy
This wil overwrite the LVM header on the disk and then you should be able to use the disk without LVM.
Note: This procedure will purge all data on the disk !

Regards
James R. Ferguson
Acclaimed Contributor

Re: Trouble adding hfs disk

Tracie:

I agree with Andreas. You could also do:

# pvcreate -f /dev/rdsk/cXtYdZ

...JRF...