1827791 Members
2871 Online
109969 Solutions
New Discussion

Re: fdisk question

 
Ravi S. Banda
Regular Advisor

fdisk question

I understand we can use fdisk to create partitions using a disk; for example:
fdisk /dev/cciss/c0d0p2
1) any already created VolGroups (and LogVols underneath) will be wiped-off, correct!?
2) if 1) is true, can I create new LogVols for the VolGroups of the disk and present them as partitions for my Oracle +ASM instance (where a DISKSTRING needs to be presented) or as raw devices?

Thanks!
Ravi.
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: fdisk question

Shalom Ravi,

1) Only true if you delete the partition information on the disk /dev/cciss/c0d0p2. It is possible to do this non destructively.

run fdisk -l
Make sure your system is not booting on the disk.

2) You need to consult the Oracle documentation, because my understanding is Oracle would prever not to have disk presented as LVM. ASM wants to own and manage the entire disk for itself.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: fdisk question

The command must be over the disk without any partition specified:

fdisk /dev/cciss/c0d0

1) It's better if your delete the VGs y LVs before destroying the partition, ensure that the /etc/fstab file does not have any entry for the destroyed LVs

2) Normally, for ASM, you use RAW devices, depending of your Linux version, this must be configured for example, on /etc/sysconfig/rawdevices.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?